Hello, I am new to influxdb and running influxdb2.2 with telegraf collecting data from my inverters through Modbus.
My inverter will provide a register for power and one for the scale factor, which changes depending on the current power.
How could I do to create a if statement so that if W_SF is == 0, power1 is not modified. If W_SF == -1, power1 is multiplied by 0.1 and if W_SF == -2 power1 is multiplied by 0.01.
But I get a message that it is expecting a float and it found an INT. I have changed the modbus input in telegraf to FIXED so it will receive as a float. But I still get the same message. How could I fix this?