I updated HA to .83 and cannot get OwnTracks HTTP to work. In the app settings, I entered the Webhook URL from HA Integrations page, turned on authentication and entered a user ID. I left password and secret blank (also tried entering the secret as well).
The status in the app shows: error The operation couldn’t be completed. (HTTP Response error 400.) { }
In HA, it shows error: Set a username in Connection > Identification
No idea what I’m doing wrong. It sounds like the OwnTracks app is not sending the userid field (is that what the error in HA means)?
For sure an issue. I am able to get everything working fine on my Android device which allows me to specific the device id. On iOS (my wife’s iPhone) I get the 400 error you are getting and I can’t set the device id. I assume you are using iOS?
I think you and a lot of people are having issues. 0.83 created a breaking change in owntracks. i haven’t messed with it but it’s all over the boards.
OwnTracks is now using config entries. To set it up, go to the configuration panel and configure it there. When configured and MQTT is available, will automatically listen there too. (@kirichkov - #17034) (@balloob - #18759) (owntracks docs) (breaking change)
Uninstalling and installing the Owntracks app on my iPhone solved the problem. Just used the username and api/webhook url in the settings and put authentication on true.
give it some time. It took 45 minutes for it to start working without error for me. some things to try, toggle Auth on and off, change the webhook to an invalid address(add a letter) and then change it back. seems like the settings take a while to take affect in the owntracks app.
I already reverted back HA. Did you try manually adding the device to known_devices.yaml? I had to do that with the old OwnTracks integration because it wasn’t adding it automatically.
I had onwtracks working for a few years now, so yes devices are already there, it seams lately that people don’t know what to do on HA so they are “innovating” but on the wrong side.
Every new release is like rolling a dice to see what stops working,
These webhook tokens are they supposed to work even to a hassio instance on localhost? I can’t figure this out, because it works as long as I’m on my local network and stops when I’m out of wifi-range. Can someone please confirm this?