ebaauw / homebridge-hue

Homebridge plugin for Philips Hue
Apache License 2.0
901 stars 91 forks source link

Support for the Xiaomi Mijia Smart Light Sensor Zigbee 3.0? #685

Closed sedony23 closed 4 years ago

sedony23 commented 4 years ago

Hi there,

I am about to get a couple "Xiaomi Mijia Smart Light Sensor Zigbee 3.0" sensors. Support has recently been added to deCONZ:

https://github.com/dresden-elektronik/deconz-rest-plugin/issues/2380 https://github.com/dresden-elektronik/deconz-rest-plugin/releases

Now my question is, if the sensor is also supported by homebridge-hue.

Best

Daniel

ebaauw commented 4 years ago

It'll probably give a warning about an unknown sensor, but, as there’s nothing to configure for light level sensors, it should work. Otherwise please post the warning message.

sedony23 commented 4 years ago

Ok. Then I’ll order a sensor and let you know if there are any issues! Thanks!

ebaauw commented 4 years ago

OK, closing for now. Please re-open if you have an issue after the sensor has arrived.

sedony23 commented 4 years ago

Just wanted to let you and everybody know that the sensor works great. It can be paired in Phoscon, but doesn't show up in Phoscon at all (known issue: https://github.com/dresden-elektronik/deconz-rest-plugin/issues/2380). It is correctly recognized in Homebridge hue and shows up as a HomeKit device.

sedony23 commented 4 years ago

This is the output I'm getting in the homebridge log:

[5/31/2020, 5:08:42 PM] [Hue] Phoscon-GW: /sensors/58: warning: unknown ZHALightLevel sensor {"config":{"battery":100,"on":true,"reachable":true,"temperature":null,"tholddark":12000,"tholdoffset":7000},"ep":1,"etag":"b766c54dedc660d0e4c31a77eb6c06d2","lastseen":"2020-05-31T15:08:41.151","manufacturername":"LUMI","modelid":"lumi.sen_ill.mgl01","name":"Light Sensor (2)","state":{"dark":false,"daylight":true,"lastupdated":"2020-05-31T15:08:27.132","lightlevel":25966,"lux":395},"swversion":"20191118","type":"ZHALightLevel","uniqueid":"04:cf:8c:df:3c:78:71:16-01-0400"}

As stated before, it works though!