Sonoff SNZB-03P Support in Home Assistant

Hi,
Just got a load of Sonoff stuff in the post today and have hit a snag that others may encounter with the SNZB-03P motion sensor, it appears that support in Home Assistant is currently not fully working. You can pair the sensor, but the Motion sensor in HA itself will get stuck in a detected state - hit this when trying to setup a light automation.

Googling appears to show this is a known issue currently in Home Assistant.

I’m going to try the custom quirk mentioned in the issue thread on Github to see if that makes the device usable and will report back, just popping this here in case anyone else hits the problem.
Oh and the light sensor part isn’t supported out of the box in HA either.
/John

Ok, so the custom quirk removes the motion sensor, and just leaves you with the occupancy sensor. I couldn’t get the illumination sensor to update state from dark to light, I’ll see what it reports in the morning (it also only updates on motion which isn’t what I’d have expected - device constraint per the Zigbee2MQTT docs).

The downside of the occupancy sensor is that any blueprints expecting a motion sensor won’t pick up the device :/

Was able to get what I needed using the occupancy sensor entity returned from the SNZB-03P rather than the motion sensor entity.

This also works without the custom quirk.