Raingauge Template

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?

You already have one sensor.regenmenge, and you’re trying to create another with the same name…

1 Like

Yes. I´m stupid. And tired. Deadly mix but after renaming it works :slight_smile:

1 Like