From 26775a20583294754149a98befbdaee6911ef476 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Fri, 9 Mar 2018 12:39:35 -0500 Subject: [PATCH] removing arrived as a desitnation and adding new sensors --- automation/presence.yaml | 2 +- scripts/jeff_destination_arrived.yaml | 7 ------- scripts/jeff_is_home.yaml | 2 +- scripts/kat_destination_na.yaml | 7 +++++++ sensors/users.yaml | 3 +++ 5 files changed, 12 insertions(+), 9 deletions(-) delete mode 100644 scripts/jeff_destination_arrived.yaml create mode 100644 scripts/kat_destination_na.yaml diff --git a/automation/presence.yaml b/automation/presence.yaml index 013ee9c..3429f6c 100644 --- a/automation/presence.yaml +++ b/automation/presence.yaml @@ -70,7 +70,7 @@ platform: zone zone: zone.summit action: - - service: script.jeff_destination_arrived + - service: script.jeff_destination_na - service: script.jeff_at_work_notification - alias: Kat Arrives Home Notification diff --git a/scripts/jeff_destination_arrived.yaml b/scripts/jeff_destination_arrived.yaml deleted file mode 100644 index d463025..0000000 --- a/scripts/jeff_destination_arrived.yaml +++ /dev/null @@ -1,7 +0,0 @@ -jeff_destination_arrived: - sequence: - - service: mqtt.publish - data: - topic: "jeff/driving/destination" - payload: "Arrived" - retain: true diff --git a/scripts/jeff_is_home.yaml b/scripts/jeff_is_home.yaml index 8b34878..c2b0060 100644 --- a/scripts/jeff_is_home.yaml +++ b/scripts/jeff_is_home.yaml @@ -1,6 +1,6 @@ jeff_is_home: sequence: - - service: script.jeff_destination_arrived + - service: script.jeff_destination_na - service: script.driveway_on - service: input_boolean.turn_off entity_id: input_boolean.jeff_heading_home diff --git a/scripts/kat_destination_na.yaml b/scripts/kat_destination_na.yaml new file mode 100644 index 0000000..905e4af --- /dev/null +++ b/scripts/kat_destination_na.yaml @@ -0,0 +1,7 @@ +kat_destination_na: + sequence: + - service: mqtt.publish + data: + topic: "kat/driving/destination" + payload: "na" + retain: true diff --git a/sensors/users.yaml b/sensors/users.yaml index 569df77..c89424d 100644 --- a/sensors/users.yaml +++ b/sensors/users.yaml @@ -1,6 +1,9 @@ - platform: mqtt name: "Jeff Destination" state_topic: "jeff/driving/destination" +- platform: mqtt + name: "Kat Destination" + state_topic: "kat/driving/destination" - platform: template sensors: family_presence: