Update Presence Automations

This commit is contained in:
2022-05-06 10:49:43 -07:00
parent 93ad678ea0
commit cc675ab325

View File

@@ -11,6 +11,9 @@ homeassistant:
person.jpk: person.jpk:
entity_picture: https://gravatar.com/avatar/e78e623948f3675cf1c51544f9bec928 entity_picture: https://gravatar.com/avatar/e78e623948f3675cf1c51544f9bec928
sensor.jp_presence_status:
entity_picture: https://gravatar.com/avatar/e78e623948f3675cf1c51544f9bec928
device_tracker.jp_p3a_gps: device_tracker.jp_p3a_gps:
friendly_name: J.P. Pixel 3a friendly_name: J.P. Pixel 3a
icon: mdi:map-marker icon: mdi:map-marker
@@ -143,6 +146,22 @@ automation:
topic: monitor/scan/arrive topic: monitor/scan/arrive
payload: scan 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 # Handle Just Arrived/Just Left State Transitions
- alias: Mark Person as Just Arrived - alias: Mark Person as Just Arrived
trigger: trigger: