I am trying to build some HSTocuh screens for my two thermostats and have run into a few scripting issues that I need help with. I have essentially no knowledge of programming or scripting so hopefully these are simple things that I just don't know how to do correctly yet.
1. Hold/Run buttons - I got the run button to work just fine. For the hold button, I have two text boxes on the screen. One to type in the temp I want to hold at and one to type in the length of time.
I have the hold button action set to: "Run a HomeSeer script with values from elements(s)". I have ScriptParameter1 set to my first text box of HoldTemp1 and Script Parameter2 set to my second text box of HoldTime1. I don't know how to reference these Parameters in the script. This is what I have so far: "&hs.Plugin("BLStat").SetHoldOn(1). This works for changing BLStat into hold mode just fine but I don't know how to integrate the parameters. I've tried a few different ways to reference it that I can think of but it doesn't work.
2. BLStat Hold/Run status. I would like my HSTouch screen to display the status of the BLStat mode - if the plug in is in hold or run. I see that there is a script of "Dim theMode As Integer = hs.Plugin("BLStat").GetHoldMode(1,1)" but I don't know how to utilize that to show the mode in my text label.
Any help on either of these would be appreciated. Thanks!
1. Hold/Run buttons - I got the run button to work just fine. For the hold button, I have two text boxes on the screen. One to type in the temp I want to hold at and one to type in the length of time.
I have the hold button action set to: "Run a HomeSeer script with values from elements(s)". I have ScriptParameter1 set to my first text box of HoldTemp1 and Script Parameter2 set to my second text box of HoldTime1. I don't know how to reference these Parameters in the script. This is what I have so far: "&hs.Plugin("BLStat").SetHoldOn(1). This works for changing BLStat into hold mode just fine but I don't know how to integrate the parameters. I've tried a few different ways to reference it that I can think of but it doesn't work.
2. BLStat Hold/Run status. I would like my HSTouch screen to display the status of the BLStat mode - if the plug in is in hold or run. I see that there is a script of "Dim theMode As Integer = hs.Plugin("BLStat").GetHoldMode(1,1)" but I don't know how to utilize that to show the mode in my text label.
Any help on either of these would be appreciated. Thanks!
Comment