WebThingsIO / zigbee-adapter

Zigbee adapter add-on for WebThings Gateway
Mozilla Public License 2.0
46 stars 29 forks source link

Sengled Zigbee Motion Sensor Floodlights not showing appropriate Thing properties #196

Open nbackous opened 4 years ago

nbackous commented 4 years ago

Sengled manufactures a Zigbee outdoor floodlight bulb with an integrated motion sensor:

https://us.sengled.com/products/sengled-smart-led-with-motion-sensor-par38-bulb

I (naively) assumed that the bulb would either show up as a single Thing in the Mozilla WebThings Gateway with properties for Motion and Light, or, perhaps the bulb would show as 2 separate Things, one with Motion properties and another with Light properties.

Currently the bulb only shows as a Motion Detector, but after pairing, it doesn't seem to ever send any motion events. The bulb can also be added as a Temperature sensor, but that also doesn't work. I am doubtful the bulb actually has a temperature sensor.

Screen Shot 2020-03-07 at 7 59 37 PM Screen Shot 2020-03-07 at 7 41 00 PM

Setup: Raspberry Pi 3 - Model B dresden elektronik ConBee II Mozilla WebThings Gateway ver0.11.0 Zigbee adapter ver0.10.8

Logs when adding the bulb:

2020-03-07 22:01:56.784 INFO : Successfully created new thing zb-b0ce1814031a0cf7-motion 2020-03-07 22:01:56.808 INFO : lifx-adapter: [] 2020-03-07 22:01:56.811 INFO : lifx-adapter: AddonManagerProxy: recv: b'{"messageType":8207,"data":{"deviceId":"zb-b0ce1814031a0cf7","device":{"title":"zb-b0ce1814031a0cf7-motion","@context":"https://iot.mozilla.org/schemas","@type":["MotionSensor","TemperatureSensor"],"description":"","href":"/things/zb-b0ce1814031a0cf7","properties":{"motion":{"title":"Motion","type":"boolean","@type":"MotionProperty","description":"Motion Sensor","readOnly":true,"links":[{"rel":"property","href":"/things/zb-b0ce1814031a0cf7/properties/motion"}]},"tamper":{"title":"Tamper","type":"boolean","@type":"TamperProperty","readOnly":true,"links":[{"rel":"property","href":"/things/zb-b0ce1814031a0cf7/properties/tamper"}]},"lowBattery":{"title":"Low Battery","type":"boolean","@type":"LowBatteryProperty","readOnly":true,"links":[{"rel":"property","href":"/things/zb-b0ce1814031a0cf7/properties/lowBattery"}]}},"actions":{},"events":{},"links":[{"rel":"properties","href":"/things/zb-b0ce1814031a0cf7/properties"},{"rel":"actions","href":"/things/zb-b0ce1814031a0cf7/actions"},{"rel":"events","href":"/things/zb-b0ce1814031a0cf7/events"},{"rel":"alternate","mediaType":"text/html","href":"/things/zb-b0ce1814031a0cf7"}],"layoutIndex":38,"selectedCapability":"MotionSensor","iconHref":null},"adapterId":"lifx-adapter","pluginId":"lifx-adapter"}}' 2020-03-07 22:01:56.824 INFO : tplink-adapter: AddonManagerProxy: recv: b'{"messageType":8207,"data":{"deviceId":"zb-b0ce1814031a0cf7","device":{"title":"zb-b0ce1814031a0cf7-motion","@context":"https://iot.mozilla.org/schemas","@type":["MotionSensor","TemperatureSensor"],"description":"","href":"/things/zb-b0ce1814031a0cf7","properties":{"motion":{"title":"Motion","type":"boolean","@type":"MotionProperty","description":"Motion Sensor","readOnly":true,"links":[{"rel":"property","href":"/things/zb-b0ce1814031a0cf7/properties/motion"}]},"tamper":{"title":"Tamper","type":"boolean","@type":"TamperProperty","readOnly":true,"links":[{"rel":"property","href":"/things/zb-b0ce1814031a0cf7/properties/tamper"}]},"lowBattery":{"title":"Low Battery","type":"boolean","@type":"LowBatteryProperty","readOnly":true,"links":[{"rel":"property","href":"/things/zb-b0ce1814031a0cf7/properties/lowBattery"}]}},"actions":{},"events":{},"links":[{"rel":"properties","href":"/things/zb-b0ce1814031a0cf7/properties"},{"rel":"actions","href":"/things/zb-b0ce1814031a0cf7/actions"},{"rel":"events","href":"/things/zb-b0ce1814031a0cf7/events"},{"rel":"alternate","mediaType":"text/html","href":"/things/zb-b0ce1814031a0cf7"}],"layoutIndex":38,"selectedCapability":"MotionSensor","iconHref":null},"adapterId":"tplink-adapter","pluginId":"tplink-adapter"}}' 2020-03-07 22:01:56.827 INFO : date-time-adapter: AddonManagerProxy: recv: b'{"messageType":8207,"data":{"deviceId":"zb-b0ce1814031a0cf7","device":{"title":"zb-b0ce1814031a0cf7-motion","@context":"https://iot.mozilla.org/schemas","@type":["MotionSensor","TemperatureSensor"],"description":"","href":"/things/zb-b0ce1814031a0cf7","properties":{"motion":{"title":"Motion","type":"boolean","@type":"MotionProperty","description":"Motion Sensor","readOnly":true,"links":[{"rel":"property","href":"/things/zb-b0ce1814031a0cf7/properties/motion"}]},"tamper":{"title":"Tamper","type":"boolean","@type":"TamperProperty","readOnly":true,"links":[{"rel":"property","href":"/things/zb-b0ce1814031a0cf7/properties/tamper"}]},"lowBattery":{"title":"Low Battery","type":"boolean","@type":"LowBatteryProperty","readOnly":true,"links":[{"rel":"property","href":"/things/zb-b0ce1814031a0cf7/properties/lowBattery"}]}},"actions":{},"events":{},"links":[{"rel":"properties","href":"/things/zb-b0ce1814031a0cf7/properties"},{"rel":"actions","href":"/things/zb-b0ce1814031a0cf7/actions"},{"rel":"events","href":"/things/zb-b0ce1814031a0cf7/events"},{"rel":"alternate","mediaType":"text/html","href":"/things/zb-b0ce1814031a0cf7"}],"layoutIndex":38,"selectedCapability":"MotionSensor","iconHref":null},"adapterId":"date-time-adapter","pluginId":"date-time-adapter"}}' 2020-03-07 22:01:57.467 INFO : Successfully created new thing zb-b0ce1814031a079e-motion