Page 1 of 1

SetSetpoint With FOR ?

Posted: Monday 05 March 2018 8:53
by narfight
Hello,

Is it planned to be able to use "FOR" with the "SetSetpoint" command to define a running time?

Like this :

Code: Select all

commandArray['SetSetpoint:MySetPointIdx'] = "24.0 FOR 60"
Currently, I'm send an "OpenURL" on JSON with the "until" parameter on the device, like this :

Code: Select all

commandArray['OpenURL'] = uservariables["DomoticzJson"].."type=setused&idx="..otherdevices_idx[MyDeviceName].."&setpoint="..TempInUse.."&mode=TemporaryOverride&until="..os.date('%Y-%m-%dT%H:%M:%S.000Z', GetUTCTime()+MaxTempInUseInHour*60*60).."&used=true")
it's slightly less "beautiful"

Thk in advance,
Narfight