0 or 1 status of PAC Control variable in groov View (and read in Node-RED)

We have a PAC Control strategy with a variable called Oscillate, presently created as a 32-bit Integer.

In groov View, we created an Image Indicator gadget that represents a binary toggle switch, and associated this with the tag “Oscillate”, but as far as I can tell, there is no 1 or 0 being sent or set between groov View and the PAC Control strategy (yet I believe I should have done this?).

Is there a way for us to read the “Off” or “On” status of the gadget in Node-RED? I believe it might involve setting the Bit field in the properties box of this gadget in groov View, but felt the water getting deep, so I am throwing out a line for help here.

The bit field in groov View’s gadget properties is there to allow you to read and / or write a single bit within a larger integer, rather than using the integer’s value as a whole to drive the gadget. Regardless of whether you’ve configured the gadget to use a bit index, groov View will interpret a 0 value in the tag as False, and anything else as True. When writing to the tag using that Indicator Button, groov View will send a 1 when the button is turned on, and a 0 when it’s turned off.

When using Node-RED, you’ll get the full 32-bit integer value out of the tag, and it’s up to you to interpret it as you choose.

1 Like

Thanks @Jonathan_Fischer. The toggle value (0 or 1) is indeed being read in PAC Control and in Node-RED.

image