Announcement

Collapse
No announcement yet.

Set device value from device string

Collapse
X
 
  • 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,

    Brian




    #2
    It would be easier to advise if we could see what you are doing, now...
    HomeSeer Version: HS4 Pro Edition 4.2.18.1
    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 4.0.5.37,AmbientWeather 3.0.1.9,Big6 3.34.0.0,BLBackup 2.0.63.0,BLGData 3.0.55.0,BLLock 3.0.39.0,BLUPS 2.0.26.0,Device History 3.3.1.0,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,HSBuddy 3.30.1003.1,JowiHue 4.0.8.7,LG ThinQ 4.0.24.0,rnbWeather 4.4.0.0,SDJ-Health 3.1.1.4,TPLinkSmartHome4 2022.12.30.0,UltraCID3 3.0.6681.34300,Z-Wave 3.0.11.0 2

    Comment


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

      Comment

      Working...
      X