Skip to content

Instantly share code, notes, and snippets.

@brianhanifin
Last active January 22, 2020 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianhanifin/7464297a1e7a96839cc439695968bcca to your computer and use it in GitHub Desktop.
Save brianhanifin/7464297a1e7a96839cc439695968bcca to your computer and use it in GitHub Desktop.
post-2020-01-21 automations
---
alias: front_door_locked
initial_state: true
trigger:
- platform: state
entity_id: lock.front_door
from: 'unlocked'
to: 'locked'
action:
# Return the Status LED to normal.
- service: script.inovelli_led_off
data:
entity_id: zwave.dimmer_family_room
---
alias: front_door_unlocked
initial_state: true
trigger:
- platform: state
entity_id: lock.front_door
from: 'locked'
to: 'unlocked'
action:
# Start a "Chase" effect. I chose Cyan to indicate the front door is unlocked, and Purple for the Garage Door.
- service: script.inovelli_led
data:
entity_id: zwave.dimmer_family_room
color: cyan
effect: chase
duration: 15 seconds
level: 4
- delay:
seconds: 14
# Stop here if the door has already been locked.
- condition: state
entity_id: lock.front_door
state: 'unlocked'
# Change effect to "Pulse".
- service: script.inovelli_led
data:
entity_id: zwave.dimmer_family_room
color: cyan
duration: indefinitely
effect: pulse
level: 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment