Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
56 lines (53 sloc) 1.39 KB
- alias: 'Turn on ventilation when CO2 level high'
trigger:
- platform: numeric_state
entity_id: sensor.netatmo_indoor_co2
above: 1200
condition:
- condition: state
entity_id: switch.ventilatie_145
state: 'off'
- condition: state
entity_id: group.all_persons
state: 'home'
action:
- service: switch.turn_on
entity_id: switch.ventilatie_145
- alias: 'Turn on ventilation when using hot water for more than 3 minutes'
trigger:
- platform: state
entity_id: sensor.heating_status
to: 'hot water active'
for:
minutes: 3
condition:
- condition: state
entity_id: switch.ventilatie_145
state: 'off'
- condition: state
entity_id: group.all_persons
state: 'home'
action:
- service: switch.turn_on
entity_id: switch.ventilatie_145
- alias: 'Turn off ventilation after 2 hours'
trigger:
- platform: state
entity_id: switch.ventilatie_145
to: 'on'
action:
- delay: 2:00:00
- service: switch.turn_off
entity_id: switch.ventilatie_145
- alias: 'Turn off ventilation when activating night mode'
trigger:
- platform: state
entity_id: input_boolean.night_mode
to: 'on'
condition:
- condition: state
entity_id: switch.ventilatie_145
state: 'on'
action:
- service: switch.turn_off
entity_id: switch.ventilatie_145
You can’t perform that action at this time.