help with dzVents 2020.2 dim value
Posted: Saturday 09 May 2020 11:36
Hello All,
I am trying to get a dzVents script working but i have no succes.
The script i am using is from this topic viewtopic.php?f=59&t=29345
The problem is that de dim value is not changing at the times set is the script.
here is the script:
here is de log:
My setup is Rpi 4 with AeonTec zwave+ and qubino dimmers
thanks for the help.
Colin
I am trying to get a dzVents script working but i have no succes.
The script i am using is from this topic viewtopic.php?f=59&t=29345
The problem is that de dim value is not changing at the times set is the script.
here is the script:
Code: Select all
return
{
on =
{
devices = { 'Kinderkamer' },
},
logging =
{
level = domoticz.LOG_DEBUG,
marker = 'dim based on time'
},
execute = function(dz, item)
dz.log('Kinderkamer state: ' .. item.state,dz.LOG_DEBUG)
if item.active and item.lastUpdate.secondsAgo > 4 then
if dz.time.matchesRule('at 09:00-21:00') then
item.dimTo(100).silent()
else
item.dimTo(20).silent()
end
elseif item.lastUpdate.secondsAgo > 4 then
item.dimTo(0).silent()
end
end
}
Code: Select all
2020-05-09 11:24:36.478 Status: dzVents: Info: Handling events for: "Kinderkamer", value: "On"
2020-05-09 11:24:36.478 Status: dzVents: Info: dim based on time: ------ Start internal script: Kinderkamer dimstand: Device: "Kinderkamer (Z-wave stick)", Index: 42
2020-05-09 11:24:36.478 Status: dzVents: Debug: dim based on time: Kinderkamer state: On
2020-05-09 11:24:36.478 Status: dzVents: Info: dim based on time: ------ Finished Kinderkamer dimstand
thanks for the help.
Colin