From 86c60651fc4005f46dce366b9f4e1dc12cd95e6f Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Wed, 12 Apr 2017 13:10:10 -0400 Subject: [PATCH] Moving a couple of scripts to mqtt triggers --- automations/jeff_home_enter.yaml | 12 ++++++++---- automations/jeff_summit_leave.yaml | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/automations/jeff_home_enter.yaml b/automations/jeff_home_enter.yaml index a1dd020..e62dde6 100644 --- a/automations/jeff_home_enter.yaml +++ b/automations/jeff_home_enter.yaml @@ -1,9 +1,13 @@ alias: "Jeff Arrives Home" trigger: - platform: zone - event: enter - zone: zone.home - entity_id: device_tracker.jeffreystonesiphone +# platform: zone +# event: enter +# zone: zone.home +# entity_id: device_tracker.jeffreystonesiphone + platform: mqtt + topic: anchoragehouse/jeffrey/status + # Optional + payload: 'stationary' action: - service: notify.notify data: diff --git a/automations/jeff_summit_leave.yaml b/automations/jeff_summit_leave.yaml index aec2910..a0e79ca 100644 --- a/automations/jeff_summit_leave.yaml +++ b/automations/jeff_summit_leave.yaml @@ -1,9 +1,13 @@ alias: "Jeff Leaves Summit" trigger: - platform: zone - event: leave - zone: zone.summit - entity_id: device_tracker.jeffreystonesiphone +# platform: zone +# event: leave +# zone: zone.summit +# entity_id: device_tracker.jeffreystonesiphone + platform: mqtt + topic: anchoragehouse/jeffrey/status + # Optional + payload: 'moving' action: - service: notify.notify data: