Hello everybody,
can someone help me with the template sensor below?
The MQTT sensor always receives a pules
State: 814 Pules
- platform: mqtt
name: Gaszaehler_Verbrauch_pulse
state_topic: "ESP_Easy/Pulse/Total"
unit_of_measurement: "m3"
icon: 'mdi:fire'
I would like to convert that now. According to this, one pule corresponds to exactly 0.01 m³.
Sensor:
- platform: template
sensors:
cost_daily:
friendly_name: Gas_Gesamtverbrauch
unit_of_measurement: 'm³'
value_template: "{{ (states('verbrauch_day_gas') | float * 0.01) | round(2) }}"
utility_meter:
verbrauch_day_gas:
source: sensor.Gaszaehler_Verbrauch_pulse
cycle: daily
Does anyone have any solution for? Unfortunately, I still don’t see through enough.
Thanks and best regards
Jan