Set¶
- class st.zwave.CommandClass.SwitchColor.Set¶
Dynamically versioned SWITCH_COLOR_SET
Supported versions: 1,2,3; unique base versions: 1,2
- cmd_class: number¶
0x33
- cmd_id: number¶
0x05
- version: number¶
1,2
- args: st.zwave.CommandClass.SwitchColor.SetV1Args or st.zwave.CommandClass.SwitchColor.SetV2Args¶
- construct(module, args)¶
Construct a SWITCH_COLOR_SET object at the module instance serialization version.
- Parameters:
module (
st.zwave.CommandClass.SwitchColor) – command class module instanceargs (
st.zwave.CommandClass.SwitchColor.SetV1Args or st.zwave.CommandClass.SwitchColor.SetV2Args) – command-specific arguments
- Return type:
- class st.zwave.CommandClass.SwitchColor.SetV1: st.zwave.Command¶
v1 SWITCH_COLOR_SET
- cmd_class: number¶
0x33
- cmd_id: number¶
0x05
- version: number¶
1
- args: st.zwave.CommandClass.SwitchColor.SetV1Args¶
command-specific arguments
- init(module, args)¶
Initialize a v1 SWITCH_COLOR_SET object.
- Parameters:
module (
st.zwave.CommandClass.SwitchColor) – command class module instanceargs (
st.zwave.CommandClass.SwitchColor.SetV1Args) – command-specific arguments
- serialize()¶
Serialize v1 SWITCH_COLOR_SET arguments.
- Returns:
serialized payload
- Return type:
str
- deserialize()¶
Deserialize a v1 SWITCH_COLOR_SET payload.
- Returns:
deserialized arguments
- Return type:
- class st.zwave.CommandClass.SwitchColor.SetV1Args¶
- color_components: list[st.zwave.CommandClass.SwitchColor.SetV1ArgsColorComponents]¶
- class st.zwave.CommandClass.SwitchColor.SetV1ArgsColorComponents¶
- color_component_id: integer¶
- value: integer¶
[0,255]
- class st.zwave.CommandClass.SwitchColor.SetV2: st.zwave.Command¶
v2 and forward-compatible v3 SWITCH_COLOR_SET
- cmd_class: number¶
0x33
- cmd_id: number¶
0x05
- version: number¶
2
- args: st.zwave.CommandClass.SwitchColor.SetV2Args¶
command-specific arguments
- init(module, args)¶
Initialize a v2 and forward-compatible v3 SWITCH_COLOR_SET object.
- Parameters:
module (
st.zwave.CommandClass.SwitchColor) – command class module instanceargs (
st.zwave.CommandClass.SwitchColor.SetV2Args) – command-specific arguments
- serialize()¶
Serialize v2 or forward-compatible v3 SWITCH_COLOR_SET arguments.
- Returns:
serialized payload
- Return type:
str
- deserialize()¶
Deserialize a v2 or forward-compatible v3 SWITCH_COLOR_SET payload.
- Returns:
deserialized arguments
- Return type:
- class st.zwave.CommandClass.SwitchColor.SetV2Args¶
- color_components: list[st.zwave.CommandClass.SwitchColor.SetV2ArgsColorComponents]¶
- duration: number or str¶
[0,7620] or “default”