Announcement

Collapse
No announcement yet.

I am happy with HS3, but

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

  • I am happy with HS3, but

    I am very pleased with HS3 after putting off upgrading for a long time. I have got location working almost got CID working but, completely stuck on scripting and the manual is not a lot of good.

    I only need one scripting command translated from HS2 to HS3, it is a basic one. in HS2 the command was
    Code:
    if hs.ison ("T19") then
    the equiv was is off, apparently not supported in HS3 although the manual say's it is, the programme has other ideas.

    Anyone know how to use those commands in HS3 and make me very happy?
    sigpic
    A founder member of "The HA Pioneer Group" otherwise known as the "Old farts club!"
    HomeSeer 3 V 3.0.0.318 with ALEXA (AKA Amazon Echo)
    BL Radar V2.0.217; BLRF V2.0.85.0; HS Touch V3.0.0.1034 X10 V3.0.0.42; PHLocation V3.0.0.38; Zwave V3.0.1.110; X10 V3.0.0.42
    BLBackup V2.0.39;ImperiHome3.0.0.20 All on Windows XP Pro

  • #2
    isoff uses the device refID.

    http://homeseer.com/support/homeseer...isoff&criteria=

    isOff(n)

    Where n is a number not a device address.


    According to the script reference ison also uses the device refID, not the device address.
    http://homeseer.com/support/homeseer...=ison&criteria=


    As a general rule forget the device address and think device ref ID.
    --
    Jeff Farmer
    HS 3, HSPhone
    My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
    Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, Pushover, RFXCom, UltraGCIR3, UltraMon3, UltraPioneerAVR3, X10, Z-Wave

    Hardware: GoControl Irrigation Controler, Schlage Lever Lock, Schlage Deadbolt, Way2Call Hi-Phone, RFXCom RFXrec433 Receiver, WGL 800, TI-103, Z-Net, Pioneer 1120, Pioneer 1021, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

    Comment


    • #3
      Gogs I found this site that had a interesting post see http://67.217.100.102/showthread.php?p=1099549

      Specifically this entry

      I have not tried the code below but it looks promising, hope it helps lead you in the right direction

      Code:
      Function IsOnCAPI(ByVal intDevRef As Integer) As Boolean
      Dim intValue = hs.DeviceValueEx(intDevRef)
      
      IsOnCAPI = False
      For Each objCAPIControl As CAPIControl In hs.CAPIGetControl(intDevRef)
      If intValue = objCAPIControl.ControlValue Then
      If LCase(objCAPIControl.Label) = "on" Then
      IsOnCAPI = True
      End If
      Exit For
      End If
      Next
      End Function
      Code:
      Function IsOffCAPI(ByVal intDevRef As Integer) As Boolean
      Dim intValue = hs.DeviceValueEx(intDevRef)
      
      IsOffCAPI = False
      For Each objCAPIControl As CAPIControl In hs.CAPIGetControl(intDevRef)
      If intValue = objCAPIControl.ControlValue Then
      If LCase(objCAPIControl.Label) = "off" Then
      IsOffCAPI = True
      End If
      Exit For
      End If
      Next
      End Function
      Billy Draper

      Comment


      • #4
        Originally posted by CFGuy View Post
        isoff uses the device refID.

        http://homeseer.com/support/homeseer...isoff&criteria=

        isOff(n)

        Where n is a number not a device address.


        According to the script reference ison also uses the device refID, not the device address.
        http://homeseer.com/support/homeseer...=ison&criteria=


        As a general rule forget the device address and think device ref ID.
        Thanks I had realised that vbut still could not get it to work, OH why did they make simple complicated.
        sigpic
        A founder member of "The HA Pioneer Group" otherwise known as the "Old farts club!"
        HomeSeer 3 V 3.0.0.318 with ALEXA (AKA Amazon Echo)
        BL Radar V2.0.217; BLRF V2.0.85.0; HS Touch V3.0.0.1034 X10 V3.0.0.42; PHLocation V3.0.0.38; Zwave V3.0.1.110; X10 V3.0.0.42
        BLBackup V2.0.39;ImperiHome3.0.0.20 All on Windows XP Pro

        Comment

        Working...
        X