Andre0512 / hon

Home Assistant integration for Haier hOn: support for Haier/Candy/Hoover home appliances like washing machines and air conditioners in 28 languages.
MIT License
1.23k stars 2.49k forks source link

Adding HO integration #56

Closed pksobon closed 11 months ago

pksobon commented 11 months ago

Adding HO integration (Kitchen Hood appliance). Working good with Haier HADG6DS46BWIFI (fw 3.8.0).

What is already done and working:

What is not working:

What need to be clean:

Andre0512 commented 11 months ago

Hey, thanks for your contribution! Looks good so far :slightly_smiling_face: I'm currently generating the translation keys with the generate_translation.py script, have a look at it, but it's undocumented for now :sweat_smile: I think in the future we should look at exposing windspeed rather as a fan entity and the light control as a light entity to integrate it more naturally in home assistant. Feel free to share your device info output and I'll take a look at how to implement this.

pksobon commented 11 months ago

Hey,

Thanks for adding this support so quickly. I have already made those changes like one month ago, but then because of work reasons had to update repositiories before posting anything and support was lost. :) Good to know that I will not have to merge it manually again. :)

I fully agree on "windspeed" (I didn't think of it as a fan speed(!) at first place) and light entiny, but this I didn't know how to integrate. I have 4 different devices (2 * different AC, 1 induction hob and one kitchen hood - all are right now working and you have added it from my form :)). Here I will only post output from HO, and later will look where to post rest of them.

`========== HO - Kitchen Hood ========== data: appliance: PK: user#eu-west-1:f5ece226-13f1-4d17-bcb8-f53c6b75d70d SK: app#e8-9f-6d-c4-12-e0 applianceId: e8-9f-6d-c4-12-e0#2023-04-06T16:20:52Z applianceModelId: 710 applianceStatus: 1 applianceTypeId: 15 applianceTypeName: HO attributes: acuVersion: 18.09.06 chipset: ESP32D0WDQ5 dictionaryId: 234 lang: it-IT brand: haier code: 36901712 connectivity: wifi|ble coords: lat: 51.4109911 lng: 21.1846479 defaultWarrantyYears: 2 eepromId: 41 eepromName: no_eeprom enrollmentDate: 2023-04-06T16:20:52.378Z firstEnrollment: False firstEnrollmentTBC: False fwVersion: 3.8.0 id: 710 lastUpdate: 2023-04-06T16:21:04Z macAddress: e8-9f-6d-c4-12-e0 modelName: HADG6DS46BWIFI nickName: Kitchen Hood purchaseDate: 2022-11-30T23:00:00.000Z sections: chatbot: True double_pairing_hidden: True epp_enabled: False serialNumber: xxxxxxxxxyyyyyyyyzzzzzzzz series: series4 topics: publish: subscribe:

Andre0512 commented 11 months ago

Hi, I was on vacation, but will work the next days on the new entities. Thanks for the logs :slightly_smiling_face:

Andre0512 commented 10 months ago

Hi, I implemented now the light and fan entity in the last beta, check it out. It would also be great if you could add your appliances data to the new hon-test-data collection. That would makes it much easier for me to fix and test hobs and hoods :slightly_smiling_face:

pksobon commented 10 months ago

Hi,

I will try to do it today, or latest tomorrow as after that I'm going for my well deserved vacation. :) First what I have issued was missing some packets after updating to latest pyhOn II had to install typing-extensions via pip).

Also one of my devices went offline last week and I don't know if the data will be generated correctly.

Andre0512 commented 10 months ago

Good hint, I will add typing-extensions to the dependencies. It seems to contain everything :slightly_smiling_face: Thank you, have a nice vacation!