Hi guys,
just quick. I have a raingauge with a reed contact internally which is connected to a KNX Binary Sensor. Every Impulse equals an amount of 0.3l/m².
Means i just need to mutliply the impulse counter from the Sensor with 0.3.
In the template “editor” the calculation works but not in the sensor. This is the code:
platform: template
sensors:
regenmenge:
friendly_name: "Regenmenge"
unit_of_measurement: 'l/m²'
value_template: "{{ states('sensor.regenmenge') | float * 0.3 | float }}"
It´s just showing “0.0 l/m²” any Idea what I need to do?