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

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
usky73
Posts: 39
Joined: Saturday 07 November 2015 9:53
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: france
Contact:

No device trigger for an alarm "device"

Post 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   
}   
plugge

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

Post by plugge »

Use plural and quote your device name: devices = {'alarme'}
Checkout https://www.domoticz.com/wiki/DzVents:_ ... ce_changes
usky73
Posts: 39
Joined: Saturday 07 November 2015 9:53
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: france
Contact:

Re: No device trigger for an alarm "device"

Post by usky73 »

the 's' was missing. Thanks a lot !
i am ashamed... I have plenty of dz scripts and missed this ...
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest