Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin error miio.Device #7

Open
h3roin opened this issue Jan 25, 2018 · 15 comments
Open

Plugin error miio.Device #7

h3roin opened this issue Jan 25, 2018 · 15 comments

Comments

@h3roin
Copy link

h3roin commented Jan 25, 2018

/usr/local/lib/node_modules/homebridge-xiaomi-humidifier/Devices/MiHumidifier.js:17
this.device = new miio.Device({
^

TypeError: miio.Device is not a constructor
at new MiHumidifier (/usr/local/lib/node_modules/homebridge-xiaomi-humidifier/Devices/MiHumidifier.js:17:19)
at MiHumidifierPlatform.accessories (/usr/local/lib/node_modules/homebridge-xiaomi-humidifier/index.js:85:21)
at Server._loadPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:364:20)
at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:308:16)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:85:36)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)

@Dengor1984
Copy link

Такая же проблема...
I have the same problem...

@h3roin
Copy link
Author

h3roin commented Jan 29, 2018

Можно поправить удалив плагин miio и установив [email protected]. но все же было бы неплохо обновить этот плагин так как теперь можно поменять класс устройства с вентилятора на увлажнитель.

You can fix it remove plugin "miio" and setup older version [email protected]. But anyway it a good idea update current plugin for change a device class from fan to humidifier.

@Dengor1984
Copy link

Обновил командой:
sudo npm install -g homebridge-miio
Получил - [email protected]
Результат тот же...

Sorry, but it does't help for me...

@h3roin
Copy link
Author

h3roin commented Jan 29, 2018

sudo npm remove miio
sudo npm install -g [email protected]

@Dengor1984
Copy link

А как правильнее обновить miio чтоб поменять вентилятор на увлажнитель?

@h3roin
Copy link
Author

h3roin commented Jan 29, 2018

Тут уже вопрос к тому кто написал плагин для увлажнителя / класс в homebridge и miio уже есть

@h3roin
Copy link
Author

h3roin commented Jan 29, 2018

@Dengor1984
Copy link

pi@pi:~ $ sudo npm install -g [email protected]
npm ERR! code ETARGET
npm ERR! notarget No matching version found for [email protected]
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:npm ERR! /root/.npm/_logs/2018-01-29T08_37_18_667Z-debug.log

@h3roin
Copy link
Author

h3roin commented Jan 29, 2018

try 0.14.1

@Dengor1984
Copy link

Thank you for a quick reply, miio 0.14.1 helps!)

@fenway062213
Copy link

Is anyone able to get the new update running and able to use the humidifier as a humidifier service? I had to go back to 0.14.1 because I got the error above when I tried updating, but would much prefer the device to be displayed as a humidifier...any help is appreciated.

@leoneleone
Copy link
Contributor

@fenway062213
#11

@acc-ua
Copy link
Owner

acc-ua commented Apr 12, 2018

Had merged @fenway062213 commit to fix that problem. Thanks

@leoneleone
Copy link
Contributor

Problems with miio handshake after updating the plugin to work with miio 0.15.6
This plugin intialises but produces an error with connecting to the device.

If someone can confirm this behaviour after updating this plugin I’ll endevour to fix it. If not, I’ll just assume this is specific to my xiaomi device.

@maximusnikulin
Copy link

maximusnikulin commented Jul 18, 2018

@leoneleone I confirm, that there is a problem with connection to device

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants