Moving a couple of scripts to mqtt triggers

This commit is contained in:
Jeffrey Stone 2017-04-12 13:10:10 -04:00
parent 187f53091e
commit 86c60651fc
2 changed files with 16 additions and 8 deletions

View File

@ -1,9 +1,13 @@
alias: "Jeff Arrives Home" alias: "Jeff Arrives Home"
trigger: trigger:
platform: zone # platform: zone
event: enter # event: enter
zone: zone.home # zone: zone.home
entity_id: device_tracker.jeffreystonesiphone # entity_id: device_tracker.jeffreystonesiphone
platform: mqtt
topic: anchoragehouse/jeffrey/status
# Optional
payload: 'stationary'
action: action:
- service: notify.notify - service: notify.notify
data: data:

View File

@ -1,9 +1,13 @@
alias: "Jeff Leaves Summit" alias: "Jeff Leaves Summit"
trigger: trigger:
platform: zone # platform: zone
event: leave # event: leave
zone: zone.summit # zone: zone.summit
entity_id: device_tracker.jeffreystonesiphone # entity_id: device_tracker.jeffreystonesiphone
platform: mqtt
topic: anchoragehouse/jeffrey/status
# Optional
payload: 'moving'
action: action:
- service: notify.notify - service: notify.notify
data: data: