From cc675ab3256443bf501a0e0f185ecf37e7ccd2f2 Mon Sep 17 00:00:00 2001 From: "J.P. Krauss" Date: Fri, 6 May 2022 10:49:43 -0700 Subject: [PATCH] Update Presence Automations --- packages/presence/presence.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/packages/presence/presence.yaml b/packages/presence/presence.yaml index 4afa4ea..6b9c1db 100644 --- a/packages/presence/presence.yaml +++ b/packages/presence/presence.yaml @@ -11,6 +11,9 @@ homeassistant: person.jpk: entity_picture: https://gravatar.com/avatar/e78e623948f3675cf1c51544f9bec928 + sensor.jp_presence_status: + entity_picture: https://gravatar.com/avatar/e78e623948f3675cf1c51544f9bec928 + device_tracker.jp_p3a_gps: friendly_name: J.P. Pixel 3a icon: mdi:map-marker @@ -143,6 +146,22 @@ automation: topic: monitor/scan/arrive payload: scan + # Run Bluetooth Departure Scan if a Ping Device Tracker goes Away + - alias: Bluetooth Departure Scan + trigger: + - platform: state + entity_id: device_tracker.jp_p3a_ip + to: 'away' + - platform: state + entity_id: device_tracker.jen_iphone_ip + to: 'away' + mode: queued + action: + - service: mqtt.publish + data: + topic: monitor/scan/depart + payload: scan + # Handle Just Arrived/Just Left State Transitions - alias: Mark Person as Just Arrived trigger: