Kind of rebooting Trigger automation with passive zones here as this is very related to the mobile app and I think Robbie is the right person to shine some light on it.
Spent some hours testing on this but I could have missed something, let me know then.
Situation:
iBeacons are located in the house. They should provoke an automation if an iPhone sees them (HA app reports this to HA). The house is in a relatively big zone.
Problem:
iBeacons only provoke an automation:
- via a zone change.
- if the zone is not overlapping with another zone.
- if the zone is not passive.
The result is that it only works when giving the iBeacon zone a false GPS location outside of the home zone and making it non passive. And the result of that again is that a person would be shown to be in a location where he/she is absolutely not.
Proposed solution:
Add subzones to HA. Home as a zone and subzones such as garage, bathroom, etc.
zones:
- name: Home
latitude: 123456
longitude: 789101
radius: 30
icon: mdi:home
subzone:
- garage
uuid: b429cee8-eff7-48e6-97b3-bbf5cc9fc52b
major: 0
minor: 1
- bathroom
uuid: b429cee8-eff7-48e6-97b3-bbf5cc9fc52b
major: 0
minor: 2
Then an automation could be:
- alias: Enter garage > light on
trigger:
- platform: zone
entity_id: person.someone
zone: zone.home
subzone: garage
event: enter
action:
- service: light.turn_on
data_template:
entity_id: light.garage
Hoping for some comments and then open a final one on Github maybe.