Recommended way to support two fuel sensors

feltov17 days ago

Hello,

I am looking to attach 2 fuel sensors to a tracker (and each fuel level will be reported separately from the device). What is the best way to support it (in particular so that reports work)?

Option 1 - create separate computed attributes based on sensor value from each signal like Fuel and Fuel 2? Does this work?
Option 2 - create a single computed attribute combining inputs from both signals (so for example, if each fuel tank has 200 liters, the Fuel attribute would have a final value that goes from 0 to 400L)
Option 3 - ?

Appreciate any examples. Thank you!

Kaloyan Kanev16 days ago

If you want the reports to be correct, the best option is Option 2:
fuel ? (fuelSensor1 + fuelSensor2) : null