@ Danny,
Sleep mode is just a simple dummy switch I use to switch off my devices for the night, and also to lower the thermostat setpoint.
What I want to be able to do in this case, is to set a variable setpoint, so I can choose the setpoint setting for the coming night in advance.
This is part of my current script for my 'sleep mode':
Code: Select all
return {
on = {
devices = {
'Sleepmode'},
execute = function(domoticz)
if (domoticz.devices('Sleepmode').state == 'On' then
domoticz.devices('LivingRoomLight').switchOff()
domoticz.devices('Thermostaat').updateSetPoint(17) --[b] I want to set this to a uservariable 'Night_temp[/b]'
How would that look like in dzVents code? Thanks for your patience !