Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 401 #2

Open
mitkodotcom opened this issue Nov 9, 2018 · 0 comments
Open

Error 401 #2

mitkodotcom opened this issue Nov 9, 2018 · 0 comments

Comments

@mitkodotcom
Copy link

Sometimes (possibly when the IP address changes when Domoticz is still runing), the cloud rejects any further messages with HTTP code 401 (Unauthorized). Note that this is a different response than the one in the LOGIN sequence. I suppose melcloud locks the key to the IP address and thus invalidates the key if it is used by another IP address. This could be a problem for users with dynamic IP addresses or (as in my case) dual-homed with more than one internet connection.

Note that the key gets invalidated and doesn't work anymore, even if the IP address is returned back to the previous one.

Suggestion:

add elif (Status == 401): and a proper handling of this situation (may be the same as on disconnect)

gysmo38 pushed a commit that referenced this issue Jan 26, 2021
Add CurrentEnergyConsumed logging on start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant