Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
M1 alarm triggered info
#31
Doing all of your filtering in code will not break anything, but it will may bog the system down. The goal is to let Dean's filters eliminate most of the events you don't care about and then filter the last bit in code if necessary.

IsZoneAlarmFor will let you check a specific field and state (i.e. Elk.Physzone055 notready). Perfect for turning on a light when a door opens.

You could also use IsZoneAlarm and just check the state (notready). Then in your code you could filter for your specific field. This is less efficient because your code will be invoked every time any zone goes notready. Sometimes it is necessary to avoid replicating the code in your trigger lots of times though...

--Bob

P.S. Dean, the shipped code did not test the arm state. It just always sent violated. notready was never returned.

P.P.S. Of course neither Elk driver sends motion events yet...
Reply
#32
Oh, sorry. I forgot it didn't send motion events. It looks like I'm going to have to save the Elk reworking for early in the 4.3 phase. It's too late now in the cycle to take on something that substantial.
Dean Roddey
Explorans limites defectum
Reply
#33
So is it better to make a trigger for each elk zone with that filter or do 1 trigger like I am now and for actions check which elk zone was tripped?
Reply
#34
It depends on the code. If the code is substantial and similar, then use one trigger and detail filter in the action.

You need to try and filter as best you can before the action starts though. Use IsZoneAlarmFrom like Dean said, at least.

Don't forget your IsZoneAlarmFor = Elk.AreaAlarm1 filter will not work because IsZomeAlarmFor executes for PhysZone fields, not the AreaAlarm1 field.

--Bob

P.S. Its too bad the base Elk driver won't be upgraded for this release. Maybe you can just ship the dev driver. The base driver ZoneAlarm stuff is really broken and the longer its out there the more people will try to use it.
Reply
#35
So what filter do I want then for when the Elk system alarm goes off, whether Burglar, Emergency, Fire, etc?
Reply
#36
You would need to set up a field change trigger on the AreaAlarmXXX field for the area. Then use a field change filter for that field.
Dean Roddey
Explorans limites defectum
Reply
#37
You can also use an IsZoneViolated filter. Zones only go Violated when they are the cause of an alarm. This has the nice side effect of telling you which zone was responsible for the alarm.

Here is my alarm trigger (filtered by IsZoneViolated):
Code:
TrigEvent::GetZoneAlarmInfo
    P1=LVar:State
    P2=LVar:ZoneNumber

Devices::QueryDrvText
    P1=Security
    P2=ZoneName
    P3=%(LVar:ZoneNumber)
    P4=LVar:ZoneName

System::EMail
    P1=ComcastBob
    P2=trigger@ifttt.com
    P3=$(Security.AreaAlarm1)
    P4=%(LVar:ZoneName)

This causes my cell to get a text message whenever my alarm goes off.

NOTE: this trigger may execute more than once if more than one zone goes into alarm (as the burglar roams your house triggering sensors).

NOTE: this may not execute for zones which do not have fields. If you haven't enabled all your zones you may want to use the AreaAlarm field change trigger instead.

--Bob
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Triggered Event w/ Elk AreaArm EST 18 5,835 12-04-2020, 05:37 PM
Last Post: gReatAutomation
  Triggered Event only works every second time znelbok 2 988 10-27-2020, 12:05 PM
Last Post: znelbok
  What is everyone using for weather info? ghurty 11 2,377 04-23-2020, 08:00 AM
Last Post: Dean Roddey
  Triggered Event on Timer Question znelbok 7 3,345 12-09-2019, 02:10 PM
Last Post: znelbok
  Editing Triggered Events Possibly Causing Kernel Panic/Crash gReatAutomation 6 2,693 11-08-2019, 01:10 PM
Last Post: Dean Roddey
  Pause / Resume Triggered or Scheduled Actions from the Interface Viewer gReatAutomation 2 1,878 10-30-2019, 01:38 PM
Last Post: gReatAutomation
  NetworkMonitor / Presence Info trigger? gReatAutomation 17 5,726 09-24-2019, 01:08 PM
Last Post: gReatAutomation
  Possible Bug with Triggered Events gReatAutomation 3 1,566 09-19-2019, 02:41 PM
Last Post: gReatAutomation
  Triggered Event and Standard Triggers gReatAutomation 5 1,999 08-23-2019, 12:38 PM
Last Post: Dean Roddey
  LogicServer Elapsed Time and Triggered Event gReatAutomation 6 2,328 08-17-2019, 07:53 AM
Last Post: gReatAutomation

Forum Jump:


Users browsing this thread: 1 Guest(s)