Skip to content

Instantly share code, notes, and snippets.

@aeshirey
Created July 16, 2019 05:00
Show Gist options
  • Save aeshirey/5a640e4be3d59c8d2ab9fc2595cabdfd to your computer and use it in GitHub Desktop.
Save aeshirey/5a640e4be3d59c8d2ab9fc2595cabdfd to your computer and use it in GitHub Desktop.
- id: '1234'
alias: ventilate_on
trigger:
- payload: 'on'
platform: mqtt
topic: ventilate
condition: []
action:
- data:
entity_id: switch.wind_tunnel
service: switch.turn_on
- data:
entity_id: switch.boys_fan
service: switch.turn_on
- id: 'ventilate_off'
alias: ventilate_off
trigger:
- payload: 'off'
platform: mqtt
topic: ventilate
condition: []
action:
- data:
entity_id: switch.wind_tunnel
service: switch.turn_off
- data:
entity_id: switch.boys_fan
service: switch.turn_off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment