Sound Sensor
- class st.zigbee.defaults.soundSensor.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.soundSensor
- zigbee_handlers: table
- attribute_configurations: table
- default_ias_zone_configuration: st.zigbee.defaults.soundSensor.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 soundSensor.sound.”detected” or soundSensor.sound.”not detected”
- 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 (
IasZoneStatusBitmap
) – 2 byte bitmap zoneStatus attribute value of the IAS Zone clusterzb_rx (
st.zigbee.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 soundSensor.sound.”detected” or soundSensor.sound.”not detected”
- 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