‘a.b.c.d’ is my correct Hassio IP.
‘xyz’ is a “Long-Lived Access Token” Generated via the webinterface of Hassio.
Ran ‘service hass start’ on OpenWRT.
Syslog of OpenWRT:
Sat Dec 15 18:25:00 2018 user.err /usr/bin/hassd.sh: post response curl: (22) The requested URL returned error: 401 Unauthorized
Sat Dec 15 18:25:00 2018 user.err /usr/bin/hassd.sh: post response curl: (22) The requested URL returned error: 401 Unauthorized
And Hassio reports ‘login attempt failed’.
Added :api to configuration.yaml although that might not be required?
Also ran opkg install hass on the OpenWRT router since it might have been an outdated package. 0.1.1-1 is reported to be installed.
What am I missing here?
AAARGH the package was not updated with the latest commit from 20 Oct.
Manually downloaded functions.sh and got it working.
If anyone likes a step by step tutorial for this device tracker method, let me know.
I set by step guide to this topic would be great. I have been struggling with the instructions for a while and got stuck at the same point that you are describe.
Yes got it up and running now. Thanks for the advice.
I am having some issue’s though. Association events work perfect and disassociation when i turn off wifi as well, but when i leave the house the message gets ignored
Sat Feb 23 14:35:39 2019 daemon.info hostapd: wlan1: STA f0:98:9d:b4:fc:39 IEEE 802.11: disassociated due to inactivity
Sat Feb 23 14:35:39 2019 user.debug /usr/lib/hass/push_event.sh: push_event wlan1 AP-STA-DISCONNECTED f0:98:9d:b4:fc:39
Sat Feb 23 14:35:39 2019 user.debug /usr/lib/hass/push_event.sh: push_event ignored as device is still online
Sat Feb 23 14:35:40 2019 daemon.info hostapd: wlan1: STA f0:98:9d:b4:fc:39 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
On a more irrational level, I think development of the component is pretty much halted. So be warned one day a (big) change in Home Assistant might break this component forever.
Yes I was already a bit afraid that it wasn’t really actively developed anymore. But it is the only presence detection on OpenWRT that i got working. I think this is because i use the router as a dumb access point, but i am not sure of this. (my main router is from my ISP and doesn’t allow much configuring)
Do you think there is a better way for presence detection?