Announcement

Collapse
No announcement yet.

3M50 tstat script help

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

    3M50 tstat script help

    Hi I have a wifi Thermostat running a .thm script and I am tring to add GetOperating to the script but not having any luck any one see what I am doing incorrectly?

    PHP Code:
    Function GetOperating(device)
        
    GetOperating data(device1)
        If 
    GetOperating=True Then
            Status
    ="Running"
            
    Else
            
    Status="Off"
        
    END IF
        
    hs.WritelogEx "***3M50*WiFi***""GetOperating:"Status&"Test","#0000FF"
    END Function 
    Attached Files
    HS2 Environment
    Zotac 1.83 GHz Quadcore
    HomeSeer Way2Call
    Netiom-Xap board
    opnode 1-wire 1.2.7
    Plug-In's
    WeatherXML 1.0.0.32
    Pwr Link USB 1.0.0.13
    mcsTemp V6.2.0.14
    mcsXap V3.0.0.0/3.0.0.20
    IM Connector 4.87.2.5
    Sip Connector 2.56.2.4
    RFXCOM 15.0.0.22
    Odroid X2
    Asterisk 11.5.1
    FreePBX 2.11.0.42
    WebMin 1.720
    Xap Switchboard by Mi4

    There is no place Like 127.0.0.1

    #2
    Hi,

    Looking at your script, you call a function called "data":

    Code:
    GetOperating = data(device, 1)
    However, looking at the whole script, there is no function called "data". The other functions in the script that return values use a function called "GetReq":
    Code:
    s = GetReq(device, mode)
    Cheers
    Al
    HS 4.2.8.0: 2134 Devices 1252 Events
    Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

    Comment


      #3
      Thanks Sparkman had to do a little more but you got me thinking.
      Found out that the WiFi tstat does not return Stage Status but does return fan status like currently running ON and Off so I used that as my status to know if the HVAC is currently running. I am attaching the script if any one else should find it useful.

      drop the .txt off the end of the file before putting it into your HS scripts directory and create a thermostat device on your status page.
      You will also need to download and put curl.exe and the dll files in the homeseer folder in order for this to work. I got Curl from http://curl.haxx.se/download.html
      In Setup device types create Device Type and select the thermostat script and check thermostat device.
      Attached Files
      HS2 Environment
      Zotac 1.83 GHz Quadcore
      HomeSeer Way2Call
      Netiom-Xap board
      opnode 1-wire 1.2.7
      Plug-In's
      WeatherXML 1.0.0.32
      Pwr Link USB 1.0.0.13
      mcsTemp V6.2.0.14
      mcsXap V3.0.0.0/3.0.0.20
      IM Connector 4.87.2.5
      Sip Connector 2.56.2.4
      RFXCOM 15.0.0.22
      Odroid X2
      Asterisk 11.5.1
      FreePBX 2.11.0.42
      WebMin 1.720
      Xap Switchboard by Mi4

      There is no place Like 127.0.0.1

      Comment


        #4
        FYI, I have a plugin in the available now that handles these wifi thermostats. It's call radiothermostat. If you want to try that and see if it will get you working.

        Comment

        Working...
        X