mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Zone Trigger: changed entity_id from device_tracker to person (#14228)
Entity_id of a zone trigger can be both a person, or a device_tracker. I'd say that a person entity is the newer, recomended type.
This commit is contained in:
parent
cddd3720db
commit
8151efd0bc
@ -367,13 +367,13 @@ Note that a given webhook can only be used in one automation at a time. That is,
|
|||||||
|
|
||||||
### Zone trigger
|
### Zone trigger
|
||||||
|
|
||||||
Zone trigger fires when an entity is entering or leaving the zone. For zone automation to work, you need to have setup a device tracker platform that supports reporting GPS coordinates. This includes [GPS Logger](/integrations/gpslogger/), the [OwnTracks platform](/integrations/owntracks/) and the [iCloud platform](/integrations/icloud/).
|
Zone trigger fires when an entity is entering or leaving the zone. The entity can be either a person, or a device_tracker. For zone automation to work, you need to have setup a device tracker platform that supports reporting GPS coordinates. This includes [GPS Logger](/integrations/gpslogger/), the [OwnTracks platform](/integrations/owntracks/) and the [iCloud platform](/integrations/icloud/).
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
automation:
|
automation:
|
||||||
trigger:
|
trigger:
|
||||||
platform: zone
|
platform: zone
|
||||||
entity_id: device_tracker.paulus
|
entity_id: person.paulus
|
||||||
zone: zone.home
|
zone: zone.home
|
||||||
# Event is either enter or leave
|
# Event is either enter or leave
|
||||||
event: enter # or "leave"
|
event: enter # or "leave"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user