Open wojtulab opened 6 years ago
Could you try again with latest library 0.0.6, thanks.
Sorry for delay. Looks better for me: I can listen to more than one device.
Temperature is readable:
Cube motion is NOT readable still:
miio inspect cube successfully:
INFO Attempting to inspect 158d00027d738c
Device ID: 158d00027d738c
Model info: lumi.generic.68
Address: Owned by miio:130076930
Token: Automatic via parent device
Support: At least basic
Type info: miio, miio:subdevice, sub-thing
Capabilities:
Parent:
Device ID: 130076930
Model info: lumi.gateway.v3
Address: 192.168.1.15
Token: mytokenmytoken via stored token
Support: At least basic
The resolution is: https://github.com/aholstenson/miio/issues/203
now the cube is recognized however I can't select it via node:
debug:
My question is:
is it correct add:
} else if (model.indexOf('generic.68') !== -1) { return 'controller';
into a: ./../common/devices.js
or another solution is better?
I've replace also following line in cube.html:
if (device.model.indexOf('cube') !== -1) { $('#node-input-deviceId').append('<option value="' + device.id + '">' + device.id + ' ' + device.model + '</option>'); }
into:
if (device.model.indexOf('.generic.68') !== -1) { $('#node-input-deviceId').append('<option value="' + device.id + '">' + device.id + ' ' + device.model + '</option>'); }
After that my device is visible in nodered but without any output (tap, flip etc).
how to correct that?
Hello, are u there?
Hey, very sorry :) have been busy, if you or anybody else need a solution for this type of issue, I would recommend using the Generic Device Listener Node, there are too many devices and it is not possible to code for all of them so in the latest version 1.0.0 of this library the listener node will listen for all events and property changes.
Hello, I've installed :
In the nodered I am trying to execute any commands with failure:
for example
msg : error "TypeError: device.setPower is not a function"
Getting the status via node-red
but the NPM can successfully detect, query or control all properties usuing miio library: miio inspect 70545715
miio control 70545715 power true
and again query the parameters: miio inspect 70545715
Please find that my AirPurifier is a zhimi.airpurifier.m2