hello I have a sensor that measures how much water is sent to the tank the code is as follows:
- platform: mqtt
state_topic: "/ESP_1/flusso/Count"
name: "flusso"
icon: 'mdi:fan'
qos: 0
unit_of_measurement: "Lt"
value_template: "{{ value }}"
my requirement is to create a formula that when the pump is withdrawing generally measures “8.0 / 9.0” liters per minute the data displayed is “on” if it takes “off” if it is turned off in order to create the frontend of HA has a warning that the pump is on.
I was working on button cards but when I enter the data on
state:
- value: 'on'
color_type: icon
color: rgb(181, 142, 49)
spin: true
does not allow me to write “> 0” to indicate that it is on
some idea?