Announcement

Collapse
No announcement yet.

How to clear a Device String that won't clear

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

    How to clear a Device String that won't clear

    So some time ago I was messing with script-setting device strings directly. During this process I set a string on a device. After that I tried clearing it by setting it to nothing (""). But that appears to not have worked, I just happned to notice that the string just shows "No Status". And it's persistent no matter what else I do with the device.

    Any ideas how to properly clear the string so it inherits it's contents appropriately? I guess I could remove and re-add the device, but I'd rather avoid that if I can help it....

    Paul

    #2
    The manual states: Note that this does not affect the actual status/value for the device.

    The easiest thing to do would be to use an immediate script in an event and set the device string to a space " ". This will "clear" the device string. Replace 1234 with your device ref.

    &hs.SetDeviceString(1234, " ", False)

    Comment


      #3
      Ahhh, that did the trick. I believe I had tried to set it up with a completely empty string (no space). This fixed it. Many thanks!

      Comment

      Working...
      X