I have 2 door sensor, 1 movement sensor and 1 thermometer but I can't listen to any event from them. Moreover, the door sensor always says that the door is open and the movement sensor that there is no movement. I configurated them with Xiaomi Home,
And it's working ! But when i try to listen to the event like that :
d.on('temperatureChanged', e => console.log("temperatureChanged", e));
d.on('relativeHumidityChanged', e => console.log("relativeHumidityChanged", e));
d.on('stateChanged', e => console.log("stateChanged", e));
Then I get NOTHING 😞
(I tried these scripts on Windows 10 and on Ubuntu 19.04)
I have 2 door sensor, 1 movement sensor and 1 thermometer but I can't listen to any event from them. Moreover, the door sensor always says that the door is open and the movement sensor that there is no movement. I configurated them with Xiaomi Home,
When I try :
I get this :
Actually, the first door is closed and the second is open.
For the temperature I use :
And it's working ! But when i try to listen to the event like that :
Then I get NOTHING 😞
(I tried these scripts on Windows 10 and on Ubuntu 19.04)
Thanks 👍