rytilahti / python-miio

Python library & console tool for controlling Xiaomi smart appliances
https://python-miio.readthedocs.io
GNU General Public License v3.0
3.73k stars 558 forks source link

Support for Smartmi Smart Fan Heater (zhimi.heater.nb1) #1338

Closed solidssss closed 1 year ago

solidssss commented 2 years ago

Device information:

It would be really nice if this device could be added.

rytilahti commented 2 years ago

If you feel comfortable writing some python, take a look at https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:heater:0000A01A:zhimi-nb1:1 . The implementation for zhimi's miot is at https://github.com/rytilahti/python-miio/blob/master/miio/heater_miot.py which requires creating a mapping between the information in that miot-spec file and the implementation.

solidssss commented 2 years ago

If you feel comfortable writing some python, take a look at https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:heater:0000A01A:zhimi-nb1:1 . The implementation for zhimi's miot is at https://github.com/rytilahti/python-miio/blob/master/miio/heater_miot.py which requires creating a mapping between the information in that miot-spec file and the implementation.

Thanks for the info. Maybe someone might be able to get this device working with the info you posted. Sadly I got very little knowledge with python and cannot implement this myself...