- alias: Défi Hilo Ancrage AM description: Permet de gérer la période d'ancrage AM d'un défi Hilo/Manages the AM anchor phase of a Hilo Challenge mode: single triggers: - at: 01:00:00 trigger: time - entity_id: - sensor.defi_hilo to: appreciation trigger: state conditions: - condition: and conditions: - condition: template value_template: '{{''am'' in state_attr(''sensor.defi_hilo'',''next_events'')[0][''period''] }}' - condition: template value_template: '{{ (state_attr(''sensor.defi_hilo'', ''next_events'')[0][''phases''][''preheat_start''] | as_datetime).strftime(''%Y-%m-%d'') == now().strftime(''%Y-%m-%d'') }}' - condition: or conditions: - condition: state entity_id: sensor.defi_hilo state: appreciation - condition: state entity_id: sensor.defi_hilo state: scheduled - condition: time after: 00:55:00 before: 01:05:00 actions: - action: climate.set_temperature metadata: {} data: {} target: entity_id: climate.thermostat_cuisine - alias: Défi Hilo Ancrage PM description: Permet de gérer la période d'ancrage PM d'un défi Hilo/Manages the PM anchor phase of a Hilo Challenge mode: single triggers: - at: '12:00:00' trigger: time - entity_id: - sensor.defi_hilo to: appreciation trigger: state conditions: - condition: and conditions: - condition: template value_template: '{{''pm'' in state_attr(''sensor.defi_hilo'',''next_events'')[0][''period''] }}' - condition: template value_template: '{{ (state_attr(''sensor.defi_hilo'', ''next_events'')[0][''phases''][''preheat_start''] | as_datetime).strftime(''%Y-%m-%d'') == now().strftime(''%Y-%m-%d'') }}' - condition: or conditions: - condition: state entity_id: sensor.defi_hilo state: appreciation - condition: state entity_id: sensor.defi_hilo state: scheduled - condition: time after: '11:55:00' before: '12:05:00' actions: - action: climate.set_temperature metadata: {} data: {} target: entity_id: climate.thermostat_cuisine - alias: Défi Hilo Préchauffe AM description: Gère la préchauffe Hilo du matin/Manages the AM pre-heat phase of a Hilo Challenge mode: single triggers: - entity_id: - sensor.defi_hilo to: pre_heat trigger: state - at: 04:00:00 trigger: time conditions: - condition: time before: 04:05:00 after: 03:55:00 - condition: or conditions: - condition: state entity_id: sensor.defi_hilo state: pre_heat - condition: state entity_id: sensor.defi_hilo state: reduction actions: - data: temperature: 15 target: entity_id: climate.thermostat_salle_de_bain action: climate.set_temperature - metadata: {} data: {} target: entity_id: switch.prise_echangeur_d_air action: switch.turn_off - alias: Défi Hio Préchauffe PM description: Gère la préchauffe Hilo de l'après-midi/Manages the PM pre-heat phase of a Hilo Challenge mode: single triggers: - entity_id: - sensor.defi_hilo to: pre_heat trigger: state - at: '15:00:00' trigger: time conditions: - condition: time before: '15:05:00' after: '14:55:00' - condition: or conditions: - condition: state entity_id: sensor.defi_hilo state: pre_heat - condition: state entity_id: sensor.defi_hilo state: reduction actions: - metadata: {} data: {} target: entity_id: switch.prise_echangeur_d_air action: switch.turn_off - alias: Défi Hilo Recovery AM description: Permet de gérer la période de reprise AM/Manages the AM recovery phase of a Hilo Challenge mode: single triggers: - entity_id: - sensor.defi_hilo to: recovery from: reduction trigger: state - at: '10:00:00' trigger: time conditions: - condition: time before: '10:05:00' after: 09:55:00 actions: - data: temperature: 18 target: entity_id: - climate.thermostat_cuisine action: climate.set_temperature - metadata: {} data: {} target: entity_id: switch.prise_echangeur_d_air action: switch.turn_on - alias: Défi Hilo Recovery PM description: Permet de gérer la période de reprise PM/Manages the PM recovery phase of a Hilo Challenge mode: single triggers: - entity_id: - sensor.defi_hilo to: recovery trigger: state - at: '21:00:00' trigger: time conditions: - condition: time before: '21:05:00' after: '20:55:00' actions: - data: temperature: 18 target: entity_id: - climate.thermostat_cuisine action: climate.set_temperature - metadata: {} data: {} target: entity_id: switch.prise_echangeur_d_air action: switch.turn_on - alias: Défi Hilo Réduction AM description: Permet de gérer la période de réduction AM/Manages the AM reduction phase of a Hilo Challenge mode: single triggers: - entity_id: - sensor.defi_hilo to: reduction trigger: state - at: 06:00:00 trigger: time conditions: - condition: time before: 06:05:00 after: 05:55:00 - condition: or conditions: - condition: state entity_id: sensor.defi_hilo state: pre_heat - condition: state entity_id: sensor.defi_hilo state: reduction actions: - data: temperature: 15 target: entity_id: - climate.thermostat_cuisine action: climate.set_temperature - alias: Défi Hilo Réduction PM description: Permet de gérer la période de réduction PM/Manages the PM reduction phase of a Hilo Challenge mode: single triggers: - entity_id: - sensor.defi_hilo to: reduction enabled: true from: pre_heat trigger: state - at: '17:00:00' trigger: time conditions: - condition: time before: '17:05:00' after: '16:55:00' - condition: or conditions: - condition: state entity_id: sensor.defi_hilo state: pre_heat - condition: state entity_id: sensor.defi_hilo state: reduction actions: - data: temperature: 15 target: entity_id: - climate.thermostat_cuisine action: climate.set_temperature