This was working when it was time triggered, see the hashed out section
running check config doesn’t show anything, but its getting ignored
- alias: 'Hot water boost off'
trigger:
- platform: template
# at: '09:00:00'
# condition:
# - condition: template
value_template: "{{ states('sensor.hot_water_temp') | float > 55 }}"
action:
service: switch.turn_off
entity_id: switch.hot_water_boiler
## just in case above fails or temp not reached #########
- alias: 'Hot water off1'
trigger:
platform: time
at: '09:55:00'
action:
service: switch.turn_off
entity_id: switch.hot_water_boiler
I could simplify my automation by using the above to trigger on a time interval every 10mins
my automation is basically
Turn on hot water in morning
Turn off hot water at a time
turn on hot water afternoon
Turn off hot water at a time
Turn on hot water in evening
turn off hot water at time
My second question is when the automation file is read are the actions listed forced to run sequentially ?
or could I just use 2 scripts
ie.
turn on hot water at (time =0630 OR 1430 OR 2100) IF water temp is less than 54
Then a script as I’ve tried triigered on stae or time interval turn off if water temp greater than 56
sorta:-
- alias: 'Hot water Boiler on'
trigger:
platform: time
at:'06:45:00'
at '14:30:00'
at '21:00:00'
condition
- condition: template
value_template: "{{ states('sensor.hot_water_temp') | float < 54 }}
action:
service: switch.turn_on
entity_id: switch.hot_water_boiler
##### switch when hot water temp reached #########
- alias: Hot water off
trigger:
platform: time_pattern
minutes: '/5'
condition:
- condition: template
value_template: "{{ states('sensor.hot_water_temp') | float > 56 }}"
action:
service: switch.turn_off
entity_id: switch.hot_water_boiler
Or would it be better on the OFF section to trigger on value template of > 56
thanks