I've been living with this puzzler for a while and am curious if anyone else has had a similar problem. The below event runs after restart, but the first "Then" script line never runs the hs.SetDeviceValueByRef() until I edit the line. Usually I just remove or add the spaces after the commas. The full immediate command is
&nIf(((hs.DeviceValue(1928) And (2^0)) > 0), hs.SetDeviceValueByRef(1929, hs.DeviceValue(1887), True), False)
I know it's something specific to this immediate script command because there are 2 events that have the same syntax, but operate on different devices, and neither will execute after a restart until I edit the immediate script, even just adding or removing spaces.
Anyone ever run into something like this? It only bugs me naturally, right after a restart.
BTW, no errors are logged, just no changes to device id 1929, which should occur once a minute.
&nIf(((hs.DeviceValue(1928) And (2^0)) > 0), hs.SetDeviceValueByRef(1929, hs.DeviceValue(1887), True), False)
I know it's something specific to this immediate script command because there are 2 events that have the same syntax, but operate on different devices, and neither will execute after a restart until I edit the immediate script, even just adding or removing spaces.
Anyone ever run into something like this? It only bugs me naturally, right after a restart.

BTW, no errors are logged, just no changes to device id 1929, which should occur once a minute.
Comment