Announcement

Collapse
No announcement yet.

UltraView2 & Thermostat

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

    UltraView2 & Thermostat

    Hello

    When selecting a temp setpoint it seems that always the value 0 is returned (iCmdVal) and setpoint cannot be changed.

    log extract:
    4/18/2006 1:46:52 AM Info Sending command to Livingroom Thermostat (H1, SetSetPoint, 0)
    4/18/2006 1:46:30 AM Debug BuildDeviceArray() took 4.8456384000001 seconds

    anybody else has this problem?

    TX

    Fred

    #2
    Caused by a simple code error. Backup your ultraview2.txt file, and replace it with the one provided here.

    The code error was fixed within the ProcessClick function:
    PHP Code:
    '
    Determine what to do based on Control Level passed to function
    '
    Select Case iControlLevel
      Case 1
        '
        ' Thermostat selected
        '
        
    If lCase(objElem.Value) = "set" Or lCase(objElem.Value) = "set cool" Then
          strPostData 
    strPostData "&temp_value=" document.all.temp_value.value
        End 
    If
      Case 
    2
        
    '
        ' 
    On/Off/Dim device selected
        
    '
        If lCase(objElem.Value) = "dim" Then
          strPostData = strPostData & "&dim_value=" & document.all.dim_value.value
        End If
      Case Else
        '
        ' Nothing to do here...You may need to modify if you added/changed control levels
        '        
    End Select 
    Regards,
    Ultrajones
    Attached Files
    Plug-ins: UltraMon, UltraM1G, UltraCID, Ultra1Wire, UltraLog, UltraWeatherBug, UltraPioneerAVR, UltraGCIR

    Comment

    Working...
    X