Closed jam313 closed 6 months ago
That error means that your HA instance is successfully authenticating to the Subaru API, but the device ID it is using isn't on the list of devices authorized with 2FA. Authorizing via 2FA occurs during initial setup, but if the device is ever deleted on the Subaru side, it will result in a broken installation. It should be possible to recognize this situation from the error code and automatically present the user with the option to reauthorize with 2FA, but I haven't figured out how to initiate a config flow step outside of an initial setup context.
In the mean time, you should be able to get your HA instance working again by deleting the Subaru device entry you have and then running the Subaru setup again. It should generate an new device ID and require you to complete the 2FA process in the config flow.
Removing the Entity and re-adding fixed the issue for me! not sure why it had an issue in the first place though.
I had the integration working with my vehicle on a previous installation of HA, on docker with and a manual installation. I recently migrated to HA OS and installed the integration via HACS.
After setting up the integration, I entered my pin and it was accepted, but shows the message "Failed to setup"
In the log I see two errors (below), but I it indicates that one is cause by the first not being handled.
I've confirmed it is still working through the Subaru app and I know the vehicle should be supported as it was connected before.
Error 1
Error 2