Page 1 of 1

2 devices same value event trigger?

Posted: Wed Jul 21, 2010 12:25 pm
by PietjeNL
Is there a way to run a event when 2 sensors get the same value as trigger?
I know its possible with on/off but now its about temperature sensors inside and outside.
This way i want to trigger a event that if the outside temperature goes equal to the inside temperature i need to close the windows/doors if sensor says they are open, to keep it cooler inside then outside after letting the colder air in @ night.

Re: 2 devices same value event trigger?

Posted: Fri Jul 23, 2010 12:43 pm
by PietjeNL
From the homeseer board i got this reply:

&If hs.devicevalue("T1") >= hs.devicevalue("T2") Then hs.triggerevent "Temp Alarm"

Works great, when inside temperature is equal to outside the event gets triggered.

Re: 2 devices same value event trigger?

Posted: Fri Jul 23, 2010 6:13 pm
by Alexander
Good to see that you still answer your own question for others!

Re: 2 devices same value event trigger?

Posted: Fri Jul 23, 2010 8:25 pm
by PietjeNL
Always keep searching if i can find the answers faster then u can reply :D
So far the homeseer board was faster after 80+ views here, and now i try to educate u so u dont have to search for the answer :wink:

Re: 2 devices same value event trigger?

Posted: Thu Jul 29, 2010 10:19 pm
by Louis
That line looks logical, but where do you put it?
Is it an event-trigger or a condition for an event-trigger?
Or is it an event-action, or part of a script (if so then what is the trigger)?

Re: 2 devices same value event trigger?

Posted: Fri Jul 30, 2010 8:32 pm
by PietjeNL
Got this as a "Recurring every 5 minute(s)" that runs this as script: &If hs.devicevalue("\9") >= hs.devicevalue("\11") Then hs.triggerevent "Temp Alarm"
This means it will trigger a manual only event called: Temp Alarm