I have a mailbox with a open close sensor. I want to trigger this event only the first time. I would like to use the counter. I'm 0 out it at midnight. When the mailbox gets open by the post office and the counter is 0 then warn me with a light on. The subsequent opening will not trigger the light on. I have attached the event. Unfortunately it seems that the if counter is only on "become" and not on "Is" counter 0. What should I user for counter?
Announcement
Collapse
No announcement yet.
Counter help
Collapse
X
-
I used a similar trigger and conditions on my mailbox door sensor and for the counter condition I used "A Counter's Value is this Absolute Value" with zero. I added a trigger to increment the counter in the same event.
My first event triggers ok and alerts me the mailbox was open. The subsequent events do not trigger my alerts as expected.
Although the counter condition wording is strange as it is not an action it does work. Seems like the author needs to update the line.
-
Originally posted by alphatech View PostI have a mailbox with a open close sensor. I want to trigger this event only the first time. I would like to use the counter. I'm 0 out it at midnight. When the mailbox gets open by the post office and the counter is 0 then warn me with a light on. The subsequent opening will not trigger the light on. I have attached the event. Unfortunately it seems that the if counter is only on "become" and not on "Is" counter 0. What should I user for counter?HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon
- Likes 1
Comment
-
I have started to include a Counter in one of my events. Counter is really a bit of a misnomer because what I really want is some way to test a device that can have multiple states. In my case, I use a counter that says that nothing happens at State 0, State 1 says that the Event is armed, but it requires a variety of different things have to happen before it changes to State 2 which is when the Event fires and the lights turn on. I know it sounds a little awkward but it works quite well.
However, what I am wrestling with is how to test a counter that is "Less Than" a stated value. I can test it the counter is greater, etc but I cannot test if the counter is less than. Does anyone have any suggestions??
Comment
-
Originally posted by brmeeke View PostI have started to include a Counter in one of my events. Counter is really a bit of a misnomer because what I really want is some way to test a device that can have multiple states. In my case, I use a counter that says that nothing happens at State 0, State 1 says that the Event is armed, but it requires a variety of different things have to happen before it changes to State 2 which is when the Event fires and the lights turn on. I know it sounds a little awkward but it works quite well.
However, what I am wrestling with is how to test a counter that is "Less Than" a stated value. I can test it the counter is greater, etc but I cannot test if the counter is less than. Does anyone have any suggestions??
HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon
Comment
Comment