Turn dummy switch on when domoticz starts up
Posted: Sunday 13 September 2020 20:13
I'm trying to get a dzVents script going which turns a switch on when domoticz starts up.
But i am quite a noob in scripting and can not get it to work.
And i can not find a likewise example on the internet.
This i made sofar but it does not do the trick. (Linphone-S is the switch)
the log:
But i am quite a noob in scripting and can not get it to work.
And i can not find a likewise example on the internet.
This i made sofar but it does not do the trick. (Linphone-S is the switch)
Code: Select all
return {
on = {
system = {
'start',
}
devices = {'Linphone-S'
}
},
execute = function(domoticz, switch)
domoticz.switches('Linphone-S').switchOn()
end
}
- Spoiler: show