Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Vent - fan control on Kitchen hood
- description: ""
- trigger:
- - platform: numeric_state
- entity_id: sensor.14_zwave_plug_power
- for:
- hours: 0
- minutes: 0
- seconds: 10
- above: 50
- id: hood_on
- - platform: numeric_state
- entity_id: sensor.14_zwave_plug_power
- for:
- hours: 0
- minutes: 0
- seconds: 10
- below: 40
- - platform: event
- event_type: timer.finished
- event_data:
- entity_id: timer.ventilation_fan
- condition: []
- action:
- - choose:
- - conditions:
- - condition: trigger
- id:
- - hood_on
- sequence:
- - service: select.select_option
- data:
- option: In
- target:
- entity_id: select.ca350_fan_control
- - service: timer.start
- data:
- duration: "01:00:00"
- target:
- entity_id: timer.ventilation_fan
- default:
- - service: select.select_option
- data:
- option: Both
- target:
- entity_id: select.ca350_fan_control
- - service: timer.cancel
- data: {}
- target:
- entity_id: timer.ventilation_fan
- mode: restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement