BraveSirRobbin
Moderator
I have a security system with devices z1 through z25 which represent various windows, doors, and motion detectors (zones). I want to create an "Arm OK" Homeseer device that lets me know when any of these zones are "faulted". If no zones are in a fault condition I want device z26 to be "on" (indicates OK to Arm). If any zone is faulted I want device z26 to be "off" (overall system fault).
I created the following script (which works for this situation):
The problem I am having is I associate this code to an event, but I want the event to only trigger on "z" house code device changes (any z device change). The only options I see are "any device change", which works, but I feel is triggering this event way more than it needs to. Is there any way to trigger an event on one house code device change?
Also, I have "do not log this event" checked on the z26 device itself as well as the event and it is still logging this event/device in the system log. Why is that?
Thanks for any advice/comments. :huh:
BSR
I created the following script (which works for this situation):
Code:
sub main()
if hs.ison("z1") or hs.ison("z2") or hs.ison("z3") or hs.ison("z4") or hs.ison("z5") or hs.ison("z6") or hs.ison("z7") or hs.ison("z8") or hs.ison("z9") or hs.ison("z10") or hs.ison("z11") or hs.ison("z12") or hs.ison("z13") or hs.ison("z14") or hs.ison("z15") or hs.ison("z16") or hs.ison("z17") or hs.ison("z18") or hs.ison("z19") or hs.ison("z20") or hs.ison("z21") or hs.ison("z22") or hs.ison("z23") or hs.ison("z24") or hs.ison("z25") then
hs.execx10 "z26","off",0
end if
if hs.isoff("z1") and hs.isoff("z2") and hs.isoff("z3") and hs.isoff("z4") and hs.isoff("z5") and hs.isoff("z6") and hs.isoff("z7") and hs.isoff("z8") and hs.isoff("z9") and hs.isoff("z10") and hs.isoff("z11") and hs.isoff("z12") and hs.isoff("z13") and hs.isoff("z14") and hs.isoff("z15") and hs.isoff("z16") and hs.isoff("z17") and hs.isoff("z18") and hs.isoff("z19") and hs.isoff("z20") and hs.isoff("z21") and hs.isoff("z22") and hs.isoff("z23") and hs.isoff("z24") and hs.isoff("z25") then
hs.execx10 "z26","on",0
end if
end sub
The problem I am having is I associate this code to an event, but I want the event to only trigger on "z" house code device changes (any z device change). The only options I see are "any device change", which works, but I feel is triggering this event way more than it needs to. Is there any way to trigger an event on one house code device change?
Also, I have "do not log this event" checked on the z26 device itself as well as the event and it is still logging this event/device in the system log. Why is that?
Thanks for any advice/comments. :huh:
BSR