Hey
I have a template switch that uses two scripts as its turn off/turn on like so:
- platform: template
switches:
heating:
value_template: "{{ is_state('input_boolean.heating', 'on')}}"
turn_on:
- service: script.heating
- service: input_boolean.turn_on
entity_id: input_boolean.heating
turn_off:
- service: script.cooling
- service: input_boolean.turn_off
entity_id: input_boolean.heating
Im trying to add a 2 hour delay into the scripts but this seems to have stopped my switch from toggling properly. Am i right in thinking that the switch wont change state until the script has completed? Any ideas for a work around for this? I’d like to be able to toggle the switch within this 2 hour delay and have the switches state change and the delay restart.
2 posts - 2 participants