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,23 @@
-- example script to fake the presence of people being at home
return {
active = true,
on = {
timer = {
'at sunset',
'at 23:30'
}
},
execute = function(domoticz, timer)
if (timer.trigger == 'at sunset') then
domoticz.devices('mySwitch').switchOn()
domoticz.devices('anotherSwitch').dimTo(40)
-- add whatever you want
else
-- switch off at a random moment after 23:30
domoticz.devices('mySwitch').switchOff().withinMin(60)
domoticz.devices('anotherSwitch').switchOff().withinMin(60)
end
end
}