No announcement yet.

Set device value from device string

  • Filter
  • Time
  • Show
Clear All
new posts

    Set device value from device string

    Folks, it's been forever since I've worked on my HS3 system. It's been in a state of production for many years now, but I need to make a change. (If you read between the lines, you'll see I'm saying I'm extremely rusty with the coding aspect!) I thought it would require very minimal effort, but I have spent a better part of three hours trying to make this happen, and I'm pulling my hair out... I can't afford to lose any more!

    I have a virtual device (id = 997) that has a string of 9.19, but this changes once per day. I now need to do some calculations against that value, but I have had no success setting 997's devicevalue to its string. So, either I'd like to get that working, or find a way to convert the string to a number I can work with in my script, but HS3 doesn't like anything I've tried. (and I've tried a lot!)

    Can someone please show me the way or at least send me down the right path? My script is written in .vb

    Thank you in advance,


    It would be easier to advise if we could see what you are doing, now...
    HomeSeer Version: HS4 Pro Edition
    Operating System: Microsoft Windows 10 Pro - Desktop
    Z-Wave Devices via two Z-Net G3s
    Zigbee Devices via RaspBee on RPi 3b+
    WiFi Devices via Internal Router.

    Enabled Plug-Ins
    AK Weather,AmbientWeather,Big6,BLBackup,BLGData,BLLock,BLUPS,Device History,EasyTrigger,Harmony Hub,HSBuddy 3.30.1003.1,JowiHue,LG ThinQ,rnbWeather,SDJ-Health,TPLinkSmartHome4 2022.12.30.0,UltraCID3 3.0.6681.34300,Z-Wave 2


      Yes a screen grab of the Advanced tab page for the device would be helpful.