I wanted to add an automation that would trigger when my son leaves the house (an automatic room cleaning system, folding everything that is on the floor, opening the windows, make the bed etc. ).
For that I did the following:
making sure his phone has a device_tracker entity (phone_name is the actual name of his phone, as advertised by the phone and registered on the WiFi Access Point)
Make sure you have reloaded the Person integration either using Developer Tools > YAML then scroll down and click on “People”, OR restart Home Assistant… Settings > Systems press “Restart” at the top.
For zone automation to work, you need to have setup a device tracker platform that supports reporting GPS coordinates.
Given the entity shows “UniFi Network”, I’m assuming it does not have lat/long co-ordinates.
You could possibly create an MQTT device tracker based on the UniFi one that adds lat/long and then use that instead. Or you could try adding lat/long as customizations and see if they’re enough to satisfy the requirement.
But it’s also worth noting that device trackers take a while to update - he’ll be long gone and you’ll be left cleaning up after him
Thank you for the information - I missed that in the documentation.
His presence is however visible in the journal (“was detected at home”, “was detected away”) - isn’t there a way to trigger on these?
<serious=off>
As for the last part - I was probably unclear with the “actions” part of this automation: it is intended to start a sophisticated routine by a robot that would do the cleaning, folding, bed etc. Powered by AI and ChatGPT and Meta.
This is an ongoing project, phase 1 is to have the roller shutters go up. But this is a start.