Water Sensor

class st.zigbee.defaults.waterSensor
zigbee_handlers: table
attribute_configurations: table
capability_handlers: table
default_ias_zone_configuration: st.zigbee.defaults.waterSensor.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 waterSensor.water.”dry” or waterSensor.water.”wet”

Parameters
static ias_zone_status_change_handler(driver, device, zb_rx)

Default handler for zoneStatus change handler

This converts the 2 byte bitmap value to waterSensor.water.”dry” or waterSensor.water.”wet”

Parameters
  • driver (Driver) – The current driver running containing necessary context for execution

  • device (st.zigbee.Device) – The device this message was received from containing identifying information

  • zb_rx (st.zigbee.ZigbeeMessageRx) – containing zoneStatus attribute value of the IAS Zone cluster