|  Developer
Updated on March 28, 2023

set_thermostat_mode()

  • Clears storage with device specific associations and configurations
Edit

  • params:

    • node_id (int),
    • channel_id (int),
    • mode (int) – thermostat mode
    • manufacturer specific hex data (string) – optional. The data is expected only for manufacturer specific mode (0x1F). Hex string represents byte array of max length 7.
  • return: none
Edit
				
					require "zwave"

local node_id = 1
local channel_id = 0
local mode = 10

zwave.set_thermostat_mode(node_id, channel_id, mode)

mode = 0x1F -- manufacturer specific
zwave.set_thermostat_mode(node_id, channel_id, mode, "F1B81C")