FWIW - After several days of struggling to get my Phillips Hue Sensor working properly with a Sonoff Zigbee 3.0 dongle under ZHA, I switched to giving Zigbee2mqtt a try - and it works beautifully. All entites seem to be updating, and occupancy is reported by the “occupancy” entity (there is no “on_off” in the discovered configuration).
The discovered entities are:
- update available
- occupancy timeout (settable)
- motion sensitivity (settable)
I’m new to HA and have no previous experience with Zigbee, so I have no idea of how ZHA configures the sensor compared to Zigbee2mqtt during the new device interview process, or how I might have altered any yaml for ZHA to get the sensor working. So although ZHA was much easier to configure initially compared to mosquitto/Zigbee2mqtt, I couldn’t figure out how to have the sensor work properly with ZHA.
 Add the fact that I’m running HAOS in a VM on Windows 10.