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:
Stefan 2020-08-11 13:05:41 +02:00 committed by GitHub
parent cddd3720db
commit 8151efd0bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"