Unavailable trigger

Ok, I am a bit dumbfounded of what I can do. I have a device location trigger that fires when there is a change. Issue is that the device will go “unavailable” then home.

When this happens my garage will open because there is a switch connected to the trigger (as you figured is set to my car) for home and not home to open or close the garage. I figure I can add a 3rd value to the switch for unavailable, but what do i do when it then goes back to home. I would prefer not to put another switch before the existing switch that will filter out the unavailable but that may be my only choice.

Help if you can

image

at the bottom of the call service node, there are several check boxes to stop that from happening.

That was the first thing i did. it still will pass it on and then a home. Its passed as a status for some stupid reason.

You need to share the sequence then so we can see what nodes you are using and how they are configured.

All it is is getting the device_tracker event state when it changes.

image

And the checkbox named “previous state is unavailable”?
Your problem was when it was unavailable and became home.
And that is what that checkbox prohibits.

so should i uncheck the current state is unknown or unavailable and switch to previous or use both do you think?

Check the boxes you find appropriate for your sequence.
I don’t know anything about it since you didn’t share it.
I don’t know if you filter something or if you use the unknown current state to something.

I just don’t want the garage to open if it becomes unavailable then says its home. I want it to ignore the unavailable value completely

Then ignore those values with the checkboxes.
I assume that means all checkboxes

lets see if that works, its annoying to keep having the garage open overnight

Checked last night and it is good. There was an unavailable and it didn’t do anything.

Now if I could get it so that the car location was better. I have a Tesla and the HACS integration works, but doesn’t refresh well enough. I had to get the node red API and loop for when I’m away. Literally took 5 sometime 10 minutes to know that I’m away.

Doesn’t the car connect to wifi? Use the device tracker for the ip if your router has an integration. Otherwise set up a ping sensor in HA.

I thought of doing that, but it too takes a while to know if its away. Also if it disconnects and it will think its away. The ones in red was just because of disconnect.

image

What if you add the condition that your phone needs to be connected to the car via bluetooth.

Thats a pretty good idea, now I have to figure out which connected device Mac ID is the car. There isn’t an easy way to figure that out other than connecting?