Announcement
Collapse
No announcement yet.
Help with EasyTrigger Scripting
Collapse
X
-
Help with EasyTrigger Scripting
I'm trying to use a script to verify if when an event runs it is in our out of a time schedule and then set a value for a virtual device based on that. I can't seem to get it to work.
Here what i'm using:
Code:public object Main(object[] Parms) { bool isInSchedule = (bool) hs.PluginFunction("EasyTrigger", "", "IsTimeInScheduleTimeRange", new object[] { "Dakboard_Dog_Display" }); hs.WriteLog("EasyTrigger Script", "IsInSchedule = " + isInSchedule.ToString()); return 0; }
Feb-17 8:18:40 PM Error Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\test3.vb: Syntax error. Feb-17 8:18:40 PM Error Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\test3.vb: Statement cannot appear outside of a method body/multiline lambda. Feb-17 8:18:40 PM Error Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\test3.vb: Declaration expected. Feb-17 8:18:40 PM Error Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\test3.vb: Declaration expected. Feb-17 8:18:40 PM Error Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\test3.vb: Syntax error. Feb-17 8:18:40 PM Error Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\test3.vb: Keyword is not valid as an identifier. Feb-17 8:18:40 PM Error Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\test3.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.
I'm sure it's something simple that i'm not doing.Tags: None
Leave a comment: