Originally posted by Black Cat
View Post
Note that these can all be done with timers and counters which are built into HS. Sequences are possible, but I agree, that they are harder to accomplish with the tools HS gives you (not saying that is good or bad). It's also important to remember that PLEG only deals with true/falses. So sequences are based on when presetup triggers are true or false. You can accomplish this using Virtual Devices or global variables if you wanted to.
So, these are kind of the conditions/sequences that I remember PLEG supporting (remind me if I"m missing any, it's been 2 years):
trigger1; NOW > 30:00
Trigger1 has been true for more than 30 minutes.
You can do this in HS now. It's built in
Code:
IF device A has been set to Y for at least 30 minutes
trigger 1 occurred more than 30 seconds ago.
You can do this in HS now with existing triggers/conditions.
Code:
IF device A is changed and set to Y AND IF device B has been Z for at least 30 seconds.
trigger1 occurred more than 30 seconds before trigger2, but not more than 5 minutes from trigger2.
This one is harder in Homeseer. It requires you to set up multiple events to start timers, but it is possible.
event 1 (start timer when device A is set to a value)
Code:
IF device A is set to Y THEN restart timer1
Code:
IF device A is change and is not Y THEN stop timer
Code:
IF device B is set to Z AND IF device A has been set to Y for more than 30 seconds AND IF timer 1 is less than 5 Minutes THEN...
Code:
IF Device X is set to A after Device Y is set to B between time1 and time2 THEN...
Oh yeah, there is also the counter sequence thing in PLEG:
Device A is Y @ 3 < 30
If device A is Y 3 times in less than 30 seconds then...
I think you could do this with HS as well, but I'm about to go into a meeting and can't write it up. It is possible though. Have an event to increment a counter as long as a timer is less than a certain tima. An event to start and stop the timer and a main event which is triggered when your conditions are met. Definitely more work in HS, but same result.
Comment