I have the latest plugin: 3.0.6319.33899. Just noticed a problem. I use a counter (01) in the Elk as a flag to set watering values for my my sprinkler system.
I use immediate scripts in HSTouch that sets the value to either 0 or 1 or 2.
Here is the immediate script used in HSTouch:
[$SCRIPT=&n(hs.PluginFunction("UltraM1G3", "", "WriteCounterValue", New Object() {"01", "0"}))]
This throws an error in the log: No response/improper response from Elk M1 to command 'cx010000000' error message repeat in groups of three.
Setting it to any other value other than 0 works:
[$SCRIPT=&n(hs.PluginFunction("UltraM1G3", "", "WriteCounterValue", New Object() {"01", "1"}))]
[$SCRIPT=&n(hs.PluginFunction("UltraM1G3", "", "WriteCounterValue", New Object() {"01", "2"}))]
Both work fine and the counter device both Elk and in HS updates accordingly. Setting it to 0 consistently throws up that error and the device and Elk does not update the counter value.
What Am I doing wrong or is the plugin messing up counter value of 0?
I use immediate scripts in HSTouch that sets the value to either 0 or 1 or 2.
Here is the immediate script used in HSTouch:
[$SCRIPT=&n(hs.PluginFunction("UltraM1G3", "", "WriteCounterValue", New Object() {"01", "0"}))]
This throws an error in the log: No response/improper response from Elk M1 to command 'cx010000000' error message repeat in groups of three.
Setting it to any other value other than 0 works:
[$SCRIPT=&n(hs.PluginFunction("UltraM1G3", "", "WriteCounterValue", New Object() {"01", "1"}))]
[$SCRIPT=&n(hs.PluginFunction("UltraM1G3", "", "WriteCounterValue", New Object() {"01", "2"}))]
Both work fine and the counter device both Elk and in HS updates accordingly. Setting it to 0 consistently throws up that error and the device and Elk does not update the counter value.
What Am I doing wrong or is the plugin messing up counter value of 0?
Comment