#Trigger when leaving work & connecting to car wifi

1 messages · Page 1 of 1 (latest)

abstract chasm
#

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

drowsy glen
#

if you enable wifi connection under diagnostics for your phones device you can check the ssid it is connected to. so you could use a trigger for disconnecting from wifi?

abstract chasm
drowsy glen
#

it can still be the trigger. you just need to find other conditions to apply

abstract chasm
drowsy glen
#

or from work wifi no matter what to?

abstract chasm
drowsy glen
#

that must be up to your conditions really. hard to say without knowing the geography or your habits. maybe have some helper to decide if you are at work or left work without having attached to a new ssid. a kind of tristate. at work, not at work and in transit. when disconnecting from work go to in transit. then if you connect to car wifi and helper says in transit, start boiler and change to not at work? probably other ways that make more sense.

abstract chasm
grave ice
#

Do you leave work on a regular schedule?

#

How about reconceptualizing the problem as "approaching home from work" rather than "leaving work"? If you specify a zone for work and a zone for a waypoint en route from work to home, you could establish that you are heading towards home based on the order of entering and leaving zones. Then trigger on that trajectory.

abstract chasm