shenxn / ha-dyson

HomeAssitant custom integration for dyson
MIT License
306 stars 60 forks source link

Support Request - Add Device - Dyson HP07 Purifier Hot and Cool - Device Type 527k #182

Open smarthomesydney opened 1 year ago

smarthomesydney commented 1 year ago

Please add support for HP07 with HA dysonlocal.

https://www.dyson.com.au/dyson-purifier-hot-cool-black-nickel

Serial: X4G-AU-RXXXXXA Name: Living room Device Type: 527K

Pure Hot and Cool, Hot and Cool (New) and Hot and Cool Link options didn't work

Can pull more info for you if required. Thanks and appreciate the work on local control ;-)

smarthomesydney commented 1 year ago

@jezzab

Noticed you were mentioned for editing the device type etc. for TP07. Would it be possible to do this for HP07 (Stralia Device lol) also or is it a total new model...?

Thanks mate

jezzab commented 1 year ago

I would try this: https://github.com/shenxn/libdyson/pull/36 You may need to use this as well: https://github.com/shenxn/ha-dyson/pull/175 You will probably end up with another sensor for Formaldehyde that doesnt nothing but the rest should work.

Some of the formaldehyde's seem to be sharing the same model code like the 527K and 438K as the non formaldehyde's . I'd really like to work out how they are differenciating the formaldehyde and non-formaldehyde that share the same model code. Maybe the serial prefix? Im not sure, I dont have another one to play around with and compare.

smarthomesydney commented 1 year ago

527K

This model is HP07, is physically the same, but is not gold (its black) and is NOT formaldehyde.

Only the HP09 TP09 is formaldehyde. https://www.dyson.com.au/dyson-purifier-hot-cool-formaldehyde-white-nickel-gold

https://www.dyson.com/air-treatment/air-purifiers/purifier-cool-formaldehyde-tp09/nickel-gold

Here is all Oz Fans. Only the Gold ones have formaldehyde filter

https://www.dyson.com.au/products/air-treatment/shop-all-purifiers

smarthomesydney commented 1 year ago

would it report by the filter type inserted?

otherwise serial or chipset?

Tried the custom requirements above... no luck. none of them work, including formaldehyde option

jezzab commented 1 year ago

I know the Aussie fans, I'm Australian. And I know yours isn't Formaldehyde. The 527K, 438K (mine) etc is the true model code used internally. The code for this addon uses this to work out what entities to use. Basically the difference between a non-formaldahyde and one with it is nothing except for that one sensor. The base is the same

Try as I suggested and I think you will find it will work.

Until someone can work out why the two share the same model code, it makes adding models a PITA

smarthomesydney commented 1 year ago

I know the Aussie fans, I'm Australian. And I know yours isn't Formaldehyde. The 527K, 438K (mine) etc is the true model code used internally. The code for this addon uses this to work out what entities to use. Basically the difference between a non-formaldahyde and one with it is nothing except for that one sensor. The base is the same

Try as I suggested and I think you will find it will work.

Until someone can work out why the two share the same model code, it makes adding models a PITA

Thanks mate

This one "requirements": ["git+https://github.com/TerrorSource/libdyson.git@main#libdyson==0.9.1"], worked a charm.

charlie969 commented 1 year ago

Thanks mate

This one "requirements": ["git+https://github.com/TerrorSource/libdyson.git@main#libdyson==0.9.1"], worked a charm.

I'm trying to get this to work with my HP07. I select "Pure Hot + Cool Formaldehyde" as the device type, but still get a "failed to connect" error. Any advice @jezzab @smarthomesydney @terrorsource ?

dotvezz commented 1 year ago

@charlie969 I've got the new forks up and running! They include my changes for the HP07 (Not the formaldehyde version yet though - I want to make sure to safely handle the different 527K devices), and it's all working well! Feel free to remove the custom repository from HACS and replace it with the ones below:

charlie969 commented 1 year ago

@dotvezz Thanks! Still not working for me, but that may be because I'm away from home - I'll give it another try in a few days when I'm back and make sure I have the right credentials. Fingers crossed!

dotvezz commented 1 year ago

@charlie969 if you have any issues, go ahead and post them in https://github.com/libdyson-wg/ha-dyson/issues

One thing I've seen, although this is just an anecdote, but it seems like the -K devices (like our HP07 devices) don't ship with the credentials sticker anymore. The current easy way to get the integration working is by installing both ha-dyson and ha-dyson-cloud, then using the cloud integration to set up the devices since it can fetch serial numbers over Dyson's App API.

One of my goals is to make non-cloud setups easier for these newer devices.

dotvezz commented 1 year ago

Unfortunately this integration is no longer maintained, but I've created a new fork and am actively working on the new Humidifier and Formaldehyde models. Have a look at #185 for more information, and let me know if you have any questions.

charlie969 commented 1 year ago

The current easy way to get the integration working is by installing both ha-dyson and ha-dyson-cloud, then using the cloud integration to set up the devices

Thank you, this did the trick for me - it's working perfectly! Can't thank you enough ☺️