Hi there!
I am trying to create an automation that turns on the boiler for a certain amount of time whenever I leave work.
However, I can't find a great solution for the trigger.
If I use a state trigger where the person entity leaves the zone, the boiler will turn on, but I pass through this zone quite often (even when I'm not working), so it's not a reliable solution.
Before I had my car, I used the phone's WiFi connection sensor to detect when I left work WiFi (switching to <Not Connected>). However, my vehicle now has its own WiFi, so my phone switches from work WiFi to <Not Connected> for a few minutes until I get to the car, and then it connects to car WiFi.
I have no idea how to improve this and make it more efficient.
Sending the YAML code for the automation –
Sending the yaml code of the automation -
https://pastes.io/automation