Skip to content

Instantly share code, notes, and snippets.

@nunoazev
Last active May 28, 2019 00:06
Show Gist options
  • Save nunoazev/618f944aba2faeedb7b1dd1046f5725a to your computer and use it in GitHub Desktop.
Save nunoazev/618f944aba2faeedb7b1dd1046f5725a to your computer and use it in GitHub Desktop.
automation:
- alias: 'Turn on Light'
trigger:
- platform: state
entity_id:
- entity_id_DA_LUZ_A_ESCUTA
to: 'on'
from: 'off'
action:
- service: homeassistant.turn_on
entity_id: entity_id_DA_LUZ_PARA_ATIVAR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment