Announcement

Collapse
No announcement yet.

Help with open/closed statuses and speak results only if open

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

  • #16
    Originally posted by keithj69 View Post
    Adjustments made as the door sensors were 255 for open and the windows were 100. Thank you. Working great now. Thank you for the help.
    Changing the script lines from "if hs.DeviceValue(devw) = 1 then" to "if hs.DeviceValue(devw) > 0 then" would probably work for both.
    Randy Prade
    Aurora, CO
    Prades.net

    PHLocation - Pushover - EasyTrigger - UltraECM3 - Ultra1Wire3 - Arduino

    Comment


    • #17
      Hi,

      Trying to get your script to work but getting an error in the log

      "VB.Net script exception(0), re-starting: Object reference not set to an instance of an object. "

      This is my very first script ever run, so perhaps I'm missing some basic libraries ??

      Comment


      • #18
        Since moving to windows 10 I am getting the following errors in the logs trying to run this vb. Any ideas what is going on with this? I am clueless.
        Code:
         
        May-16 10:24:39 AM Error Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\doors_windows.vb: Expression expected.
        May-16 10:24:39 AM Error Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\doors_windows.vb: Namespace or type specified in the Imports 'System.Core' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

        Comment

        Working...
        X