I would like to be able to switch a scene between active and inactive with a dummy switch.
I have tested this with this dzVents script:
Code: Select all
--Dummy Switch: 'Beschattung Automatik' Idx: 4269
--Scene : 'TestSzene' Idx: 22
local dz = domoticz
return {
logging = {
level = domoticz.LOG_INFO,
marker = '-----'
},
on = {
devices = { 'Beschattung Automatik' }
},
execute = function(dz, switch)
if (dz.devices(4269).active) then
dz.scenes('TestSzene').active = true
dz.log('scene true')
else
dz.scenes('TestSzene').active = false
dz.log('scene false')
end
end
}
The dummy switch works correct. I can see this in the log.
Does anyone know a solution?