Open ykorzikowski opened 6 months ago
Could you provide the debug log when occupancy is triggered on the SNZB-03?
I confirm that there is an issue with the integration of the SNZB-03 sensor. I have been using these sensors for more than 2 years, integrating them with Homey, and I have never received a false positive state. For a few days now, I have integrated them into the zigbee2mqtt network, and I am receiving many false positives. I also conducted another test and reintegrated the sensors into Homey's zigbee network, and they are working perfectly.
Thanks to https://github.com/Koenkk/zigbee2mqtt/issues/4874#issuecomment-812484150 I figured out, how to use the SNZB-03 properly.
The occupancy property is not reporting occupancy, but the ZoneStatusChange property does. Tested with Zigbee2Tasmota.
Zigbee2Tasmota + Mosquito + A self-made, lightweight python script for home automation proofed this sensors are working for arround 1 week now.
Screeenshot from MQTT Explorer.
Today I was testing zigbee2mqtt, but it only provides the occupancy property. I checked the source code and found the place which need a change, but as I am not familiar with the project structure.
https://github.com/Koenkk/zigbee-herdsman-converters/blob/cf8c6ba2ad67bdbe5bbde31a3e3d190332ba5f3a/src/devices/sonoff.ts#L224C25-L224C25
I will stick with Zigbee2Tasmota for now, as it meets the KISS standard for me :)