Occupancy Sensor

class st.zigbee.defaults.occupancySensor
zigbee_handlers: table
attribute_configurations: table
capability_handlers: table
static occupancy_attr_handler(driver, device, value, zb_rx)

Default handler for occupancy attribute on the occupancy sensing cluster

This converts the Bitmap8 value of the occupancy attribute to OccupancySensor.occupancy occupied if bit 1 is set unoccupied otherwise

Parameters