Code: Select all
return {
on = { devices = { "Risque" }},
execute = function(dz, item )
if old.item.state == "RAS" and new.item.state == 'orage' then
notification
elseif old.item.state == "orage" and new.item.state == 'RAS' then
notification
end
end
}