[ANSWERED]: Add DSBO5 Temp Display in Touch?

Posted on
Thu Feb 12, 2015 12:06 pm
thomasw offline
Posts: 135
Joined: Feb 13, 2011

[ANSWERED]: Add DSBO5 Temp Display in Touch?

Hi All,
I just bought the Aeon Labs Multi Sensor DSBO5 from the Indigo store, and it works quite well.
I just wonder how I can get the temp to display in Indigo Touch on my iphone?
FWIW, my Indigo Touch says it is version 1.7.0, and my iphone 5 is still running ios 6.1 (jailbroken), and Indigo on my mac is the newest Pro version 6.0.20
This isn't a huge deal, but it would be nice to be able to look in Indigo Touch and see what the Temp reading is
from the DSBO5.
Is there a way to create a variable that would display the temp reading from the DSBO5?
Thanks
-Tom

Posted on
Thu Feb 12, 2015 12:30 pm
thomasw offline
Posts: 135
Joined: Feb 13, 2011

Re: Add DSBO5 Temp Display in Touch?-ANSWERED

Hello again,
Well, I think I answered this myself.
First, I created a new variable named "temp_outside"
Then I created a new trigger, and told it to trigger whenever the DSBO5 temp sensor value has any change. The action is to Execute a Script

device_id = 123456789 #'Temperature' *NOTE- put in your own device ID here
tempF = indigo.devices[device_id].sensorValue
indigo.variable.updateValue("temp_outside", str(tempF))

This works, and I can now read the temp on Indigo Touch under Variables/Current Modes

Disclosure: I modified a Python Script for this that "autolog" wrote on another post on here. So the real credit goes to him!
Matt, you can mark this one as answered.
Thanks,
-Tom

Posted on
Fri Feb 13, 2015 9:33 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Add DSBO5 Temp Display in Touch?

Hi Tom,

Your script is a perfectly acceptable way to do it, but note that there is a UI action that will copy any arbitrary Indigo device state into an Indigo variable value.

The next release of Indigo Touch will also show all the sensor values natively, so you won't need the additional logic once that is released.

Image

Posted on
Fri Feb 13, 2015 12:21 pm
AEshton offline
User avatar
Posts: 29
Joined: Oct 16, 2014
Location: The Netherlands

Re: [ANSWERED]: Add DSBO5 Temp Display in Touch?

The next release of Indigo Touch will also show all the sensor values natively, so you won't need the additional logic once that is released.


Great! Another Tiny Teaser Sneak.....

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests