Carbon Monoxide Detector
- class st.zigbee.defaults.carbonMonoxideDetector.IASZoneConfiguration
- cluster: number
IASZone ID 0x0500
- attribute: number
ZoneStatus ID 0x0002
- minimum_interval: number
0 seconds
- maximum_interval: number
180 seconds (3 min)
- data_type: st.zigbee.zcl.types.IasZoneStatus
the ZoneStatus type class
- class st.zigbee.defaults.carbonMonoxideDetector
- zigbee_handlers: table
- attribute_configurations: table
- capability_handlers: table
- default_ias_zone_configuration: st.zigbee.defaults.carbonMonoxideDetector.IASZoneConfiguration
- static ias_zone_status_attr_handler(driver, device, zone_status, zb_rx)
Default handler for zoneStatus attribute on the IAS Zone cluster
This converts the 2 byte bitmap value to carbonMonoxideDetector.carbonMonoxide.”detected” or carbonMonoxideDetector.carbonMonoxide.”clear”
- Parameters
driver (
ZigbeeDriver
) – The current driver running containing necessary context for executiondevice (
ZigbeeDevice
) – The device this message was received from containing identifying informationzone_status (
st.zigbee.zcl.types.IasZoneStatus
) – 2 byte bitmap zoneStatus attribute value of the IAS Zone clusterzb_rx (
ZigbeeMessageRx
) – the full message this report came in
- static ias_zone_status_change_handler(driver, device, zb_rx)
Default handler for zoneStatus change handler
This converts the 2 byte bitmap value to carbonMonoxideDetector.carbonMonoxide.”detected” or carbonMonoxideDetector.carbonMonoxide.”clear”
- Parameters
driver (
Driver
) – The current driver running containing necessary context for executiondevice (
ZigbeeDevice
) – The device this message was received from containing identifying informationzb_rx (
ZigbeeMessageRx
) – containing the ZoneStatusChangeNotificiation cluster specific message in zb_rx.body.zcl_body