Announcement

Collapse
No announcement yet.

hs.SetDeviceStatus error

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

    hs.SetDeviceStatus error

    Could someone please put me out my misery.....I get

    <TABLE cellSpacing=2 cellPadding=0 width="100%" border=0><TBODY><TR><TD class=LOGType0 align=left colSpan=3>Error 1 </TD><TD class=LOGEntry0 align=left colSpan=8>Running script Status test.vb :method not found </TD></TR></TBODY></TABLE>

    Where am I going wrong with this?

    dim virt_device as string
    sub main()
    virt_device ="x7"
    hs.SetDevicestatus (virt_device,2)
    End Sub
    Thanks

    Andy

    #2
    You need this as you sub definition.
    Sub Main(parm as object)
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      you also need to remove the space between the hs.setDeviceStatus and the open parens...
      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
        DOh! Thanks guys

        Talk about looking but not seeing

        Comment

        Working...
        X