evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Home Assistant App: "401: Unauthorized" => delete cookies

Open kolAflash opened this issue 6 months ago • 1 comments

Describe the bug

I'm not sure if this was caused by me changing the HA (Home Assistant) configuration lately (changed password and HTTP port). But today I couldn't open the EVCC UI trough HA. But opening http://HOME_ASSISTANT:7070/ was still working fine.

All I got was a white frame showing: 401: Unauthorized
Uninstalling the app in HA (and deleting app data) and reinstalling didn't solve the issue.

workaround

Delete browser cookies for http://HOME_ASSISTANT

Steps to reproduce

I'm not sure how to reproduce on a fresh installation. But basically you simply open the EVCC app in HA and get that 401: Unauthorized message.

Configuration details

(not sure where to find in HA)

Log details

Nothing which seemed relevant in the logs.
(the issue is now solved on my system by deleting the cookied and I don't know how to bring it back to log it)

What type of operating system or environment does evcc run on?

HomeAssistant Add-on

External automation

  • [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • [ ] I have verified that the issue is reproducible with the latest nightly build

I have no way of testing this with the latest nightly build. As said, after solving the issue by deleting the cookies I don't know how to reproduce it again.

For the moment, the main purpose of this issue report is to document this behaviour.
So other users don't need to go trough re-installation of the EVCC HA app for 2 hours and deleting the whole configuration like I did.

So feel free to close this issue. Maybe someday someone finds a way to reproduce this on purpose, so it can be reopened.

Version

0.307.1

kolAflash avatar May 25 '26 17:05 kolAflash

Cannot confirm the issue on my end. Using HA 2026.5.3 and evcc in version 0.307.1 I still can open evcc directly out of HA. Seems no general issue - I know, not very helpful but seems it's a (network / authorization) issue on your end.

Edit: or something got stuck, as you can get it work with deleting Cookies..

SolarPower2024 avatar May 25 '26 17:05 SolarPower2024