Integration won’t log in since Hon updated their app #58
Labels
No Label
air conditioner
air purifier
air scanner
authentication error
bug
candy
dish washer
documentation
duplicate
enhancement
fridge
good first issue
haier
help wanted
hob
hood
hoover
invalid
microwave
new appliance
oven
pyhOn
question
robot vacuum cleaner
tumble dryer
washer dryer
washing machine
water heater
wine cellar
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xiconfjs/hon#58
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
No logs as I’m mobile right now. Will update when I get home. Just wanted to make you aware.
Hi, I'm on vacation until the middle of next week and unfortunately I can't fix or even analyze it until then 😬
If someone finds the change in the api and can create a pr I can publish a new version.
Does this occur also on the latest stable version (v0.7.3)? For the beta version I set the hOn Version to 2.x in the const.py of pyhOn 🤔
Oh I wasn't busting' you balls for a fix. Just letting you know of the issue. Enjoy your holiday buddy!
I'm using v0.8.0-beta.5 so I can update to beta 8 and see what happens....
Logs:
Beta 8 has the same issue.
yes - same problem on v0.7.3 unfortunately.
Same problem with me.
Yeah seems to be a general change on their side, gvigroux's hOn integration (https://github.com/gvigroux/hon/issues/94) suffers from the same issue.
Here's some more debugging logs:
I think every version is affected after a new login (if the token expired or restart happened).
The bug seems to be at this line in pyhOn. Until now the api expected not json data, but form data with values as json there. Maybe this changed now, maybe the encoding changed, maybe it's expected now a full json body. To find this out, it's necessary to see what the hOn app now sends to the servers with a mitm.
But I can not fix this myself until Wednesday...
I think I was already having issues and then logged into the app on my phone to check. I'm not sure.
I am currently decompiling the hOn app. I will let you know if I find anything.
https://github.com/banto6/haier/blob/master/custom_components/haier/haier.py
This seems to be the new way of authenticating.
This seems to be for Haier uhome (haier app for chinese market) only 🤔
Haier has a lot of apps for different markets, see this comment.
Some share the same authentication and some use a complety different.
Oh, shame. I thought I was on to something there. I'm glad I didn't go into too much detail. Thanks for the heads up!
Hey, I'm back in Germany and had a quick look and think I found the issue. It seems there was really a change in the json quoting of the form and I fixed this now in pyhOn.
I created a new beta release
v0.8.0-beta.9
. Please test and if this works for everyone, I will publish the newv0.8.0
soon.Hi, it's working, I've just login successfully.
works fine for me too - thanks.
Who gets home and then immediately fixes it in the early hours of the morning?!
But great job, thanks!
Still not working for me.
Ciao l'integrazione adesso effettua la registrazione, il problema che non capisco è quando vado ad accendere il climatizzatore dopo qualche secondo torna automaticamente su spento
@finalbillybong that's seems to be another issue that is not related to the authentication, please create a new GitHub issue 🙂
@Maicolsara I don't understand, please write in English (check if you have an auto translation enabled)
@Andre0512 sorry, Hi the integration now registers, the problem is not when I go to turn on the air conditioner after a few seconds it automatically goes back to off
Could be the same behavior like #52 (I will be working on it in the next days), please check it out or create a new issue if it's another problem.
I'm still seeing
0.7.3
as the latest version available via HACS. Anyone else?So far I just release a new beta, you can install it like this
But I will release
v0.8.0
soon 🙂I seems to work. Only thing…cool and heat not working. Other functions are working
Ah didn't see that it was only released as a beta. Thanks for clarification, works again!