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
driver (
ZigbeeDriver
) – The current driver running containing necessary context for executiondevice (
st.zigbee.Device
) – The device this message was received from containing identifying informationvalue (
st.zigbee.data_types.Bitmap8
) – the value of the occupancy attribute on the OccupancySensing clusterzb_rx (
st.zigbee.ZigbeeMessageRx
) – the full message this report came in