I'm approacing dzVents and I'm quite hentusiastic about!
I love the new function included in 2.3.0 and willing to see more in the future
I would like to ask if you can consider to add some more function like:
.switchOn().once(<period in mins>)
whenever a script is execute, there are action that should not be performed all the time.... so a function that can control this would be nice...
Example: I need to switch on a device once a day, the first time a switch goes on (while the switch can toggle several times a day)
Code: Select all
return {
on = {
devices = {
'myDevice'
}
},
execute = function(domoticz, device)
if device.state == 'On then domoticz.devices('myDevice2').switchOn().once(1440) -- Once a day
end
}I actually workaround this using a variable that I reset all days at midnight
.quit()
well... this is almost an impossible thing.. but... a function that will remove all delayed command will the the best ever way to easely control the system...
Example: I issue a command like domoticz.devices('myDevice').switchOff().afterMin(20)
actually there is no way to remove such command.... the .quit() should be the function that remove the code-scheduled action
...please don't yell at me
ciao
M