PhanTomiZ Posted June 20, 2018 Posted June 20, 2018 Hello, I would like to get any of the sensor information into a variable so I can do some math on them. For example, I would like to get the "Temperature" put into a variable, every time the sensor temperature changes. I have a program that works well to get whatever sensor information sent in a notification and would now like to be able to put this information into a variable. For example, I would like to take samples of temperatures from two locations (from two separate variables). Take these two variables and come up with an average and put this average into another variable. I could them use this "average" variable to adjust temperatures of my TStat. Thanks PhanTomiZ
Bumbershoot Posted June 20, 2018 Posted June 20, 2018 4 hours ago, PhanTomiZ said: Hello, I would like to get any of the sensor information into a variable so I can do some math on them. For example, I would like to get the "Temperature" put into a variable, every time the sensor temperature changes. I have a program that works well to get whatever sensor information sent in a notification and would now like to be able to put this information into a variable. For example, I would like to take samples of temperatures from two locations (from two separate variables). Take these two variables and come up with an average and put this average into another variable. I could them use this "average" variable to adjust temperatures of my TStat. Thanks PhanTomiZ Getting the values from the Multisensor into a variable is pretty easy. I do this with humidity from one of my sensors. In this program, the variable name is $s.SW_008Humidity. Here's the program: ZW_008 Humidity - [ID 00B8][Parent 007E] If 'Devices / dirOffice / ZW 008 Multilevel Sensor' Humidity >= 1% Then $s.ZW_008Humidity = 'Devices / dirOffice / ZW 008 Multilevel Sensor' Humidity % Else - No Actions - (To add one, press 'Action') The only trick to this involves clicking on the little arrow in the Admin Console just to the right of the "=" sign in the screenshot. Clicking on this allows you to cycle through the possibilities that you can set the variable to.
PhanTomiZ Posted June 21, 2018 Author Posted June 21, 2018 Oops, forgot to say I'm still using V4.6.2. I guess it works ok using the Alpha.
GlowingHair Posted June 21, 2018 Posted June 21, 2018 I use network resources since I am still 4.6.2, also. If using temperature, you will need a program to divide the value in half.
Bumbershoot Posted June 21, 2018 Posted June 21, 2018 12 hours ago, PhanTomiZ said: Oops, forgot to say I'm still using V4.6.2. I guess it works ok using the Alpha. Sorry, I've been using the 5.x.x series so long that I forget that not everyone is on it. And yes, it works beautifully in the Alpha.
PhanTomiZ Posted June 22, 2018 Author Posted June 22, 2018 12 hours ago, GlowingHair said: I use network resources since I am still 4.6.2, also. If using temperature, you will need a program to divide the value in half. Still access my ISY through an open port using port forwarding. Not really sure how I can use network resources. What else can I do with it? Examples? Thanks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.