first commit
This commit is contained in:
20
dzVents/examples/schedule fish pond pump.lua
Normal file
20
dzVents/examples/schedule fish pond pump.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
return {
|
||||
active = true,
|
||||
on = {
|
||||
['timer'] = {
|
||||
'at 8:30 on mon,tue,wed,thu,fri',
|
||||
'at 17:30 on mon,tue,wed,thu,fri',
|
||||
|
||||
-- weeekends are different
|
||||
'at sunset on sat, sun',
|
||||
'at sunrise on sat, sun'
|
||||
}
|
||||
},
|
||||
|
||||
execute = function(domoticz)
|
||||
|
||||
local pump = domoticz.devices('Pond')
|
||||
pump.toggleSwitch()
|
||||
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user