Last active
January 22, 2020 03:40
-
-
Save brianhanifin/7464297a1e7a96839cc439695968bcca to your computer and use it in GitHub Desktop.
post-2020-01-21 automations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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