I am looking for a way to use IDX iso names as imho this is better to maintain once names should changereturn
{
on =
{
devices = {
'myDetector',
'roomTemp'
}
},
execute = function(domoticz, device)
if ((device.name == 'myDetector' and device.active) or
(device.name == 'roomTemp' and device.temperature >= 45)) then
domoticz.notify('Fire', 'The room is on fire', domoticz.PRIORITY_EMERGENCY)
end
end
}
I think it's not that difficult but can't find the syntax