Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Triggered Event w/ Elk AreaArm
#11
So there was an error with the 'only one' logic type, which would have been there since the dawn of time. Hard to believe it just now showed up. If they all failed, it would pass, when it's only supposed to pass if one and only one worked.
Dean Roddey
Explorans limites defectum
Reply
#12
Thanks for the info on RegEx. Had seen it but never knew what it was for.

Maybe a post in the How-To section could be done - The explanation linked to would probably suffice.
Mykel Koblenz
Illawarra Smart Home
Reply
#13
They can also be used anywhere an expression is used (e.g. any of the boolean widget types, template states, etc...)
Dean Roddey
Explorans limites defectum
Reply
#14
Can these be used in the Action Editor or is there another way to accomplish this:

If System::Equals($(Elk.AreaArm1), Disarmed or Armed Stay)

or just use two separate IF statements?
System: WHS, UPB, Plex, Elk
Drivers: Autopatch, DataLog DB, DTV IP, GC-100, IRA, Logic Server, Variable Driver, Weather Underground
Reply
#15
They aren't available there. I'd have to make a special System::RegExCompare or something like that.
Dean Roddey
Explorans limites defectum
Reply
#16
Well, actually, you could use the System::IsInList command to achieve what you want. If you passed the values as a comma separated list, and indicated that that's the form you are passing.

So something like:

If System::IsInList($(Elk.AreaArm1), Disarmed, Armed Stay, Comma Sep, Equals Case)

So that would see if the value in the area arm field is in the list of Disarmed, Armed Stay, which you tell it is a comma separated list, and that you want to search for a list item that equals the first value, case sensitive.

You can also use a regular expression in that command. That's one of the options for how to match, but it's not required in your case above.
Dean Roddey
Explorans limites defectum
Reply
#17
(07-20-2016, 09:20 PM)TurboSam Wrote: The longer explanation Dean did in 2007 is in post number 4 of this thread.

I keep a well worn copy handy, and use RegEx values a lot.


Anyone happen to have saved this before that part of the board was removed?
Reply
#18
I think it was re-posted in the how-to section:

https://www.charmedquark.com/vb_forums/s...p?tid=9876

Those things weren't removed, but the thread ids (the tid=xxx bit) got scrambled during an upgrade, so the links don't link to what they used to always.
Dean Roddey
Explorans limites defectum
Reply
#19
Thank you........
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Triggered Event only works every second time znelbok 2 590 10-27-2020, 12:05 PM
Last Post: znelbok
  Global Variables in the Event Server context lleo 1 587 05-16-2020, 11:21 AM
Last Post: Dean Roddey
  [FEATURE] Event Run Action simplextech 4 1,523 01-09-2020, 02:04 PM
Last Post: simplextech
  Media playing from Event simplextech 11 2,674 01-07-2020, 06:09 PM
Last Post: simplextech
  Triggered Event on Timer Question znelbok 7 2,234 12-09-2019, 02:10 PM
Last Post: znelbok
  Editing Triggered Events Possibly Causing Kernel Panic/Crash gReatAutomation 6 1,883 11-08-2019, 01:10 PM
Last Post: Dean Roddey
  Pause / Resume Triggered or Scheduled Actions from the Interface Viewer gReatAutomation 2 1,269 10-30-2019, 01:38 PM
Last Post: gReatAutomation
  Possible Bug with Triggered Events gReatAutomation 3 1,083 09-19-2019, 02:41 PM
Last Post: gReatAutomation
  Triggered Event and Standard Triggers gReatAutomation 5 1,341 08-23-2019, 12:38 PM
Last Post: Dean Roddey
  LogicServer Elapsed Time and Triggered Event gReatAutomation 6 1,432 08-17-2019, 07:53 AM
Last Post: gReatAutomation

Forum Jump:


Users browsing this thread: 1 Guest(s)