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.22k stars 2.5k forks source link

Use MQTT Api #148

Open MiguelAngelLV opened 3 months ago

MiguelAngelLV commented 3 months ago

Is your feature request related to a problem? Please describe.

hOn have a adicional API using mqtt topics to provide "instant" notification on changes instead of using polling

Describe the solution you'd like Maybe could be added support to mqtt subscriptions to get a more fast update.

Describe alternatives you've considered In first instance, only subscribe to get "any change" on device and then poll new data with REST API instead interval polling.

KameDomotics commented 3 months ago

It is probably possible to control appliances via UART with an ESP (as is the case with some air conditioners). But this thing needs to be studied, and I think it's not easy...

Webbeh commented 3 months ago

Is your feature request related to a problem? Please describe.

hOn have a adicional API using mqtt topics to provide "instant" notification on changes instead of using polling

Describe the solution you'd like Maybe could be added support to mqtt subscriptions to get a more fast update.

Describe alternatives you've considered In first instance, only subscribe to get "any change" on device and then poll new data with REST API instead interval polling.

Do you have any documentation on the MQTT endpoints ?

MiguelAngelLV commented 3 months ago

Do you have any documentation on the MQTT endpoints ?

Not, sorry.

A few months ago I made a "man in the middle" with the hOn app and I saw a the mqtt calls to topics with MAC of the devices, but I can't read the data