Skip to content

Instantly share code, notes, and snippets.

@aeshirey
Created July 16, 2019 05:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
- 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