Code: Select all
return
{
on =
{
devices = {
'MS','MSL'
}
},
execute = function(domoticz, device)
if ((device.name == 'MS' and device.active) and (device.name == 'MSL' and device.lux < 10 )) then
domoticz.notify('Motion', 'Motion triggered', domoticz.PRIORITY_EMERGENCY)
end
end
}