first commit

This commit is contained in:
Souti
2025-03-06 11:09:58 +01:00
commit 11f7d440ff
330 changed files with 38306 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
-- External light
-- turn lights on at sunset and back off at sunrise
return {
active = true,
on = {
timer = {
'at sunset',
'at sunrise'
}
},
execute = function(domoticz, timer)
-- external light switch name
local external_light = domoticz.devices('External light')
if (timer.trigger == 'at sunset') then
external_light.switchOn()
else
external_light.switchOff()
end
end
}