gvigroux / hon

Support of all Haier, Candy, Hoover appliances integrated in the official hOn mobile app. Direct access to all possible services and parameters
MIT License
118 stars 45 forks source link

H-Purifier Hoover Air Purifier not added #22

Closed paolograssi closed 1 year ago

paolograssi commented 1 year ago

Hello!!! First of all, great development, thanks!!

I would like to report to you that my Hoover H-Purifier 700 is not added automatically.

Is there any help I can give you to add this (I am a developer)?

OcioRanocio commented 1 year ago

Hi there,

I have an Hoover H-Purifier 300 and I succeeded in importing some sensors and making the purifier start and stop. It's still a work in progress and I'm not a programmer, but if it helps I can share my code.

Ciao

paolograssi commented 1 year ago

Yes please. I would like to add some actions like swtich on/off etc... but most difficult part are the sensors

OcioRanocio commented 1 year ago

Look for my fork here. Please let me know if it works with yours :-) Sei italiano? Are you italian? The difficult part for me about sensors, is their values, I would need some kind of conversion tale, I mean, I can take their values but I don't often know what it represents.

psychowood commented 1 year ago

Look for my fork here. Please let me know if it works with yours :-) Sei italiano? Are you italian? The difficult part for me about sensors, is their values, I would need some kind of conversion tale, I mean, I can take their values but I don't often know what it represents.

Conterraneo of yours here :) testing your fork with a Hoover H-Purifier 700.

image

I would gladly try to contribute if you can give me some directions in how to start (I'm quite technical but I've got no experience with HA addons).

EDIT: I've found a more recent fork of your repo, courtesy of @artystazst, gonna try that one too: looking at the sources it looks like it has all the additional sensors (temp, Co, humidity), adds filter status, light management and child lock, too.

image
OcioRanocio commented 1 year ago

Ciao! I'm not a developer and this is the first time I work with Home Assistant/Python. Anyway I've just understood how the component works and did a try and error method. You have to check what the server answers when the component start. You can see that in the logs deleting 7 from the appliancetypeid (7 is the Air Purifier) Screenshot_20221228-163707_Chrome

Dalewn commented 1 year ago

Hi there,

I also own an H-Purifier 700. I found the repo of @artystazst pretty helpful as a starting point, but it doesn't include all actions the 700 offers. I am missing control for the humidifier and the threshold values. Also I am relatively versed in programming but have no clue about python yet.

Is there a way to call the api via REST or sth? I did scroll through the auth procedures in the code but it all looked a little odd to me tbh.

gvigroux commented 1 year ago

Hi, I've merge my branch with the purifier version from @artystazst. I hope it's working. Someone can test his purifier with my integration ?

Dalewn commented 1 year ago

I had added some additional functionality based on @artystazst 's code. I will check out yours to test it and see if I can create a pull request somewhen this week.

What I added was some basic functionality for the humidifier irrc.