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,25 @@
return {
active = true,
on = {
devices = {
'PIR_*' -- all my motion detectors' name start with PIR_
}
},
execute = function(domoticz, detector)
if (detector.state == 'Motion' and domoticz.security ~= domoticz.SECURITY_DISARMED) then
-- o dear
domoticz.setScene('intruder alert', 'On')
-- send notification
domoticz.notify('Security breach', '',
domoticz.PRIORITY_EMERGENCY,
domoticz.SOUND_SIREN)
end
end
}