Page 1 of 1
(Evohome) login failed with message: invalid_grant
Posted: Wednesday 31 August 2022 10:46
by friso82
Hi,
I just installed a new thermostat system (Honeywell Evohome) and noticed that I can also add this in Domoticz.
I created an account at international.mytotalconnectcomfort.com and managed to add my system to this account. I can see all zones in the Evohome app and are able to control the temperature.
When I try to add the system to Domoticz using the Web API method, I get the following in the logfile:
2022-08-31 10:27:35.952 Status: (Evohome) Worker started...
2022-08-31 10:27:45.961 Status: (Evohome) connect to Evohome server
2022-08-31 10:27:47.599 Error: (Evohome) login failed with message: invalid_grant
2022-08-31 10:29:47.672 Status: (Evohome) connect to Evohome server
2022-08-31 10:29:49.156 Error: (Evohome) login failed with message: invalid_grant
I tried changing the password (perhaps too many special characters or something) but this didn't solve the issue.
Any suggestions on how to debug or solve?
Thanks!
Friso
Re: (Evohome) login failed with message: invalid_grant
Posted: Friday 16 September 2022 23:14
by friso82
Anyone with any ideas? Looked at the source code but the only moment this invalid_grant issue is creates is when the token is no longer valid. Don't know how to solve this...
Code: Select all
if (!j_login.isMember("access_token"))
{
std::string szError;
if (j_login.isMember("error"))
szError = j_login["error"].asString();
if (j_login.isMember("message"))
szError = j_login["message"].asString();
if (!szError.empty())
{
if (szError == "invalid_grant") // refresh token is no longer valid
m_v2refresh_token = "";
_log.Log(LOG_ERROR, "(%s) renewing login failed with message: %s", m_Name.c_str(), szError.c_str());
return false;
}
_log.Log(LOG_ERROR, "(%s) renewing login returned unknown data", m_Name.c_str());
return false;
}
Re: (Evohome) login failed with message: invalid_grant
Posted: Monday 19 September 2022 14:52
by domofreak
Hello friso82,
It's not just the new install. I've been using the evohome with domoticz for two year now and it worked fine until last (somewhere) june. Evohome lost the connection to honeywell cloud somehow. Ones that has been restored I've been receiving the same message as you mention.
It could be that honeywell changes something on their side with te result that it is not possible to get the info using the domoticz plugin as is.
This would mean that the plugin needs an update. Haven't seen one yet. What I'm curious about is if more users experience this issue after a loss of the cloud connection or otherwise... like first install. Or, even beter, a permanent solution to this issue.
Br
Re: (Evohome) login failed with message: invalid_grant
Posted: Monday 26 September 2022 15:01
by friso82
Seems like we're the only people using Evohome with Domoticz

Or no one else is experiencing the same issue...
Re: (Evohome) login failed with message: invalid_grant
Posted: Thursday 29 September 2022 8:22
by JeroNeo
Same problem here. Beta environment Build 14498
devices last seen 2022-08-15 11:51:24
Best regards,
Jero
Re: (Evohome) login failed with message: invalid_grant
Posted: Thursday 29 September 2022 16:03
by friso82
Re: (Evohome) login failed with message: invalid_grant
Posted: Monday 03 October 2022 9:21
by JeroNeo
Thank you, i will follow this one also.
Best regards,
Jero
Re: (Evohome) login failed with message: invalid_grant
Posted: Monday 03 October 2022 9:51
by MikeyMan
friso82 wrote: Monday 26 September 2022 15:01
Seems like we're the only people using Evohome with Domoticz

Or no one else is experiencing the same issue...
You're not, but i'm experiencing other issues.
Since yesterday it's crashing all of Domoticz.
See:
viewtopic.php?t=39151
Re: (Evohome) login failed with message: invalid_grant
Posted: Wednesday 05 October 2022 10:17
by terrarium
friso82 wrote: Monday 26 September 2022 15:01
Seems like we're the only people using Evohome with Domoticz

Or no one else is experiencing the same issue...
Having the same problem. It was working fine until this morning as I changed the polling interval. Interval was 363 secs to overcome the "Request count limitation exceeded error" and adjusted it to 120 secs. After that the error "login failed with message: invalid_grant" occurred.
Domoticz beta 2022.1 (build 14534)
Re: (Evohome) login failed with message: invalid_grant
Posted: Wednesday 05 October 2022 18:08
by MikeyMan
Re: (Evohome) login failed with message: invalid_grant
Posted: Thursday 06 October 2022 13:08
by friso82
The pull request you're referring to is five years old, or am I looking at it the wrong way?
Re: (Evohome) login failed with message: invalid_grant
Posted: Saturday 08 October 2022 11:24
by MikeyMan
friso82 wrote: Thursday 06 October 2022 13:08
The pull request you're referring to is five years old, or am I looking at it the wrong way?
Nope... It should have been picked up in the meantime, but it isn't...
Now it's an accident waiting to happen.
Re: (Evohome) login failed with message: invalid_grant
Posted: Sunday 09 October 2022 11:22
by terrarium
I got it working again by doing some research on the same and similar error messages. Can't find the URL's but please try the following.
1. In your Evohome account, create a new password which meets the password requirements but contains only 1 special character, preferably a *
2. In Domoticz under hardware adjust "Evohome via web API" and disable "show schedule". You can leave "synchronize installation" and "show location" to on.
3. Set "poll interval" to be above 300 seconds.
4. adjust the password to what has been created under 1
5. click update
Please let me know if this works for you.
Re: (Evohome) login failed with message: invalid_grant
Posted: Monday 10 October 2022 9:30
by JeroNeo
Great! this workaround work for me as well.
Thank you.
Best regards,
Jero
Re: (Evohome) login failed with message: invalid_grant
Posted: Saturday 26 November 2022 23:39
by toldehi
Had the same problem after upgrading Domoticz to 2022.2 and this solution worked for me as well
Thanks!
Re: (Evohome) login failed with message: invalid_grant
Posted: Friday 26 January 2024 7:46
by John
Yesterday evening the Webapi to the Evohome stopped, I get: (EvoHome) login failed with message: invalid_grant
I run Domoticz 2024 dot 3. Anyone else with this problem?
Re: (Evohome) login failed with message: invalid_grant
Posted: Saturday 10 February 2024 14:41
by John
I solved the problem using:
https://github.com/domoticz/domoticz/issues/6011
- In your Evohome account, create a new password which meets the password requirements but contains only 1 special character, preferably a *
- In Domoticz under hardware adjust "Evohome via web API" and disable "show schedule". You can leave "synchronize installation" and "show location" to on.
- Set "poll interval" to be above 300 seconds.
- adjust the password to what has been created under 1
- click update
Re: (Evohome) login failed with message: invalid_grant
Posted: Thursday 27 November 2025 1:07
by Alain
I'm still on 2022.1 (build 14394) and just tried adding my Evohome, but I get the invalid_grant error. I tried the named solutions, but it's not working for me.
Re: (Evohome) login failed with message: invalid_grant
Posted: Thursday 27 November 2025 1:10
by Alain
I also tried "Evohome via LAN (remote HGI/S80) but can't connect. It wants me to add a port, but I can't find anything on the internet that tells you through which port to communicate. Any idea's?