Open fuomag9 opened 3 years ago
Try to remove the 'parent' line and the semikolon after refresh:3000
Try to remove the 'parent' line and the semikolon after refresh:3000
Same error as before
Try to remove the 'parent' line and the semikolon after refresh:3000
Same error as before
Ok, i dont know your skills, but eventually you can extrakt working code from my skript here. This worked fine with the 3H. https://github.com/Pittini/iobroker-nodemihome/blob/main/old/Airpurifier3H-V0.1.6.js
try device.init()
before device.setPower(true)
try
device.init()
beforedevice.setPower(true)
(node:3432) UnhandledPromiseRejectionWarning: Error: Method not found.
at Object.reject (C:\Users\fuomag9\Documents\Dev\MiPurifierStuff\node_modules\node-mihome\lib\protocol-miio.js:343:19)
at MiIOProtocol._onData (C:\Users\fuomag9\Documents\Dev\MiPurifierStuff\node_modules\node-mihome\lib\protocol-miio.js:239:11)
at MiIOProtocol._onMessage (C:\Users\fuomag9\Documents\Dev\MiPurifierStuff\node_modules\node-mihome\lib\protocol-miio.js:110:14)
at Socket.<anonymous> (C:\Users\fuomag9\Documents\Dev\MiPurifierStuff\node_modules\node-mihome\lib\protocol-miio.js:40:12)
at Socket.emit (events.js:315:20)
at UDP.onMessage [as onmessage] (dgram.js:919:8)
Still not working unfortunately, plus per https://github.com/maxinminax/node-mihome/blob/master/README.md device.init()
is called after device.setPower(true)
, so one of those is wrong
When I try to run the following code I get
UnhandledPromiseRejectionWarning: Error: This device don't config miot spec
on a Xiaomi Mi Air Purifier 2H. The device works fine and can be correctly read with themiio
library