I explain, I have a pump that takes water from the well and the current sensor shows the liters per minute, I need to know when the pump is running so with a certain data on and off, I tried with this template below but it does not convert the given…
- platform: template
sensors:
stato_pompa:
friendly_name: "pompa pozzo"
value_template: >-
{% if is_state('sensor.flusso' == '0.00') %}
off
{% else %}
on
{% endif %}