Hello,
I use a water meter sensor which publish to a MQTT Broker on HomeAssistant. I want to scale the value from m3 to liter. Perhaps easy to do, but I am unsuccesfull. I have tried:
mqtt:
sensor:
- name: "Wasserzähler"
state_topic: "Wasserzaehler/main/value"
value_template: '{{ value * 1000 | int }}'
unit_of_measurement: "Liter"
icon: "mdi:water"
But that does not work. How to achieve this?
Here is the mqtt structure: