Update Presence Automations
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user