I have Danfoss Eco TRV that is controlled by automation to trigger higher temperatures at specific hours. Recently I had crashes on my RPi4 with Hassion on it that prevent those automation to trigger. I read about how to fight with situations like that and came up with config below. Could you please look at it and let me know if it makes sense? Can it be done better or different?
- id: '1606402354138'
alias: TRV Sypialnia On
description: ''
trigger:
- platform: time
at: '06:30'
- platform: time
at: '08:15'
- platform: time
at: '13:00'
- platform: time
at: '19:15'
- platform: time
at: '21:15'
- platform: homeassistant
event: start
condition:
condition: or
conditions:
- condition: time
after: '06:30:00'
before: '07:00:00'
- condition: time
after: '08:15:00'
before: '11:35:00'
- condition: time
after: '13:00:00'
before: '16:05:00'
- condition: time
after: '19:15:00'
before: '19:50:00'
- condition: time
after: '21:15:00'
before: '01:20:00'
action:
- service: climate.set_temperature
data:
entity_id: climate.sypialnia_thermostat
temperature: 26
mode: queued
max: 10
- id: '1606402829689'
alias: TRV Sypialnia Off
description: ''
trigger:
- platform: time
at: '07:10'
- platform: time
at: '11:45'
- platform: time
at: '16:15'
- platform: time
at: '20:00'
- platform: time
at: '01:30'
- platform: homeassistant
event: start
condition:
condition: not
conditions:
- condition: time
after: '06:30:00'
before: '07:10:00'
- condition: time
after: '08:15:00'
before: '11:45:00'
- condition: time
after: '13:00:00'
before: '16:15:00'
- condition: time
after: '19:15:00'
before: '20:00:00'
- condition: time
after: '21:15:00'
before: '01:30:00'
action:
- service: climate.set_temperature
data:
entity_id: climate.sypialnia_thermostat
temperature: 22
mode: queued