Jump to content

Program not working as expected


Recommended Posts

I originally posted this in the Elk board, but it seems like the problem is actually ISY related. 

What I want to do is receive an email alert when any of my Elk wireless zones report status as "trouble" (not "violated"). Simple code, looks like this (for one of the zones):

If
        Elk Zone 'Office-WestWind' is Trouble
 Then
        Send Notification to 'Me'
 Else
        Wait  0 seconds

 

However, instead of receiving a "trouble" alert I get this:

Security Zone 'Office-WestWind' Violated 

Any ideas?

 

Link to comment
2 hours ago, jfai said:

What is the configuration of the notification?

Since I'm just trying to see if this concept ("trouble" notification) works, I'm simply using the default subject (${alert.subject) and body (${alert.body}) for now.

My programs and notifications work fine for a true "violated" status. But 'trouble" and "violated" are two unique statuses. 

Status.png

Link to comment

unfortunately, I don't use an elk.  Were this me, however, I would be experimenting a bit.  I would have two programs: one triggered by "trouble" and a second triggered by "violated".  I would watch to see when each program is triggered and whether it is consistent with actual elk status.  If so, then I would simply create specific notifications for each type of occurrence and be happy.

Link to comment
20 minutes ago, oberkc said:

unfortunately, I don't use an elk.  Were this me, however, I would be experimenting a bit.  I would have two programs: one triggered by "trouble" and a second triggered by "violated".  I would watch to see when each program is triggered and whether it is consistent with actual elk status.  If so, then I would simply create specific notifications for each type of occurrence and be happy.

Thanks for your input. But I've already done that. According to Elk itself, status is trouble. According to ISY, status is trouble. According to alert, status is violated.

Link to comment
10 hours ago, mikek said:

Thanks for your input. But I've already done that. According to Elk itself, status is trouble. According to ISY, status is trouble. According to alert, status is violated.

Yes, but you also said you use the "default" alerts.  (Unfortunately, you have not shown the notification or program.)

Rather than using the default text, why not create your own notification, using whatever language you desire?  Trigger this notification from a "trouble" condition.

Link to comment
46 minutes ago, larryllix said:

I don't use an Elk either but from the alarm panels I have used "Trouble" means the circuit is broken (EoL resistor is not connected or loop is broken)  and "Violated" means the circuit has been tripped.

Yes, a low battery in a wireless sensor also reports as trouble. That's what I'm trying to accomplish with my notifications - a low battery alert. I already have my "violated" programs running and notifying as they should.

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...