is it possible to turn ON and OFF plans on selector switch using dzVents script?
For example I have one selector switch named "Heater" and I created plans for it.
On level "0" I want to have option that will disable all plans events on this switch and on level "10" it will enable them. The rest of levels will set temperature on it (temperature handling I already got).
For example:
Code: Select all
return {
on = {
devices = {
'Heater'
}
},
execute = function(domoticz, device)
if domoticz.device('Heater').switchSelector(0) then
-- !!! and here I don't now how to appeal to plans !!!
end
}
Thank You in advance.