Announcement

Collapse
No announcement yet.

CM11 on HS2

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

    CM11 on HS2

    I get this in my log
    Code:
    1/11/2015 5:40:00 PM ~!~Event~!~Running script in background: x10status.txt
    1/11/2015 5:40:00 PM ~!~Warning~!~The X10InterfaceStatus command has been deprecated - please query the plug-in directly for its status.
    1/11/2015 5:40:00 PM ~!~Info~!~The X10 Interface status is: 0
    So how do I "query the plug-in directly for its status"

    Thanks,
    Tim
    FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

    HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

    #2
    Can you post your script?

    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
      Code:
      sub main()
      
      dim status
      
      status = hs.X10InterfaceStatus
      hs.WriteLog "Info","The X10 Interface status is: " & cstr(status)
      if status = 0 then
      hs.SetDeviceString "s4", "NO ERRORS"
      elseif status = 1 then
      hs.SetDeviceString "s4", "ERROR SENDING"
      elseif status = 2 then
      hs.SetDeviceString "s4", "INIT ERROR"
      end if
      
      
      
      
      end sub
      Here ya go.

      Thanks,
      Tim
      FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

      HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

      Comment


        #4
        Hi Tim,

        Try this:

        Code:
        status = hs.Plugin("X10 CM11A/CM12U").InterfaceStatus
        You may have to change X10 CM11A/CM12U to whatever the plugin is called in HS2.

        Cheers
        Al
        HS 4.2.8.0: 2134 Devices 1252 Events
        Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

        Comment


          #5
          Tried it, but got this error.

          Code:
          1/12/2015 1:57:58 PM ~!~Event~!~Running script in background: x10status.txt
          1/12/2015 1:57:59 PM ~!~Error~!~Running script, script run or compile error in file: x10status.txt424:Object required: 'hs.Plugin(...)' in line 5 More info: Object required: 'hs.Plugin(...)'

          Name of the plugin on the Interfaces tab under Setup - X10 CM11A/CM12U
          Name of the dll in the HS2 root folder - HSPI_CM11A


          Code:
          sub main()
          
          dim status
          
          status = hs.Plugin("X10 CM11A/CM12U").InterfaceStatus
          hs.WriteLog "Info","The X10 Interface status is: " & cstr(status)
          if status = 0 then
          hs.SetDeviceString "s4", "NO ERRORS"
          elseif status = 1 then
          hs.SetDeviceString "s4", "ERROR SENDING"
          elseif status = 2 then
          hs.SetDeviceString "s4", "INIT ERROR"
          end if
          
          end sub
          Thanks,
          Tim
          FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

          HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

          Comment


            #6
            Maybe try
            Code:
            Set Status = ....
            With the set statement, you may have to get rid of the Dim statement as well.
            HS 4.2.8.0: 2134 Devices 1252 Events
            Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

            Comment


              #7
              Nope, same error.
              I did both, Set Status =, and got rid of the Dim statement.

              Thanks,
              Tim
              FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

              HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

              Comment

              Working...
              X