I have an Aquaro water flow sensor I’m trying to integrate and am having an issue trying to convert its data from liters to gallons. It sends a cumulative total as an MQTT message, and I set it up in the GUI like this:
The value_template defines the state value for the entity, so that template is kind of nonsense… it’s basically saying “The state of this sensor is the state of this sensor times 0.264…”
IIRC, if the topic supplies a direct value instead of a json object, you should be using the value variable.