Set device tracker offline?

Hi
I’m using Node Red to integrate Tado geolocation into HA, which works fine - I take the geolocation info for each user and then use it to set either home or not_home using the device_tracker see service call.

However, sometimes the tado geolocation isn’t avialable (typically as the app has been offloaded off the phone). What I’d like to do is to set the HA device_tracker entity to unavailable in this case.

Anyone know how to do that from NR - is there a service call to set an entity to unavailable?

Thanks

I have been looking for that to in the past but I couldn’t find anything.

Just found that if you set the location name to “unavailable” using the device_tracker.see service then it does show the device as unavailable.

Rather than call a service fire the actual event onto the event bus. I assume that you’d have to just copy the format and change the state to unavailable.

But will that also remove the GPS coordinates?