Motion Sensor

class st.zigbee.defaults.motionSensor.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.motionSensor
zigbee_handlers: table
attribute_configurations: table
capability_handlers: table
default_ias_zone_configuration: st.zigbee.defaults.motionSensor.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 motionSensor.motion.”active” or motionSensor.motion.”inactive”

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

  • zone_status (IasZoneStatus) – 2 byte bitmap zoneStatus attribute value of the IAS Zone cluster

  • zb_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 motionSensor.motion.”active” or motionSensor.motion.”inactive”

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 the ZoneStatusChangeNotification cluster command in zb_rx.body.zcl_body

static disable_ias_reporting_configuration(device)

Allow devices to turn off attribute reporting configuration for the IAS Zone Status attribute

Some DTHs (smartsense-motion-sensor) did not configure this attribute for reporting and doing so in the driver has led to significant battery drain. This should only be done if the device will report these values anyway.

Parameters

device (st.zigbee.Device) – The device that should _not_ configure reporting