Contact Sensor
- class st.zigbee.defaults.contactSensor.IASZoneConfiguration
- cluster: number
IASZone ID 0x0500
- attribute: number
ZoneStatus ID 0x0002
- minimum_interval: number
30 seconds
- maximum_interval: number
300 seconds (5 min)
- data_type: st.zigbee.zcl.types.IasZoneStatus
the ZoneStatus type class
- class st.zigbee.defaults.contactSensor
- zigbee_handlers: table
- attribute_configurations: table
- capability_handlers: table
- default_ias_zone_configuration: st.zigbee.defaults.contactSensor.IASZoneConfiguration
- static ias_zone_status_attr_handler(driver, device, zone_status, zb_rx)
Default handler for IAS zone status attribute change
This converts the IAS Zone Status attribute report or read response value to a contact sensor event. If alarm1 or alarm2 bits are set, this results in a closed event, if both are unset, it is an open event
- Parameters
driver (
ZigbeeDriver
) – The current driver running containing necessary context for executiondevice (
st.zigbee.Device
) – The device this message was received from containing identifying informationzone_status (
st.zigbee.zcl.types.IasZoneStatus
) – the Zone Status valuezb_rx (
st.zigbee.ZigbeeMessageRx
) – the full message this report came in
- static ias_zone_status_change_handler(driver, device, zb_rx)
Default handler for Zone Status Change Notification cluster command
This converts the IAS Zone Status value sent in the change notification command to a contact sensor event. If alarm1 or alarm2 bits are set, this results in a closed event, if both are unset, it is an open event
- Parameters
driver (
ZigbeeDriver
) – The current driver running containing necessary context for executiondevice (
st.zigbee.Device
) – The device this message was received from containing identifying informationzb_rx (
st.zigbee.ZigbeeMessageRx
) – the full message containing the ZoneStatusChangeNotification cluster command as the zb_rx.body.zcl_body