-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
hOn Authentication Error while trying to add a newly created account #230
Comments
The issue also occurs when reloading an existing integration. I delved a little into the error and the issue is here: https://github.com/Andre0512/pyhOn/blob/63752e13d6c8e74284ad72e04306e9fedde58b40/pyhon/connection/auth.py#L123 |
I've got the exact same issue since today. I'll be able to try something for this on Thursday sadly. |
same here - Haier did some extra redirection I guess to kill existing intergation. |
Also same here after reloading the integration |
the same :( |
same also for me |
Hi, @ALL! To be honest - I am kind of worried what is happening to @Andre0512 : I hope all is good for Andre. @leits - any ideas what we can change to make this work? |
Any Python expert here? I specialise in Java so code in auth.py is kind of spagetti code for me.
text is now:
so it clearly does not have:
but It return main login HTML page. |
Does anyone of you have v0.14.0-beta.7 installed and can tell if the same error occurs? |
the problem is not with hon but with pyhon lib underneath hon. |
I tried this just in case, but no, not working using this version for me
|
Same issues with betas: |
Try last beta same issue
Il Mer 10 Lug 2024, 13:39 DarkStar ***@***.***> ha scritto:
… Does anyone of you have v0.14.0-beta.7
<https://github.com/Andre0512/hon/releases> installed and can tell if the
same error occurs? A push API has been implemented there, maybe it will
solve our error.
Same issues with betas:
image.png (view on web)
<https://github.com/Andre0512/hon/assets/134559937/e06bb1b8-85a4-4b3b-9b1d-17e9ba80d0e3>
—
Reply to this email directly, view it on GitHub
<#230 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXSCLWNBDLEW4EAWEDCAPTTZLUMORAVCNFSM6AAAAABKS2LP4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRQGI4TEOJQHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@zawadzkipiter , where can I find the pyhOn auth.py file? |
So Andre0512/pyhOn#29 fixes the login in the python package for me Anyway, these small changes should work for you https://github.com/Andre0512/pyhOn/pull/29/files |
I'm having the exact same issue on both 0.13 and 0.14 beta 7 |
@addshore hero! How did you reach Andre ? |
@addshore , on my end fails with: usage: pyhOn [-h] [-u USER] [-p PASSWORD] [-i [IMPORT]] COMMAND ... |
Sorry, this is how you would define pyhOn in integration |
same issue to me after I have updated HA to the last core 1h ago and restarted LE - did someone tried to reset the pass in HOS web site and delete the integration and re-added in HASS? |
@addshore, I manually edited /usr/lib/python3.12/site-packages/pyhon/connection/auth.py with your changes, and the washing machine can be query: however, Haier integration still fails to setup: Note: I never had this integration installed before. Founded it yesterday, when the issue was there already. |
same here |
Most probably it will have the same result. I never used this integration before, and have the issue, even after manually applying @addshore "fix" on pyhOn. |
I think ill wait for pyhon version officially went up to 0.17.5. I tried that changes but didnt get it to run. I bypassed the login process for now and injected the "access_token" "refresh_token" text manually in the auth.py. that works for now. |
So, I addshore@c5cff77 currently installed, and it all appears to be working for me now, but it did require an additional restart of HA too? If you want to do this the "easy" way, you can add Ultimately, i dont plan on maintaining this fork / release / repo, so I hope it gets released here too :) |
The only things I have done is 0.14.0-beta.8-addshore and 0.13.0-beta.1-addshore |
Even installing 0.14 beta 8 still installs 0.13 beta 1. I wanted to try beta 8, but I give up, I've already tried too many times. |
In my case I made the mistake of installing version 0.13.0 (not beta) and the python packages were stuck even when installing 0.13.0 beta. I had to restore backup made with Proxmox from a few hours earlier. I couldn't disable the python cache, although it's probably a simple thing. I can confirm that the 0.13.0-beta.1-addshore works if you install it at first. Thanks addshore and [Andre0512](https://github.com/Andre0512 for this work of art. Plase Haier, pay this two developers some bills and stop going against them, this integration is the only reason I bought Haier. |
Guys, Edit. |
Just got my new Haier Dryer yesterday and of course nothing worked in HA. |
is there any way to let it work without downgrading HA? QUOTE |
Downgrade is pretty easy and doesn't take long. 5min downgrade and 5 min Upgrade |
I had an issue with hOn app on Android as well. The app is so well designed that you must share credentials if the appliance is used by more than one family member. => security sucks. Note email received from Haier Europe Support, translated from Romanian: On the system we see that he only has two smartphones connected that he uses, but we see that he also started using the Home Assistant plugin that created the problem you described. This is because you can have a maximum of 5 devices connected at the same time, the 6th will disconnect the first device. Every time you use the Home Assistant plugin, it "adds" a connecting device and disconnects one of your two phones. We have cleaned your account and created a "clean" situation, please update the Home Assistant plugin and try again. Please note that in this case we cannot help you as this is not our plugin and we cannot make changes to solve problems with it. Let us know. Greetings, |
Burdening the target machine with additional dependencies like clang just for the purpose of compiling a package isn't very efficient. It's much better to cross-compile the package on a more powerful machine and then install the precompiled package on the target machine. This compilation issue started with the introduction of the https://github.com/IoTLabs-pl/hon You might encounter issues because Home Assistant does not reinstallf the pyhOn package if there is some version installed. To address this, you can run the following command on your host machine: docker exec homeassistant pip uninstall pyhOn -y This ensures that after the next reboot, the forked version of pyhOn will be installed instead of attempting to use the older, previously installed version. |
Sounds good. Would you be able to do version 0.13 as well? |
Has anybody tried with HA version 2024.8.0 ? |
Works just fine |
Running it in a Home Assistant VM (in proxmox) fixed it it seems. |
Hi guys, I'm a beginner with HA, I read the 200 answers but, in money, I didn't understand what to do... I have the (non-beta) version installed by HACS.. What should I do to make it work? |
I tried the command in HomeAssistant SSH Terminal, but I get this error: |
I dont run homeassistent OS, i use supervise install on armbian tv box, so i cant be 100% shure but i think that you dont have docker install |
I have Home Assistant OS on Raspberry |
It work well for me! thanks @kubasaw |
How to run "docker exec homeassistant pip uninstall pyhOn -y" with HA OS on Proxmox?. Can't use the integration for a wile... |
@KameDomotics @iNaiks use the "Advanced SSH & Web Terminal" addon from Home Assistant Community Add-ons instead of the official "Terminal & SSH". You'll also have to disable protection mode in addon settings. |
It worked! Thanks! Any plan to update the package of @Andre0512 ? Also I've done this to be working: Frist remove the pyhOn package "docker exec homeassistant pip uninstall pyhOn -y"
PS: Tried with repository of @Andre0512 and didn't work... Where are you @Andre0512 !!!! |
Now everything works! Thank you so much for your precious help |
To sum up: The The However, the The first option seems less ideal: install all the necessary build tools (cmake, clang, llvm, and others), and the library will compile automatically. The downside is that you're loading your disk (SD card) with tools that take up hundreds of MB (or even GB) to build a 20MB executable file. These tools won't be needed after the build. The second option is what I implemented in my fork: I removed the Additional tip: Every custom HA integration has a manifest file that declares which libraries are required for it to function. This repository specifies a particular version of Finally, since there's currently no contact with @Andre0512, I plan to carry out a significant refactor of the |
@kubasaw If you need some logs during the next cycle, let me know. |
Unfortunately I noticed I have the same problem, the entities do not update during the cycle |
Thanks that worked like a charm. |
Hi all, ` |
This way is works for me. Downgrade -> "ha core update --version=2024.6.4" -> restart and successfully log in -> upgrade to the latest 2024.11.1 version. |
Describe the bug
Trying to setup a newly created non-Gmail account results in
hOn Authentication Error 1 200 - https://account2.hon-smarthome.com/hOnRedirect?startURL=/setup/secur/RemoteAccessAuthorizationPage.apexp?source....
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Successfully setup the hOn HA integration
Screenshots
Environment (please complete the following information):
2024.7.1
v0.13.0
andv0.14.0-beta7
Additional context
n/a
Home Assistant Logs
Check
System
->Logs
if you can find any logs related to this integration and post it here.Device Log
Data Archive
For further analysis, please add your appliance data archive here (if available)
Navigate to
Settings
->Device & Services
->Haier hOn
-> your device and press the Create Data Archive button.Then open notifications to download the data zip archive.
To attach the file:
The text was updated successfully, but these errors were encountered: