Thank you for your replies.
Below is the kitchen automation system.
This is running on HACS, with Innova devices.
Between 7:30 and 8:00, it repeats commands to switch on the fan coil.
It then raises the temperature according to the room sensor.
I copied all this from people who posted it online, and it usually works. I’m not entirely sure if it’s done properly, or if it’s a bit of a botched job.
My question is this: sometimes the fan coil’s Wi-Fi fails, and they’re disconnected from Home Assistant for a while; if that happens just as they’re due to switch on, the fan coil stays off until I check it.
That’s why I’d like to set up an automation that checks every hour whether the devices are off; if they are, it would send a command to switch them on.
The same applies at night, checking if any are still running, to send a command to switch them off.
Regards
alias: Cocina
description: "260405"
triggers:
- trigger: time_pattern
minutes: /10
conditions:
- condition: time
after: "07:30"
actions:
- choose:
Encendido
- conditions:
- condition: time
before: "08:00"
sequence:
- target:
entity_id: climate.cocina
action: climate.turn_on
- target:
entity_id: climate.cocina
action: climate.set_fan_mode
data:
fan_mode: auto
desde las 08:00 a las 08:40
- conditions:
- condition: time
after: "08:00"
before: "08:40"
- condition: numeric_state
entity_id: sensor.cocina_aire
below: 18
sequence:
- target:
entity_id:
- climate.cocina
data:
temperature: "{{ states('sensor.v_cocina_2') }}" # +1,5º
action: climate.set_temperature
- conditions:
- condition: time
after: "08:00"
before: "08:40"
- condition: numeric_state
entity_id: sensor.cocina_aire
above: 17.9
sequence:
- target:
entity_id:
- climate.cocina
data:
temperature: 20
action: climate.set_temperature
desde las 08:40 a las 19:00
- conditions:
- condition: time
after: "08:40"
before: "19:00"
- condition: numeric_state
entity_id: sensor.cocina_aire
below: 20.8
sequence:
- target:
entity_id:
- climate.cocina
data:
temperature: "{{ states('sensor.v_cocina_1') }}" # +1,2º
action: climate.set_temperature
- conditions:
- condition: time
after: "08:40"
before: "19:00"
- condition: numeric_state
entity_id: sensor.cocina_aire
above: 20.7
sequence:
- target:
entity_id:
- climate.cocina
data:
temperature: 22
action: climate.set_temperature
desde las 19:00 a las 21:30
- conditions:
- condition: time
after: "19:00"
before: "21:30"
- condition: numeric_state
entity_id: sensor.cocina_aire
below: 21.9
sequence:
- target:
entity_id:
- climate.cocina
data:
temperature: "{{ states('sensor.v_cocina_1') }}" # +1,2º
action: climate.set_temperature
- conditions:
- condition: time
after: "19:00"
before: "21:30"
- condition: numeric_state
entity_id: sensor.cocina_aire
above: 21.8
sequence:
- target:
entity_id:
- climate.cocina
data:
temperature: 23
action: climate.set_temperature
desde las 21:00 a las 23:00
- conditions:
- condition: time
after: "21:30"
before: "23:00"
- condition: numeric_state
entity_id: sensor.cocina_aire
below: 20.9
sequence:
- target:
entity_id:
- climate.cocina
data:
temperature: "{{ states('sensor.v_cocina_1') }}" # +1,2º
action: climate.set_temperature
- conditions:
- condition: time
after: "21:30"
before: "23:00"
- condition: numeric_state
entity_id: sensor.cocina_aire
above: 20.8
sequence:
- target:
entity_id:
- climate.cocina
data:
temperature: 22
action: climate.set_temperature
Apagado entre semana
- conditions:
- condition: time
after: "23:00"
weekday:
- mon
- tue
- wed
- thu
- fri
- sun
sequence:
- target:
entity_id: climate.cocina
action: climate.set_temperature
data:
temperature: 16
- target:
entity_id: climate.cocina
action: climate.turn_off
- conditions:
- condition: time
after: "23:45"
weekday:
- sat
sequence:
- target:
entity_id: climate.cocina
action: climate.set_temperature
data:
temperature: 16
- target:
entity_id: climate.cocina
action: climate.turn_off
mode: queued