|  Developer
Updated on May 18, 2022

color_switch_level_change()

  • This command is used to initiate a transition to a new level of color component or stop an ongoing transition.
Edit

  • params
    • node_id (int),
    • channel_id (int),
    • component id (string),
    • command (string),
    • duration in seconds (int) — optional
Edit
				
					require "zwave"

node_id = 2
channel_id = 0

zwave.color_switch_level_change( node_id, channel_id, "red", "up" )

zwave.color_switch_level_change( node_id, channel_id, "blue", "down", 50 )