Announcement

Collapse
No announcement yet.

How to reset DeviceString to On/Off

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

    How to reset DeviceString to On/Off

    I accidentally set the device string on one of my HS devices to a text string. Is there a way to "reset" it so it again shows On/Off/Dim status?? I had hoped setting it to nothing ("") would work, but it had no affect.

    [EDIT]
    I set the hs.SetDeviceStatus to null and it worked. Not sure why hs.SetDeviceStatusByName didn't work for me, mayby I had a typo....
    Last edited by CJVann; August 7, 2011, 09:26 PM.

    #2
    hs.setDeviceString("A1", Clear) works as well as hs.setDeviceString("A1","")
    Last edited by Rupp; August 8, 2011, 10:35 AM.
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      Originally posted by Rupp View Post
      hs.setDeviceString("A1","Clear") works as well as hs.setDeviceString("A1","")
      hs.setDeviceString("A1","Clear") sets my devicestring to "Clear"
      What voodoo version of HS are you running??
      HS4Pro on a Raspberry Pi4
      54 Z-Wave Nodes / 21 Zigbee Devices / 108 Events / 767 Devices
      Plugins: Z-Wave / Zigbee Plus / EasyTrigger / AK Weather / OMNI

      HSTouch Clients: 1 Android

      Comment


        #4
        I just run this as an immediate script command and it works to reset devices that I'm re-purposing.

        &hs.setDeviceString "a1", clear
        Marty
        ------
        XPpro SP3 /w HS Standard 2.5.0.80, HSTouch Server - 1.0.0.70, HSTouch Client 1.0.0.73 HSTouch Android - 1.0.0.2, HSTouch iPhone - 1.0.0.2
        Playing with HS3 a bit but it's just play at this point.

        Comment


          #5
          Originally posted by nightwalker View Post
          I just run this as an immediate script command and it works to reset devices that I'm re-purposing.

          &hs.setDeviceString "a1", clear
          ah - now THAT works - without the quotes around the "clear"
          HS4Pro on a Raspberry Pi4
          54 Z-Wave Nodes / 21 Zigbee Devices / 108 Events / 767 Devices
          Plugins: Z-Wave / Zigbee Plus / EasyTrigger / AK Weather / OMNI

          HSTouch Clients: 1 Android

          Comment


            #6
            Originally posted by rmasonjr View Post
            hs.setDeviceString("A1","Clear") sets my devicestring to "Clear"
            What voodoo version of HS are you running??
            Whoops, typo. Fixed in the original post.
            💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

            Comment

            Working...
            X