github9984 / homebridge-xiaomi-purifier-3

Xiaomi Air Purifier 3 plugin for Homebridge
MIT License
0 stars 0 forks source link

Unable to update under Hoobs #3

Open ursusHU opened 4 years ago

ursusHU commented 4 years ago

I get the following error if I try to update the plugin. It is stating that it has been updated however I still see the update possibility. Could you take a look?

      1. 16:51:29 npm
      1. 16:51:29 ERR! code EEXIST npm ERR! path /home/hoobs/.hoobs/node_modules/homebridge-xiaomi-purifier-3/node_modules/.bin/miio
      1. 16:51:29 npm2020. 06. 03. 16:51:29 ERR! Refusing to delete /home/hoobs/.hoobs/node_modules/homebridge-xiaomi-purifier-3/node_modules/.bin/miio: is outside /home/hoobs/.hoobs/node_modules/homebridge-xiaomi-purifier-3/node_modules/miio and not a link npm ERR! File exists: /home/hoobs/.hoobs/node_modules/homebridge-xiaomi-purifier-3/node_modules/.bin/miio npm ERR! Remove the existing file and try again, or run npm npm ERR! with --force to overwrite files recklessly.
      1. 16:51:29 2020. 06. 03. 16:51:29 npm ERR! A complete log of this run can be found in: npm ERR! /home/hoobs/.npm/_logs/ 2020-06-03T14_51_29_018Z-debug.log2020. 06. 03. 16:51:29 Plugin "homebridge-xiaomi-purifier-3" updated.
github9984 commented 4 years ago

this version is using another version of the miio plugin.

you might need to uninstall the existing homebridge-xiaomi-purifier-3 plugin, and reinstall fresh.

also make sure you have the updated config file as below.

{ "accessory": "MiAirPurifier3", "name": "Bed Room Air Purifier", "ip": "192.168.1.x", "token": "xxxxxxxxxxxxxxxxxxx", "did": "xxxxxxxxx",
"enableLED": true, "enableBuzzer": true, "pm25_breakpoints" = [5, 12, 35, 55], "polling_interval": 60000 }

ursusHU commented 4 years ago

Thanks. Just a small remark, I think there is a typo in the config file at the breakpoints there should be a : instead of the =.