-
Notifications
You must be signed in to change notification settings - Fork 34
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
Luminance Sensor Values #40
Comments
Maybe here are some helpful links to determine the methods: https://gist.github.com/Pittini/1a333de9d0d5397c0a01e4fa127995c1 |
Hello Pittini. Thank you very Much. I tried according to your Document. But I can't still understand. According to node-mihome documentation: So I tried something like this: And returned null. What I'm doing Wrong? Which one is correctly?: No one retunr values. My Code:
|
The Links are just for finding out which properties/methods a device have. Your device has to be here: https://github.com/maxinminax/node-mihome/tree/master/lib/devices . If not, you cant control or get values exept the base info like ip model, etc. |
Hello @Pittini . Thank you a lots for your time. I didn't found neither the Zigbee Gateway, neither Light Sensor Mijia Zigbee. Furthermore, your old test at this moment isn't avaliable. But according to your info, this soud be the correct way? For example, if I have a model 'lumi.sensor_motion.aq2' with ID '255742660': mihome.miCloudProtocol.miioCall("255742660", "getBattery() " ).then(devices => { |
I have a Luminance Light Sensor Mijia Zigbee 3.0 and a Xiaomi Motion Sensor. connected to Xiaomi Multi-mode Smart Gateway 2020 Wifi Zigbee Hub Brige.
When I run "mihome.miCloudProtocol.getDevices" , returned me both sensors (for example "AAAAAAAA" and "BBBBBBB" id, mac, etc). But now I want to get the values of both sensors. I think I must to use something similar to "mihome.miCloudProtocol.miioCall( "AAAAAAAA" , method )". But I don't know which Method is to get the Luminance value, or the last motion value. I don't know where I can find the methods of each device.
Tahnk you.
The text was updated successfully, but these errors were encountered: