How to use widget formula with 2 (or more) different variables from the same device (visualization only)?

We have a same device with different variables where we need to show an output value in the widgets (visualization only) using formulas, for instance: output value ‘power’ = variable1 (current) * variable2 (tension). Is it possible to do it using formula directly in the widget settings (we tried it -as simple / fixed-, and it looks that only 1 variable can be used as a calculated output value)? Or is a analysis mandatory for this kind of requirement (create a new variable from the others)?

The quickest way wiuthout using analysis is not to use them as separated variables.

In your parser, I assume you have current and voltage as separated variables on your final payload array. There, if your device sends both variables at the same time you can just calculate the power and create another variable appended to your payload.

If you don’t want to create another variable, in the same parser script you can save the calculation of power in the metadata if one your other variables and then call it from the widgets.

Thanks for you reply! We are using in this case a custom connector. In this scenario, with a custom connector, can I change the payload parser? Or copy the content of the payload parser from a custom connector and modify it? Any new suggestion related to this, will be appreciated.

Also, still regarding your firsr reply, in the Tago perspective (platform), what is the difference between ‘variables’ and ‘metadata’ storing a new/calculated value?