WebThingsIO / zigbee-adapter

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

The status report incorrectly when turning on/off #221

Open Duncankn opened 4 years ago

Duncankn commented 4 years ago

I have encountered an issue with a dimmer Ubisys D1, it is a Zigbee 3.0 dimmer. It supports on/off cluster, level cluster and instantaneous Power.

It is the problem I met. E.g. The Status of the dimmer is ON, brightness 79.5% and the Power is 10W. When I turned off the dimmer, the light went off, but the status on the UI shown 74.4% brightness, ON and 10 W. I checked the log and it showed that the dimmer stopped reporting suddenly. Here is the log of the example image

When I turned on the light, the status report like this image but the real brightess is 79.5%

I don't know why it stops suddenly but I noticed that the report intervals are too shorts and status update too frequently.

Duncankn commented 4 years ago

I have checked that the Level Control: configure reporting Frame by sniffer. it shows that the Min. reporting interval and Max. reporting interval are both 0. image

However, I have check the code from zb-classifier.js The intervals should be const CONFIG_REPORT_INTEGER = { minRepInterval: 1, // seconds maxRepInterval: 120, // seconds repChange: 1, }; image image

So, is there something wrong when zigbee-adapter binding the clusters?