Unfortunately, frenck think that a custom ZHA quirk is similar to a custom integration and would not accept a guide in ZHA documentation for how to add custom quirk device handler to ZHA
Thank you @thatguy_za for the guide. For the quirk to work, do I use s0601_pirmotion.py the script as is or do I need to modify it. If I need to modify it, would you be able to give some guidance to that.
I have this same sensor, connected via zigbee2mqtt. However i am having trouble with it.
Sometimes it does not send any signal even when I put my hand over the sensor. It is as if sensor is asleep and it does not wake to send the signal.
Even the Illuminance sensor does not work well. In history, it shows steps, as if it did not refresh during long periods of time (random, between seconds and 5-10 minutes).
I have two sensors of this type and both have the same issue.
Has anyone experienced this issue with this sensor? Or is it needed any special configuration?
Doesn’t really work. It triggers nonstop, seconds after the occupancy is detected, should not trigger the “not occupied” every time you move during the cooldown… it deffinetly does not work properly. Also, seems like it polls/triggers at kinda random times… sometimes seconds later other times minutes later… what a bummer… waste of money on this sensor…
Same thing. I contacted the buyer and he reported back that this sensor is not fully compatible yet with Sonoff Zigbee Dongle Plus. I also flashed the latest sonoff firmware ~1 week ago, problem persists.
Again, please understand that a custom quirk is needed because Zigbee devices that do not only use standard configuration and parameters (default ZCL clusters and attributes) but instead also implement custom manufacturer clusters and attributes (also known as “quirks”) will need a custom handler/converter/parser/translator as Python script code in the upstream “ZHA Device Handlers” library repository to extend custom manufacturer device “quirk” support for specific non-standard ZCL clusters and attributes (which Zigbee gateway implementations that depends on zigpy and the ZHA Device Handlers library, like Home Assistant s ZHA integration, then can make use of).
If you can not code that Python script code yourself to write the needed custom handler/converter/parser/translator for adding that specific device to the “ZHA Device Handlers” repository/library then suggest submitting a “device support request” (with device signature and diagnostic information) as new issues → https://github.com/zigpy/zha-device-handlers/issues
Without a “device support request” as a new issue posted to the “ZHA Device Handlers” repository/library requesting support for an unsupported device or device feature with Device signature and Diagnostic information the ZHA integration developers will not even know about the device unless they by random chance happened to have bought it themselves.
it seemed that the sensor was faulty. I have tried with another one and it works ok. Motion sensor triggers immediately. However, light sensor has a very low refresh rate. it updates after minutes or when motion is detected. The only problem is that first motion is detected and 3s later light sensor is updated, so when I enter the room, it detects that there is still light and don’t turn on the lamp
I have had to make a complex automation for solving this issue. This is not the best sensor.
When contact_sensor change to ON:
if lux_sensor< min_value_of_lux (eg 150 lux) and light is OFF then
turn_on light
When lux_sensor change to below min_value_of_lux (eg 150 lux):
If contact_sensor is ON and light is OFF then
turn_on light
When contact_sensor is OFF for 60s:
If light is On then:
turn_off light
This works. The only problem I have found is when you enter the room short after a lux increase (e.g. when you open blinds). Then this automation will turn on the light even if it is not needed.
Hmm, picked up a few of these earlier in the year and just set one up in a low-traffic area for testing. Seems to be behaving as you describe, even though I’m running latest stable firmware on my sonoff dongle and using latest zigbee2mqtt.
The “last_seen” status updated frequently enough, and the connection is strong, but as you say even when the red LED blinks to denote motion detected this just doesn’t get passed along to zigbee2mqtt. Only sometimes. And the lux level in the past 2 days seems to only get updated very very periodically (eg at 2 in the morning, long after it has gotten dark).