I’m having trouble getting my automation to work and am trying to troubleshoot it.
I would like the trigger to be when my phone connects to my home Wifi, I have given the phone a friendly name of “V30” and have set device tracker up - it correctly changes the status on the overview page when i connect / disconnect so i’m happy the tracker is working ok.
The condition I would like is that automation only works between the hours of 13:00 and 14:00.
The automation is an action on my harmony hub which shows up in the overview page and I can manually trigger.
Not sure, it is supposed to be ‘military time’ which is six digits, but some people seem to get things to work without the seconds in some circumstances.
I have changed the time condition to “from 13:00:0 to 23:00:00” so that its in-line with the current time.
I updated the .yaml file, restarted and then once fully booted I connected my phone to the wifi. The logbook picks up the state change of v30 from away to home but still doesnt fire the automation.
yes, its in the overview and toggle is set to on position. Also shows in the logbook as on, I connect to the wifi and logbook shows the state of the phone change but doesnt trigger the automation.
I can override and manually trigger it on the overview page
You need to make certain that the entity id is correct in the automation, and then restart homeassistant. The automation itself is valid, it’s just the entity_id that is causing you problems.
In the end I got rid of the friendly name in device tracker and put it back to “android83551c289018dc5a” and used the same in the trigger as it still wouldnt work with the friendly name in device tracker settings and the long name in the trigger.