Announcement

Collapse
No announcement yet.

DS10A display status and a bit of scripting

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

    DS10A display status and a bit of scripting

    I am using DS10A and the W800RF to get the status of a garage door.
    When the door is open the status = Normal (Magnets are together)
    When the door is closed the status = Alert (Magnets are apart)

    What is the easiest way to have HS display:
    When the door is open the status = Door Open
    When the door is closed the status = Door Close

    I tried following HS's help but the Display -> Set Status To Field is not displayed with DS10A's using W800RF.

    Also how would I then script this assuming my DS10A's device is ^1?
    (This event/script would run once at 10pm everynight)
    If ^1 = Door Open
    turn A1 to On ' Triggers universal module to close door
    Wait 60 seconds ' Time it would take for the door to attempt to close and bounce back to open if something was in the way
    If ^1 = Door Open
    Speak that something is in the way of the garage door.
    endif
    endif

    Thanks,
    Chris

    #2
    Try this-replace device codes with your device codes
    Tim

    PHP Code:
    Sub main()

    Dim DSens

    DSens 
    hs.DeviceValue("]5")

    if 
    DSens =0  then

    hs
    .SetDeviceString "]5""Door Closed"

    elseif DSens =1  then

    hs
    .SetDeviceString "]5""Door Open"

    end if

    end sub 
    Last edited by fungun; May 18, 2005, 11:46 PM.
    FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

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

    Comment


      #3
      Thanks, this works great.

      Comment


        #4
        mcsMovement plugin simplifies management of device strings based upon W800 and other Homeseer two-state devices. It gives icons and text for each of the states. For devices that signal physical location indications such as motion sensors, then it will also generate the direction of movement devices and populate with icons for inclusion in things such as UltraView.

        There is also a string manager plugin that provide a similiar capabiltiy to assist in managing the displayed content based upon a device's status.

        If you just have a few devices then the scripting approach is the simpliest.

        Comment


          #5
          Very nice!

          No, I haven't seen that. I have since loaded it and started to play around with it. This is very nice!
          Best part about it... it's free
          Thanks,
          Chris

          Comment

          Working...
          X