seikan / homebridge-mi-air-purifier

A Xiaomi Mi air purifier plugin for Homebridge.
Other
172 stars 65 forks source link

Support for zhimi.airpurifier.v7 #60

Open rootsnet opened 5 years ago

rootsnet commented 5 years ago

I bought a xiaomi air purifier pro. From the process what I get the tokern, I found that the model name is 'zhimi.airpurifier.v7'. And then this plugin does not work for the 'zhimi.airpurifier.v7'.

rootsnet commented 5 years ago

I solved this issue myself temporarily from model information adding as below.

1) Stop to upgrade miio docker exec -it marcoraddatz-homebridge1 /bin/bash vi /root/.homebridge/install.sh

npm install -g miio

2) Add model info vi /usr/local/lib/node_modules/miio/lib/models.js 'zhimi.airpurifier.v7': AirPurifier,

chadman4 commented 5 years ago

Hi,

how do I save the change after step 2?