I am now connected to my electric counter (linky) in Zigbee. I am using a zigate dongle.
Everything is fine I have my instant power and alarm for overload.
The problem is that I try to trigger the dzvents script each time this alarm sensor is changing. But it is not working.
The only way I found is to trigger every minute, not so nice for an overload alarm.
I am talking of an "alarm" type sensor.
The text is changing from "Normal" to "REACH>98% of MAx..."
The code :
Code: Select all
local alarme=745
return {
on = {
device = {alarme},
timer = {'every 1 minutes'},
},
execute = function(d, item)
if (item.isDevice) then
d.notify('Zlinky Device Alarm')
end
end
}