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

September 11th, 2009, 04:53 AM
|
|
Seer Deluxe
|
|
Join Date: Feb 2009
Location: France
Posts: 178
|
|
Many Conditions running : CPU increased !
Hello,
After many weeks of utilization, i have now many events following many conditions.
The problem is that the CPU runs higher now than few weeks ago ...
If i look the logs i saw that the "checking conditions function" runs all time ...
I don't know if i have done the right things, but is there something to do to use correctly many events with conditions ?
Put diferent times on "Cannot re trigger for XXX seconds" for each events. It is the correct way ? I don't know.
Thanks in advance if somebody as any help ...
Here is what i have put :
|

September 11th, 2009, 06:28 AM
|
 |
Seer Master
|
|
Join Date: Apr 2007
Location: Florida
Posts: 593
|
|
Whow high is your CPU utilization? How many events are running? Can you attach a event log to see? What version of HS are you running?
|

September 11th, 2009, 06:40 AM
|
|
Seer Deluxe
|
|
Join Date: Feb 2009
Location: France
Posts: 178
|
|
Actually i have 17 "Condition" events. I use the version 2.3.0.19.
In fact actually it runs at less than 10 % CPU because i put "CANNOT RETRIGGER FOR xxx SECONDS" for EACH conditions events.
If a remember, it was nearly 1 per second ... at a point that my interface HS2 on the server ( where we can saw the logs in real time ) freezes.
 Now it's fine, but with setting condition with few seconds or X dozen seconds.
|

September 11th, 2009, 07:09 AM
|
 |
Seer Master
|
|
Join Date: Apr 2007
Location: Florida
Posts: 593
|
|
Let's take a look at a couple of your conditions/events to see what they look like.
|

September 11th, 2009, 08:50 AM
|
|
Seer Deluxe
|
|
Join Date: Feb 2009
Location: France
Posts: 178
|
|
here is ...
|

September 11th, 2009, 11:02 AM
|
|
OverSeer
|
|
Join Date: Dec 2004
Location: Coatesville, PA.
Posts: 2,930
|
|
I hope this makes sense to you but you could make those examples a lot more efficient if you changed them around a little bit.
for example #1
It looks to me like that command will trigger every minute (depending on what the "do not trigger" setting is set to as far a seconds.
Instead of a condition why not have it setup as a status change, then HS won't be looking at it until that status changes, instead of every 60 seconds or so.
for example #2
Almost the same. change it from condition to a status change on the Virtual Velux (whatever that is  ), with a condition of the DS10 being off. This way HS will only be looking at the event when the status changes.
Example #3 I'm not sure about but it looks like it will trigger every 60 seconds, depending on the do not re-trigger setting. is that what you intend?
__________________
Marty
------
XPpro SP3 /w HS 2.4.0.6
|

September 12th, 2009, 08:58 AM
|
|
Seer Deluxe
|
|
Join Date: Feb 2009
Location: France
Posts: 178
|
|
Quote:
Originally Posted by nightwalker
for example #2
Almost the same. change it from condition to a status change on the Virtual Velux (whatever that is  ), with a condition of the DS10 being off. This way HS will only be looking at the event when the status changes.
|
It's a little bit strange, because if you want me to select the status change only ON the Velux, what i will do if the Second will change ? i'll need so to create a second trigger based on the DS10
It's really First OR Second, the condition depend of 2, both has the same for me ... But sure that i don't really know how HS2 works ... so maybe i'm wrong.
|

September 12th, 2009, 09:57 AM
|
|
OverSeer
|
|
Join Date: Dec 2004
Location: Coatesville, PA.
Posts: 2,930
|
|
Quote:
Originally Posted by nslmanu
It's a little bit strange, because if you want me to select the status change only ON the Velux, what i will do if the Second will change ? i'll need so to create a second trigger based on the DS10
It's really First OR Second, the condition depend of 2, both has the same for me ... But sure that i don't really know how HS2 works ... so maybe i'm wrong.
|
I completely glazed over the OR in that event. sorry! What I'm trying to get to is that event is going to trigger every 60 sec or so, that's a lot of event triggering and if you have a lot of those types of events running it could conceivably slow things down a bit.
__________________
Marty
------
XPpro SP3 /w HS 2.4.0.6
|

September 12th, 2009, 10:53 AM
|
|
Seer Deluxe
|
|
Join Date: Feb 2009
Location: France
Posts: 178
|
|
I guess i have no more solutions than putting : CANNOT TRIGGER and few seconds or dozen seconds.
|

September 12th, 2009, 11:21 AM
|
|
OverSeer
|
|
Join Date: Dec 2004
Location: Coatesville, PA.
Posts: 2,930
|
|
The way you have it setup it's the only way to slow it down a bit. Anytime you trigger on something just being on, with no other condition, it's going to fire every 60 sec or so, unless you set the cannot re-trigger. In my own system I avoid those types of conditions and instead like to have at least two conditions that have to be met.
__________________
Marty
------
XPpro SP3 /w HS 2.4.0.6
|

September 12th, 2009, 01:10 PM
|
|
Seer Deluxe
|
|
Join Date: Feb 2009
Location: France
Posts: 178
|
|
ha ok ... so how you use or how you do some conditions ? because on HS2, conditions are the base of this system, no ?
|

September 12th, 2009, 02:45 PM
|
|
OverSeer
|
|
Join Date: Dec 2004
Location: Coatesville, PA.
Posts: 2,930
|
|
Exactly! HomeSeer can run a ton of conditions, but you do have to be careful about conditions that will be more or less true "ALL" the time. Otherwise depending on the system you will get a slowdown, depending on what else it's doing.
Why have conditions running every second of the day if there is any other way to do it.
__________________
Marty
------
XPpro SP3 /w HS 2.4.0.6
|

September 13th, 2009, 10:48 AM
|
 |
Super Seer
|
|
Join Date: Feb 2006
Location: Rochester, NY
Posts: 1,508
|
|
Quote:
Originally Posted by nslmanu
It's a little bit strange, because if you want me to select the status change only ON the Velux, what i will do if the Second will change ? i'll need so to create a second trigger based on the DS10
It's really First OR Second, the condition depend of 2, both has the same for me ... But sure that i don't really know how HS2 works ... so maybe i'm wrong.
|
What is the event action? If it is an X10 command or something else that takes some time or extra resource, that might be part of the problem. Having two events with identical actions that trigger on each of the two status changes will do what you want - and run only when a status change occurs. I realize many people have a conceptual problem doing it that way, but I think HS will be 'happier' if you do.
__________________
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
|

September 13th, 2009, 01:58 PM
|
|
Seer Deluxe
|
|
Join Date: Feb 2009
Location: France
Posts: 178
|
|
I understand your opinion ...But , how to do a test like this in ONE event for example :
If
a = on AND b = on
then
set c = ON
elsif
a = off AND b = on
then
set c = OFF
fi
BE CAREFUL : don't want to set c=OFF is b=off
I hadn't found the solution, so i had created 2 events ....  but i agree with you that doing 2 opossite tests will increase the cpu resource ...
Thanks in advance ... i have HS2 since 3 or 4 months now .. just begin to use it !
__________________
|

September 13th, 2009, 02:24 PM
|
 |
OverSeer
|
|
Join Date: Jan 2001
Location: Huntsville, Al. USA
Posts: 33,803
|
|
Quote:
Originally Posted by nslmanu
I hadn't found the solution, so i had created 2 events ....  but i agree with you that doing 2 opossite tests will increase the cpu resource ...
Thanks in advance ... i have HS2 since 3 or 4 months now .. just begin to use it ! 
|
Events are the foundation of HomeSeer. You should be able to run hundreds of well written events on the lowest end server and not have an issue. Therefore I wouldn't worry about adding 2 new events. Just so you know you can also script your logic just as you outlined with a few minor modifications using vbscript.
__________________
-Rupp
|

September 13th, 2009, 02:31 PM
|
|
Seer Deluxe
|
|
Join Date: Feb 2009
Location: France
Posts: 178
|
|
that's the problem ... i don't know scripting in VBscript ... only Unix shell ...
__________________
|

September 13th, 2009, 03:40 PM
|
 |
Super Seer
|
|
Join Date: May 2007
Location: Nova Scotia, Canada
Posts: 1,760
|
|
The VB version of exactly what you posted would be:
Sub Main
If hs.Ison("a") and hs.ison("b") then
hs.execx10("c","On")
elseif hs.isoff("a") and hs.ison("b") then
hs.execx10("c","Off")
endif
End Sub
Save this as whatever.txt
Naturally, substitute existing devices for a,b,c. Ie: "A1","B2","C3"
__________________
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.
|

September 14th, 2009, 04:47 AM
|
|
Seer Deluxe
|
|
Join Date: Feb 2009
Location: France
Posts: 178
|
|
yes it works,
Just after this i have done my first little script : putting the HS2 uptime in a virtual device !!!
Even if i hate the black point before the Uptime datas, it's ok for me ( see the screenshot ) ...
I saw that doing a script is better than creating many many conditions events ...
So i'll continue but i haven't found the test for example : "IF data is between X Degrees and Y Degrees" or another : More than X Degrees ... only found : Is device is Equal at X ...
__________________
|
| 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 12:07 PM.
|