If you read my post, I am triggering the "time testing" event from a second event "if conditions are met".
I am not running the first event directly, therefore the conditions are indeed tested.
Please re-read my last post and test it for yourself.
Announcement
Collapse
No announcement yet.
Group issue
Collapse
X
-
Originally posted by jblogs12 View PostI agree with you that the time "should" be based on the time stamp of the device.
Firstly, I have to point out that in my scenario I am using a condition to test for time exceeds 7 days. I am not using a trigger to test for the 7 days.
To prove my point, create an event with a manual trigger and a condition to test (for example) a light to see if it has been off for at least an hour (when you know it has been off for many hours).
Now, create another event to trigger the first event "if conditions are met".
Finally, make sure that easytrigger logging has been set to debug mode.
Run the second event, and check your logs.
You will see that "'Run Event' action execution skipped, the conditions applied were not met: whatever your event name is".
You will also note "EasyTrigger - DEBUG has (NOT) been condition has been true for 5.594292s "
The amount of time shown is however many seconds has elapsed since you created the first event.
At least, this is what I am seeing. Anyone else have any test results?
In order to test the event to see if it is working correctly, the trigger and conditions of the event have to be true at the moment the event is triggered by the trigger set in the event.
Sent from my iPad using Tapatalk
Leave a comment:
-
I agree with you that the time "should" be based on the time stamp of the device.
Firstly, I have to point out that in my scenario I am using a condition to test for time exceeds 7 days. I am not using a trigger to test for the 7 days.
To prove my point, create an event with a manual trigger and a condition to test (for example) a light to see if it has been off for at least an hour (when you know it has been off for many hours).
Now, create another event to trigger the first event "if conditions are met".
Finally, make sure that easytrigger logging has been set to debug mode.
Run the second event, and check your logs.
You will see that "'Run Event' action execution skipped, the conditions applied were not met: whatever your event name is".
You will also note "EasyTrigger - DEBUG has (NOT) been condition has been true for 5.594292s "
The amount of time shown is however many seconds has elapsed since you created the first event.
At least, this is what I am seeing. Anyone else have any test results?
Leave a comment:
-
Originally posted by jblogs12 View PostWell, I figured out something about this test. It seems like the time span test for "if any device in group "batteries" has been in range 255,255 for at least 7d" is based on the initial time stamp of the event when it is created or modified. It does not use the time stamp of the device's update. So in my case, if a battery has been in the warning state for 2 weeks, and I modified the event that monitors battery condition today, the event would not fire because the event has only just started to monitor the batteries and I would have to wait another 7 days before I would get the email.
I would still suggest using the plugin option, it would be much better than an event you could create. There are times when a z-wave device stops reporting it’s battery level and sometimes it stops before the battery reports below 20% battery level, in which case your event wouldn’t trigger. The plugin will trigger in the above scenario....again....would be much better than any event you could create.
Sent from my iPad using Tapatalk
Leave a comment:
-
Well, I figured out something about this test. It seems like the time span test for "if any device in group "batteries" has been in range 255,255 for at least 7d" is based on the initial time stamp of the event when it is created or modified. It does not use the time stamp of the device's update. So in my case, if a battery has been in the warning state for 2 weeks, and I modified the event that monitors battery condition today, the event would not fire because the event has only just started to monitor the batteries and I would have to wait another 7 days before I would get the email.
Leave a comment:
-
Originally posted by jblogs12 View PostI have several battery devices. Some of these generate a battery low warning, only to be followed a few hours later with a battery level of 52% (or some other low 50s value). What I wanted to do is run an event periodically (say weekly) that would tell me if a battery was in the low warning state for at least a week, and the me an email to that effect.
So I created an event as follows:
if event is manually triggered
and if a device in group "batteries" has a value of 255
and if any device in group "batteries" has been in range 255,255 for at least 7d
then send email
I then have another event that calls this event weekly "if conditions are met".
My manual event never runs because conditions are not met. If I change the statement above to test for at least 1 second, it runs fine. If the time test is for several hours, again it fails.
What am i doing wrong. Please don't comment on syntax because I am away from my system right now and am typing it in from memory.
Sent from my iPhone using Tapatalk
Leave a comment:
-
Group issue
I have several battery devices. Some of these generate a battery low warning, only to be followed a few hours later with a battery level of 52% (or some other low 50s value). What I wanted to do is run an event periodically (say weekly) that would tell me if a battery was in the low warning state for at least a week, and the me an email to that effect.
So I created an event as follows:
if event is manually triggered
and if a device in group "batteries" has a value of 255
and if any device in group "batteries" has been in range 255,255 for at least 7d
then send email
I then have another event that calls this event weekly "if conditions are met".
My manual event never runs because conditions are not met. If I change the statement above to test for at least 1 second, it runs fine. If the time test is for several hours, again it fails.
What am i doing wrong. Please don't comment on syntax because I am away from my system right now and am typing it in from memory.
Tags: None
Leave a comment: