core: Evohome fails to initialize: Invalid response from server: string indices must be integers, not 'str'
[EDIT by @zxdavb] This issue was caused by a temporary issue with the vendor’s webservers, and poor error reporting by this integration.
The problem
2024-12-05 12:02:16.881 WARNING (MainThread) [evohomeasync2] Response JSON may be invalid: POST https://tccna.honeywell.com/Auth/OAuth/Token: expected a dictionary
2024-12-05 12:02:16.881 ERROR (MainThread) [homeassistant.components.evohome.helpers] Failed to authenticate with the vendor's server. Check your username and password. NB: Some special password characters that work correctly via the website will not work via the web API. Message is: Invalid response from server: string indices must be integers, not 'str'
2024-12-05 12:02:16.883 ERROR (MainThread) [homeassistant.setup] Setup failed for 'evohome': Integration failed to initialize.
What version of Home Assistant Core has the issue?
2024.12
What was the last working version of Home Assistant Core?
2024.11.3
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
Honeywell Total Connect Comfort (Europe)
Link to integration documentation on our website
https://www.home-assistant.io/integrations/evohome/
Diagnostics information
2024-12-05 12:02:16.881 WARNING (MainThread) [evohomeasync2] Response JSON may be invalid: POST https://tccna.honeywell.com/Auth/OAuth/Token: expected a dictionary
2024-12-05 12:02:16.881 ERROR (MainThread) [homeassistant.components.evohome.helpers] Failed to authenticate with the vendor's server. Check your username and password. NB: Some special password characters that work correctly via the website will not work via the web API. Message is: Invalid response from server: string indices must be integers, not 'str'
2024-12-05 12:02:16.883 ERROR (MainThread) [homeassistant.setup] Setup failed for 'evohome': Integration failed to initialize.
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 3
- Comments: 96 (9 by maintainers)
My setup is a Pi running HA OS. That means HA itself runs as a docker container. If your HA doesn’t run in a container you can edit the files directly. The steps I did:
terminal window(I use the Advanced SSH & Web Terminal add-on)docker ps | grep homeassistant:2024to find the homeassistant container IDdocker exec -it <homeassistant container ID> bashto open a shell inside the containervi /usr/local/lib/python3.13/site-packages/evohomeasync2/const.pyand changetccna.honeywell.comtotccna.resideo.comvi /usr/local/lib/python3.13/site-packages/evohomeasync/broker.pyand changetccna.honeywell.comtotccna.resideo.comviyou can alsonano.I’m still on 2024.10.1 and have the same issue. I suspect this issue is related to a change to Honeywell’s API, not anything on HA side. Happened at ~ 10:20 UTC
I’m getting two issues on HA (the app works though but not the website). Might try changing the password but it looks like this isn’t the issue
Logger: homeassistant.components.evohome.helpers Source: components/evohome/helpers.py:73 integration: evohome (documentation, issues) First occurred: 12:09:52 (1 occurrences) Last logged: 12:09:52
Failed to authenticate with the vendor’s server. Check your username and password. NB: Some special password characters that work correctly via the website will not work via the web API. Message is: Cannot connect to host tccna.honeywell.com:443 ssl:True [SSLCertVerificationError: (1, “[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for ‘tccna.honeywell.com’. (_ssl.c:1020)”)]
Logger: homeassistant.setup Source: setup.py:269 First occurred: 12:09:52 (1 occurrences) Last logged: 12:09:52
Setup failed for ‘evohome’: Integration failed to initialize.
Thinking about it, I will not issue a enhancement/fix to v0.4.20 of evohomeasync2 at this stage.
Instead, we’ll look at getting v1.x.x merged into HA.
Do not close this issue - it will remind me to tweak the integration so to prove a better error message.
I didnt update, and have a non working evohome integration. I also cannot login to connect site with my credentials. Its definitely a Honeywell issue for now if you ask me.
I think the HA core 2024.12 update is just a coincidence of timing. I opened up the Evohome ‘TCC Home’ App on my phone and it too failed to login. I was able to log back in to the phone app but next time I open the Evohome phone app it fails again. So does look like an Evohome authentication issue/change at their side.
I rolled back to the previous version however the issue remains, I suspect the issue is with the Honeywell web service rather than the 2024.12 release.
Taking a quick look at the Honeywell API guide (online) I note the base URL address is different or changed. That said, both API URLs authenticate to my Postman requests with valid JSON so it’s unlikely the issue.
Previous URL
New URL
My guess is the Evohome API response has been modified which is causing issues with the integration.
Log extract
AFAIC this isn’t a HA Core issue at all…
The root cause is honeywell/resideo messing up their ssl certificates. This prevents the python package the evohome integration depends on to connect to the API server, because the API server address is hardcoded in there (see https://github.com/zxdavb/evohome-async/issues/32 as already mentioned a few times in this thread).
I know the code owner of said package maintains a good rapport with the honeywell/resideo tech people. Ideally Resideo fixes their ssl certs, but they might be doing some upgrades and throwing hostnames around as a result.
I you are comfortable exec’ing into running docker containers, you can try the fix described in https://github.com/zxdavb/evohome-async/issues/32. A step by step instruction is posted a few posts earlier in this thread: https://github.com/home-assistant/core/issues/132366#issuecomment-2539283798 (thanks, @leen67 !)
https://github.com/zxdavb/evohome-async/issues/32
running 2024.12.2 I don’t see quote the same thing today but connection is failing with SSL issues now:
2024-12-12 09:18:48.849 ERROR (MainThread) [homeassistant.components.evohome.helpers] Failed to authenticate with the vendor's server. Check your username and password. NB: Some special password characters that work correctly via the website will not work via the web API. Message is: Cannot connect to host tccna.honeywell.com:443 ssl:True [SSLCertVerificationError: (1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'tccna.honeywell.com'. (_ssl.c:1020)")] 2024-12-12 09:18:48.853 ERROR (MainThread) [homeassistant.setup] Setup failed for 'evohome': Integration failed to initialize.Related?
There is a new, completely refactored version of the client library coming out that should not have the above deficiency:
There is another Evohome maintenance scheduled for 17th February at 03:00 est https://status.resideo.com/
I am closing this issue (poor error reporting), as it is resolved by #135436.
December 24, 2024 from 9:13 CET, maintenance of the Evohome system at the supplier for approximately 2 hours. There will be issues with HA integration and the application. https://status.resideo.com/
@cathelijne Thanks for your input - the primary reason I want to keep this open is to remind me to address exactly what you allude to - evohome should have thrown a more useful error message!
Fix worked for me in Ireland. Midnight Commander for easy editing: apk add mc

I am not sure this PR is a duplicate of the hostname bug - please leave it open for now.
Thank you all. Fixed it!
This worked perfectly and fixed the issue for me. Thank you!!!
The website login does not work though. I think it is just a wating game for Honeywell to fix their SSL certificate.
This is the cause of the first logged line,
WARNING ... Response JSON may be invalid:(indeed, it wasn’t):This is the second,
ERROR ... Invalid response from server: string indices must be integers, not 'str':The base issue is the the response is a string, and is not JSON.
The solution is to check the response is JSON before the first of the two code blocks and throw an exception (with a useful message) if it is not.
Its working too!
Working here now too!
For me as well - back to normal after HA restart in 2014.12
I am on 2024.12.0 and it is working again indeed!
Yes, app working for me again too. I might risk a core upgrade again then… after you! 😃
I’m still on HA core 2024.11.3. The Honeywell app started working for me again a few minutes ago, restarted HA and it is fine too. Looks like indeed the Honeywell servers had an issue for a while.
Your restore is probably using a cached (working) Evohome authentication. Looks like the HA core 2024.12 update reset these login credentials and revealed the Evohome issue when it tried to log back in. You are probably best staying on the restored HA until Evohome fix it… and in the interim not updating HA or restarting the Evohome integration so it stays authenticated.
Maybe when the Homeconnect phone app is working again it might be safe to upgrade HA??
I also just restored a backup and Evohome integration is back and working again. I will leave it all well alone for now! 😃
@cedricdelecole it’s added via YAML, probably in your configuration.yaml file