jaromeyer / mipurifier-esphome

ESPHome for the Xiaomi Mi Air Purifier 3H (and similar devices using the same protocol)
The Unlicense
83 stars 10 forks source link

Tested on the 3C model? #15

Open daniel-dona opened 5 months ago

daniel-dona commented 5 months ago

Have anyone tested it on the Xiaomi Mi Air Purifier 3C (zhimi.airpurifier.mb4)

https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:air-purifier:0000A007:zhimi-mb4:2

daniel-dona commented 5 months ago

Tested myself, not working as the property identifiers are quite different but I have almost finished adapting the code to work with the 3C model.

The protocol seems to be already documented https://github.com/blakadder/miot

Seems strange that there is not already a generic "miot" component for esphome...

daniel-dona commented 5 months ago

For 3C is possible to reset filter life like this:

down action 4 1 3 1

Maybe is also possible for other models

daniel-dona commented 5 months ago

imagen

dhewg commented 5 months ago

Seems strange that there is not already a generic "miot" component for esphome...

See https://github.com/dhewg/esphome-miot/blob/main/config/zhimi.airp.rmb1.yaml for my 4lite ;) There're no docs yet, though the syntax should be pretty obvious and it's supposed to be easy to add new devices using the miot spec for your device. Let me know if that works!

daniel-dona commented 5 months ago

Seems strange that there is not already a generic "miot" component for esphome...

See https://github.com/dhewg/esphome-miot/blob/main/config/zhimi.airp.rmb1.yaml for my 4lite ;) There're no docs yet, though the syntax should be pretty obvious and it's supposed to be easy to add new devices using the miot spec for your device. Let me know if that works!

That's so cool!

I'll give it a try, at the end is just a matter of using the right siid and piid... maybe even the config template can be created from the miot-spec.org page

gfduszynski commented 5 months ago

If you need somebody for testing count me in. Current behavior of my device drives me crazy :)

doe1097 commented 1 month ago

Tested myself, not working as the property identifiers are quite different but I have almost finished adapting the code to work with the 3C model.

The protocol seems to be already documented https://github.com/blakadder/miot

Seems strange that there is not already a generic "miot" component for esphome...

Did you get it to work? And if so would you mind sharing it with us? :)