Can HSTouch work with the HS.CreateVar, HS.SaveVar and HS.GetVar to display or change values in global variables? If yes, how would you configure a text item in HSTouch to display the value of a variable?
Announcement
Collapse
No announcement yet.
Can HSTouch work with global variable values
Collapse
This topic is closed.
X
X
-
Originally posted by MPodlin View PostSo what you are saying is the answer is "NO", it will only work with devices, not user defined global variables.
I know, not a lot of help for what you are trying to achieve.sigpic
A founder member of "The HA Pioneer Group" otherwise known as the "Old farts club!"
Comment
-
Since a text element can have a script assigned to it in the text field, you should be able to enter the following in the text field of a text element;
[$SCRIPT=&hs.GetVar("MyVar")]
Where MyVar is a variable you have created elsewhere via a script. I have not tried this yet, but there is no reason why it would not work....
Harry
Comment
-
Originally posted by vossenh View PostSince a text element can have a script assigned to it in the text field, you should be able to enter the following in the text field of a text element;
[$SCRIPT=&hs.GetVar("MyVar")]
Where MyVar is a variable you have created elsewhere via a script. I have not tried this yet, but there is no reason why it would not work....
Harry
Comment
Comment