Author Topic: How to trigger actions based on analog (Temp) values?  (Read 743 times)

davidoh69

  • Newbie
  • *
  • Posts: 7
How to trigger actions based on analog (Temp) values?
« on: July 03, 2010, 11:47:35 PM »
I just received my new ioBridge - now trying to get some basic actions triggered with no success.

I'd like to trigger an email when the temperature reading is >80F and a different email when temp is <75F.

I tried using different combinations of Analog Input messaging and "Push update on analog trigger and reset" with no luck.

Can anyone give me some pointers?

iobridge

  • Administrator
  • Hero Member
  • *****
  • Posts: 668
    • ioBridge Support
Re: How to trigger actions based on analog (Temp) values?
« Reply #1 on: July 04, 2010, 01:26:22 AM »
This might help:

http://iobridge.net/wiki/actions/analog-input-messaging

We wrote a section the Wiki that addresses analog messaging. There is procedure that might help you create an action.

The trick is to figure out the analog value for a temperature that you want.
ioBridge Support
Community Team

davidoh69

  • Newbie
  • *
  • Posts: 7
Re: How to trigger actions based on analog (Temp) values?
« Reply #2 on: July 04, 2010, 01:36:49 AM »
I don't understand 2 things:

1. What does the analog reset value do?  Must it be higher or lower than the trigger value (which is set in scaled value - F for my application) ?

2. Why is this being set on the module and then set again in server actions (with the raw value to trigger on)?  Isn't the module polled periodically, so why does a "push" have to happen?

iobridge

  • Administrator
  • Hero Member
  • *****
  • Posts: 668
    • ioBridge Support
Re: How to trigger actions based on analog (Temp) values?
« Reply #3 on: July 05, 2010, 09:37:07 PM »
By default the module is not polled automatically.

You can set the module to update it's analog value to the server at a regular time period, by selecting "Push Analog Input Value Periodically" under the "Channel Push Update Mode" setting.

You can also use a trigger/reset for analog values. This means the value will only send it's analog value to the iobridge servers when the analog value exceeds the trigger value. It will not send another value until the analog value hits the reset value. Then the cycle repeats. The reset can be above the trigger for the times you need to trigger on a falling value.
ioBridge Support
Community Team

davidoh69

  • Newbie
  • *
  • Posts: 7
Re: How to trigger actions based on analog (Temp) values?
« Reply #4 on: July 06, 2010, 01:22:15 AM »
i think i understand now.  It appears that the only way to get just one action triggered when a threshold is exceeded (and continues to be over the threshold) is to use the "Push update on analog trigger and reset", or else I'm going to get a continuous string of actions.  The only problem with this is that the module only allows for one threshold per channel, so I can have either a high or low threshold (and reset).  Thus to get both a high and low threshold, I'll need to use two channels set up separately and connected to the same sensor.

jason

  • Administrator
  • Hero Member
  • *****
  • Posts: 502
    • ioBridge.com
Re: How to trigger actions based on analog (Temp) values?
« Reply #5 on: July 06, 2010, 09:19:24 AM »
Unless you have a really old version firmware (C2), the IO-204 will push an update to the server on both a trigger and a reset.  Although I think you'll need to create two "actions"...  one for values above the trigger and another for values below the reset point.
Jason Winters
ioBridge Developer