The same happens when trying to automatically connect to the nabu casa cloud for HA. Both are phone based triggers so I assume there must be something stopping to send state changes?
Your first trigger looks fine, post the automation trace so we can see what is going on with it.
But your second trigger…
This is a nonsense trigger configuration… Geolocation triggers are not based on your device trackers, they are based on comparing defined zones with data provided by an outside source, mostly related to natural disaster and emergency alert systems.
I don’t know whether it is related but my wife’s Iphone (using the HA Nabu App) location sharing all the time changes from “always” to “when using the app”. The same happens when using Google Maps sharing, so I assumem it is an IOS issue and HA.
sadly it doesnt update on opening the app/ I am using an android phone. I think it has to be some kind of permission thing, because the actions are correct, just the trigger doesnt work.
Why not go by user instead of device tracker?
a device tracker is connected to a user
so I use this
- id: Turn off the lights when I leave home
alias: Turn off the devices when no one is at home
description: Turn off the devices when no one is at home
trigger:
- platform: state
entity_id: group.users
to: not_home
condition: []
action:
- service: switch.turn_off
......
this is for when all users leave home, but you can tie entity to only you if needed,
probably it doesn’t matter if you live alone.
Going through the settings and troubleshooting in the companion app I found out, that the Tracking worked, but the information is not send, I get multiple entries in the troubleshoot that look like this:
Yes, if you are turning off remote access while you are home, you will need to have a “stationary” device tracker (bluetooth, router, or network based) that can determine when you have left without requiring input from the phone app, since it will not be connected.
I thought that triggering the remote access whenever I disconnect my phone from wifi might be a suitable trigger for the remote access but apparently I can’t connect to the cloud while not in my home network, the trigger to start the remote access must happen while still at home. I’ll have to experiment with an always on remote access and see if that will help.