Hi all,
I am guessing that this problem isn't specific to EasyTrigger, but I need to use the function IsTimeInScheduledTimeRange and there must be somebody here who can help me!
Previously, everything in my HomeSeer box has been done through simple events (and thank you, Spud, for EasyTrigger!!), but today I needed to write something far more complicated... break out the scripting.
I have everything working exactly as I want it, except... For love nor money, I simply can't get hs.PluginFunction("EasyTrigger","","IsTimeInScheduledTimeRan ge"............. working. I have Googled as far as I can and tried umpteen different variations, but none of the following work:
BoilerSchedule = nhs.PluginFunction("EasyTrigger", "", "IsTimeInScheduledTimeRange", New Object[] {"Boiler"})
BoilerSchedule = nhs.PluginFunction("EasyTrigger", "", "IsTimeInScheduledTimeRange", NewObject() {"Boiler"})
BoilerSchedule = nhs.PluginFunction("EasyTrigger", "", "IsTimeInScheduledTimeRange", NewObject({"Boiler"}))
BoilerSchedule = nhs.PluginFunction("EasyTrigger", "", "IsTimeInScheduledTimeRange", "Boiler")
BoilerSchedule = nhs.PluginFunction("EasyTrigger", "", "IsTimeInScheduledTimeRange", {"Boiler"})
BoilerSchedule = nhs.PluginFunction("EasyTrigger", "", "IsTimeInScheduledTimeRange", ["Boiler"])
(Googling seems to imply that I need to use 'nhs.PluginFunction' and not 'hs.PluginFunction', but it still doesn't work whichever I use).
Essentially, when there is a "{" in the line, I get the compilation error "Invalid character" and when there isn't a "{" in the line, I get "Expected ')'".
I am sure that I am missing something very simple, but I simply can't work out what the correct structure is from the docs and from Googling.
Please, somebody, can you put me out of my misery and point me in the right direction?
Nicholas.
HS3 Pro Edition 3.0.0.318 (Windows)
EasyTrigger 3.0.0.33
I am guessing that this problem isn't specific to EasyTrigger, but I need to use the function IsTimeInScheduledTimeRange and there must be somebody here who can help me!
Previously, everything in my HomeSeer box has been done through simple events (and thank you, Spud, for EasyTrigger!!), but today I needed to write something far more complicated... break out the scripting.
I have everything working exactly as I want it, except... For love nor money, I simply can't get hs.PluginFunction("EasyTrigger","","IsTimeInScheduledTimeRan ge"............. working. I have Googled as far as I can and tried umpteen different variations, but none of the following work:
BoilerSchedule = nhs.PluginFunction("EasyTrigger", "", "IsTimeInScheduledTimeRange", New Object[] {"Boiler"})
BoilerSchedule = nhs.PluginFunction("EasyTrigger", "", "IsTimeInScheduledTimeRange", NewObject() {"Boiler"})
BoilerSchedule = nhs.PluginFunction("EasyTrigger", "", "IsTimeInScheduledTimeRange", NewObject({"Boiler"}))
BoilerSchedule = nhs.PluginFunction("EasyTrigger", "", "IsTimeInScheduledTimeRange", "Boiler")
BoilerSchedule = nhs.PluginFunction("EasyTrigger", "", "IsTimeInScheduledTimeRange", {"Boiler"})
BoilerSchedule = nhs.PluginFunction("EasyTrigger", "", "IsTimeInScheduledTimeRange", ["Boiler"])
(Googling seems to imply that I need to use 'nhs.PluginFunction' and not 'hs.PluginFunction', but it still doesn't work whichever I use).
Essentially, when there is a "{" in the line, I get the compilation error "Invalid character" and when there isn't a "{" in the line, I get "Expected ')'".
I am sure that I am missing something very simple, but I simply can't work out what the correct structure is from the docs and from Googling.
Please, somebody, can you put me out of my misery and point me in the right direction?
Nicholas.
HS3 Pro Edition 3.0.0.318 (Windows)
EasyTrigger 3.0.0.33
Comment