In dzVents I am calling the json api using the addtimer parameter but cannot see an option in the parameters that would allow me to set the setpoint.
In the UI to add a Timer to a Thermostat there is a field to add a "Value" which then appears as "Temperature, {value}" in the Command column in the list of timers:
This is the code I would like to use (the idx is the deviceId of the Thermostat):
Code: Select all
local function addSchedule(domoticz, idx, command, hour, minute, days)
local jsonString = "/json.htm?type=command" ..
"¶m=addtimer" ..
"&idx=" .. idx ..
"&active=true" ..
"&timertype=" ..
"&hour=" .. hour ..
"&min=" .. minute ..
"&randomness=false" ..
"&command=" .. command ..
"&days=" .. days
domoticz.openURL( domoticz.settings["Domoticz url"] .. jsonString )
end
Thanks in advance