Closed romacv closed 1 year ago
That is odd, what exactly does not work? Did you try miot cli to directly try to control the device?
It should recognize as motion sensor, but showing as "not supported"
When you look at the spec then you will see that this device does not expose any meaningful properties which can be used to control it: http://www.merdok.org/miotspec/
The events are currently not working yet...
Here is Mi Motion Activated Night Light 2
https://www.merdok.org/miotspec/?model=yeelink.light.nl1
And there's Mi Motion Sensor
https://www.merdok.org/miotspec/?model=lumi.sensor_motion.v2
Both of them have events "motion-sensor:motion-detected"
So Mi Motion Sensor is displayed in room page:
Is it possible to display here Mi Motion Activated Night Light 2 as well ?
The motion sensor has additionally the motion-sensor:motion-state property which can be used. The night light does not have that property. And as already mentioned events currently does not work.
Got it, thank for your help
Device model yeelink.light.nl1
Device name Mi Motion Activated Night Light 2
Anything special about the device? I tried to add this sensor to my fork https://github.com/merdok/homebridge-miot/blob/e1419b6cd287766879e3050b7fb518f163f7bbc6/lib/modules/contactsensor/devices/yeelink.light.nl1.js and unfortunately it doesn't work
Am i do something wrong? @merdok
Config