Announcement

Collapse
No announcement yet.

Why doesn't this work?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Why doesn't this work?

    Hi All,
    This simple script should read a value from one device (2322) and set that value to another device (name of Fitness Euro TRV setpoint").

    Public Sub Main(ByVal Parm As String)
    hs.WriteLog("Info", "Starting...")
    Dim devVal = hs.DeviceValue(2322) 'This is the Secure Thermostat set temperature
    hs.WriteLog("Info", "Fitness thermostat set temperature is:" & devVal)
    hs.SetDeviceValueByName("Fitness Euro TRV setpoint", devVal) 'This is my destination TRV
    hs.WriteLog("Info", "Finished! TRV is set")
    End Sub


    It seems to work but not as I expect.
    When it runs, I can see the value of the destination device change correctly from the HS4 UI. However, the destination physical device does not actually change.

    It seems that the software device in the HomeSeer interface is correctly set but I then need to press the "SUBMIT" button on the HS4 UI before the physical device receives the instruction.

    What am I missing?

    Thanks guys

    PS I have got it an alternative solution using device "Association" - but I thought this script should work.


    #2
    I believe you'll need to use CAPI control to manipulate the physical device.
    -Wade

    Comment


      #3
      tenScriptAid can help you construct your CAPI calls
      tenholde

      Comment

      Working...
      X