| HomeSeer HS2™ Specific General discussion about HomeSeer HS2. |

August 25th, 2009, 05:34 AM
|
|
Seer Deluxe
|
|
Join Date: Feb 2009
Location: France
Posts: 178
|
|
Multiple conditions in HS2
Hello,
After trying many ways to put more than one conditions without results, i post some questions :
In fact i'd like to check this :
- If temp sensor value X is higher OR lower of Y at least of Z mins , sent an email.
- If temp sensor value X is higher than W AND lower than Y at least of Z mins , sent an email.
- If Sensor X is On AND Sensor Y is Off AND value Z is higher than W AND lower than V ( or just value Z is higher OR lower than W ) at least of B mins, sent an email.
The only thing i can do it only
one condition as the screenshot.
There is some possibilities to put more than conditions as these one ?
Thanks a lot in advance ...
Regards
|

August 25th, 2009, 06:49 AM
|
 |
Seer Master
|
|
Join Date: Apr 2007
Location: Florida
Posts: 593
|
|
Checkmark the Apply conditions box this will allow for multiple conditions - another option is script
|

August 25th, 2009, 06:53 AM
|
|
Seer Deluxe
|
|
Join Date: Feb 2009
Location: France
Posts: 178
|
|
Thanks,
Yes i know for the Apply check box ... but i can't do them for the others conditions.
With scripts : i don't know vb.
|

August 25th, 2009, 09:35 AM
|
 |
Super Seer
|
|
Join Date: Feb 2006
Location: Rochester, NY
Posts: 1,508
|
|
Quote:
Originally Posted by nslmanu
Yes i know for the Apply check box ... but i can't do them for the others conditions.
|
I'm not sure I understand what you mean. For reference see below.
Each time you click on the 'Submit' box you can add an additional condition. All conditions within a group are connected by 'And'. Groups are connected by 'Or'.
That said, although the interaction of the conditions is limited only by your ingenuity, the conditions you describe are complex. They will take some careful thought to get right. A script would be more straightforward, but will require some learning.
__________________
Mike
____________________________________________________________ __________________
HS 2.3.0.19 || Stargate 2.2 | ACRF2 1.0.3226.27426 | VWSCSV 2.2 | Ultrastatus 1.1.3172.37875 | BLRFID 1.0.35.0 | PowerTrigger 1.3 | NetCam 1.1 | ActiveBackup 2.0.0.26 || Scripts: Weather XML | PerfMon | VDGraph || HW: EeeBox | JDS Stargate | NetworX NX-8E | CAV6.6 w ABUS | Slink-e / CDJ | Compose switches, keypads, firewalls | WGL800 | RFXCOM LAN2 | LaCrosse 2310
|

August 25th, 2009, 10:41 AM
|
 |
Super Seer
|
|
Join Date: May 2007
Location: Nova Scotia, Canada
Posts: 1,760
|
|
Even scripting all this would be complex. Without resorting to scripting, your time requirements are going to necessitate the creation of a couple of extra devices to track the True time, and you'll need multiple events as well to accomplish all this.
First, apply some Boolean Algebra to your condition set. As you've described the requirements, they can be reduced to:
1. X not equal to Y
2. X greater than W
3. X On and Y Off, AND Z greater than W, AND Z less than V
Create events:
1. Set new device M ON if one of the first two conditions are true.
2. Set device N ON if the third set of conditions is true.
3. Test M for "has been on for at least" Z minutes. The action here would be send the email and reset M to Off.
4. Test N for "has been on for at least" B minutes. The action here would be send the email and reset N to Off.
If Rick or Rich are listening, a "Group has been true for x seconds" option would be nice.
__________________
Location: 45° 5' 49.27" N 64° 24' 49.96" W
Automate everything, modify the rest... but remember... For every action, there is an equal and unexpected reaction.
|

August 25th, 2009, 12:54 PM
|
|
Seer Deluxe
|
|
Join Date: Feb 2009
Location: France
Posts: 178
|
|
Thanks a lot very much,
So i need to use a Virtual device ?
Set On in the actual condition in not true ... and if the Virtual device is ON at least 5 minutes so send an email ....
correct ?
( in fact i search how to put ALL IN ONE event ) but it's impossible.
|

August 25th, 2009, 01:33 PM
|
 |
Super Seer
|
|
Join Date: Feb 2006
Location: Rochester, NY
Posts: 1,508
|
|
Quote:
So i need to use a Virtual device ?
Set On in the actual condition in not true ... and if the Virtual device is ON at least 5 minutes so send an email ....
correct ?
|
That's how I'd do it.
In fact, I'd try to break the task into several events and devices. That makes the logic easier to understand and the code easier to maintain if you want to change it. Although there is a tendency in human nature to try to minimize devices and events, I don't think there is any real advantage and probably it just makes the task harder.
__________________
Mike
____________________________________________________________ __________________
HS 2.3.0.19 || Stargate 2.2 | ACRF2 1.0.3226.27426 | VWSCSV 2.2 | Ultrastatus 1.1.3172.37875 | BLRFID 1.0.35.0 | PowerTrigger 1.3 | NetCam 1.1 | ActiveBackup 2.0.0.26 || Scripts: Weather XML | PerfMon | VDGraph || HW: EeeBox | JDS Stargate | NetworX NX-8E | CAV6.6 w ABUS | Slink-e / CDJ | Compose switches, keypads, firewalls | WGL800 | RFXCOM LAN2 | LaCrosse 2310
|

August 25th, 2009, 01:56 PM
|
|
Seer Deluxe
|
|
Join Date: Feb 2009
Location: France
Posts: 178
|
|
Mike,
it's just it becomes really boring to try to find anything when you have a lot of conditions, sensors etc etc ....
After, you'll do much errors ... so it's for that .... minimizing all to have something more clear.
But now i realize that i have 3 events, 1 virtual more just to check if my Gaz sensor is ON for at least few minutes ... or my Temp Frige is highr or lower for at least few minutes ....
But this is the way to follow to make it running !
( sorry for my bad english ... i'm french )
|

August 25th, 2009, 07:18 PM
|
 |
Super Seer
|
|
Join Date: Feb 2006
Location: Rochester, NY
Posts: 1,508
|
|
If you assign all the related events to a single group you can call them up together when you want to review the logic.
PS. Your English is way better than my French!
__________________
Mike
____________________________________________________________ __________________
HS 2.3.0.19 || Stargate 2.2 | ACRF2 1.0.3226.27426 | VWSCSV 2.2 | Ultrastatus 1.1.3172.37875 | BLRFID 1.0.35.0 | PowerTrigger 1.3 | NetCam 1.1 | ActiveBackup 2.0.0.26 || Scripts: Weather XML | PerfMon | VDGraph || HW: EeeBox | JDS Stargate | NetworX NX-8E | CAV6.6 w ABUS | Slink-e / CDJ | Compose switches, keypads, firewalls | WGL800 | RFXCOM LAN2 | LaCrosse 2310
|

August 26th, 2009, 01:55 AM
|
|
Seer Deluxe
|
|
Join Date: Feb 2009
Location: France
Posts: 178
|
|
Oki Doki , good tip/trick
Thanks a lot guys for all !
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 11:43 AM.
|