Thanks.
Code: Select all
local devicesToCheck = {
{ ['name'] = 'Conservatory Motion Sensor', ['true_prob'] = 0.7,['false_prob'] = 0.7 },
{ ['name'] = 'Kitchen Motion Sensor', ['true_prob'] = 0.7,['false_prob'] = 0.7 },
{ ['name'] = 'Bedroom Motion Sensor', ['true_prob'] = 0.7,['false_prob'] = 0.7 },
{ ['name'] = 'Living Room Motion Sensor (Main)', ['true_prob'] = 0.7,['false_prob'] = 0.7 }
}
local prior = 0.5
return {
on = {
devices = {
'Conservatory Motion Sensor',
'Kitchen Motion Sensor',
'Bedroom Motion Sensor',
'Living Room Motion Sensor (Main)'
}
},
execute = function(domoticz, device)
print('stuff here')
end
}