Valve

class st.zigbee.defaults.valve.OnOffConfiguration
cluster: number

OnOff cluster ID 0x0006

attribute: number

OnOff attribute ID 0x0000

minimum_interval: number

0 seconds

maximum_interval: number

600 seconds (10 min)

data_type: Boolean

the Boolean class

class st.zigbee.defaults.valve
zigbee_handlers: table
attribute_configurations: table
capability_handlers: table
default_on_off_configuration: st.zigbee.defaults.valve.OnOffConfiguration
static on_off_attr_handler(driver, device, value, zb_rx)

Default handler for on off attribute on the on off cluster

This converts the boolean value from true -> Valve.valve.on and false to Valve.valve.off.

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

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

  • value (Boolean) – the value of the On Off cluster On Off attribute

  • zb_rx (st.zigbee.ZigbeeMessageRx) – the full message this report came in

static open(driver, device, command)

Default handler for the Valve.open command

This will send the on command to the on off cluster

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

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

  • command (table) – The capability command table

static close(driver, device, command)

Default handler for the Valve.close command

This will send the on command to the on off cluster

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

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

  • command (table) – The capability command table