Announcement

Collapse
No announcement yet.

Nested script statements in HS?

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

    Nested script statements in HS?

    Hi,

    Is a single script statement like this possible?

    &hs.setdevicestring "T60", (hs.devicevalue "W43")

    Result: the devicevalue of W43 is put in the device-string of T60.

    Any other way to do this? Don't want to create another .vb or .txt script

    Thank you!
    DJ

    #2
    Originally posted by DJF3 View Post
    Hi,

    Is a single script statement like this possible?

    &hs.setdevicestring "T60", (hs.devicevalue "W43")

    Result: the devicevalue of W43 is put in the device-string of T60.

    Any other way to do this? Don't want to create another .vb or .txt script

    Thank you!
    DJ
    yes you can do this, but here is the correct syntax

    &hs.setdevicestring "T60", hs.devicevalue("W43")

    try it from the control/immediate window if you want
    Mark

    HS3 Pro 4.2.19.5
    Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
    Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
    Platform: Windows Server 2022 Standard, i5-12600K/3.7GHz/10 core, 16GB RAM, 500GB SSD

    Comment


      #3
      Thank you!

      DJ

      Comment

      Working...
      X