Set

class st.zwave.CommandClass.SwitchBinary.Set

Dynamically versioned SWITCH_BINARY_SET

Supported versions: 1,2; unique base versions: 1,2

cmd_class: number

0x25

cmd_id: number

0x01

version: number

1,2

args: st.zwave.CommandClass.SwitchBinary.SetV1Args or st.zwave.CommandClass.SwitchBinary.SetV2Args
construct(module, args)

Construct a SWITCH_BINARY_SET object at the module instance serialization version.

Parameters
  • module (st.zwave.CommandClass.SwitchBinary) – command class module instance

  • args (st.zwave.CommandClass.SwitchBinary.SetV1Args or st.zwave.CommandClass.SwitchBinary.SetV2Args) – command-specific arguments

Return type

st.zwave.CommandClass.SwitchBinary.Set

class st.zwave.CommandClass.SwitchBinary.SetV1: st.zwave.Command

v1 SWITCH_BINARY_SET

cmd_class: number

0x25

cmd_id: number

0x01

version: number

1

args: st.zwave.CommandClass.SwitchBinary.SetV1Args

command-specific arguments

init(module, args)

Initialize a v1 SWITCH_BINARY_SET object.

Parameters
serialize()

Serialize v1 SWITCH_BINARY_SET arguments.

Returns

serialized payload

Return type

str

deserialize()

Deserialize a v1 SWITCH_BINARY_SET payload.

Returns

deserialized arguments

Return type

st.zwave.CommandClass.SwitchBinary.SetV1Args

class st.zwave.CommandClass.SwitchBinary.SetV1Args
switch_value: integer

see SwitchBinary.value

class st.zwave.CommandClass.SwitchBinary.SetV2: st.zwave.Command

v2 SWITCH_BINARY_SET

cmd_class: number

0x25

cmd_id: number

0x01

version: number

2

args: st.zwave.CommandClass.SwitchBinary.SetV2Args

command-specific arguments

init(module, args)

Initialize a v2 SWITCH_BINARY_SET object.

Parameters
serialize()

Serialize v2 SWITCH_BINARY_SET arguments.

Returns

serialized payload

Return type

str

deserialize()

Deserialize a v2 SWITCH_BINARY_SET payload.

Returns

deserialized arguments

Return type

st.zwave.CommandClass.SwitchBinary.SetV2Args

class st.zwave.CommandClass.SwitchBinary.SetV2Args
target_value: integer

see SwitchBinary.value

duration: number or str

[0,7620] or “default”