Page 1 of 1

No device trigger for an alarm "device"

Posted: Sunday 03 April 2022 15:57
by usky73
Dear all

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   
}   

Re: No device trigger for an alarm "device"  [Solved]

Posted: Sunday 03 April 2022 16:39
by plugge
Use plural and quote your device name: devices = {'alarme'}
Checkout https://www.domoticz.com/wiki/DzVents:_ ... ce_changes

Re: No device trigger for an alarm "device"

Posted: Sunday 03 April 2022 18:23
by usky73
the 's' was missing. Thanks a lot !
i am ashamed... I have plenty of dz scripts and missed this ...