Hi spud
I tried to use your plugin to update one of my VD by using a basic expression to add the value of VD1 to VD2 and update VD1 with the new value.
The expression works fine unless the dynamic value of VD1 is ever 0, in which case the expression fails and the log states:
Clearly the sum should have resulted in 13.839 but it doesn't like it.
Anyway, I'm just using an immediate script now to do it e.g. &hs.setdevicevaluebyref(1234, (hs.devicevalueex(1234) + hs.devicevalueex(4321)), True) which works fine with 0 values.
Thought you may like to know?
Cheers
I tried to use your plugin to update one of my VD by using a basic expression to add the value of VD1 to VD2 and update VD1 with the new value.
The expression works fine unless the dynamic value of VD1 is ever 0, in which case the expression fails and the log states:
Code:
[SIZE=16px][COLOR=#212529][FONT=Roboto][FONT=B612 Mono][COLOR=#FF0000]ERROR SetDeviceValueToVariable: Cannot parse variable 0 + 13.839 to a numerical value[/COLOR][/FONT][/FONT][/COLOR][/SIZE]
Anyway, I'm just using an immediate script now to do it e.g. &hs.setdevicevaluebyref(1234, (hs.devicevalueex(1234) + hs.devicevalueex(4321)), True) which works fine with 0 values.
Thought you may like to know?
Cheers
Comment