My sensor
switching actuator gives me a mA output DTP 9.021,
How can I convert this to Watts. I tried this code but it is an attempt without knowing how it works
Voltage is energy per unit charge. Current is the rate of electric charges moving through a conductor. Electrical power is the product of voltage and current.
This is the ‘old’ way of using templates, and although you can get it to work, still would suggest to take the new way.
and then you are already on the right path, type this into Developer Tools > Templates and see if it works