I tried some ready solutions and none of them were addressing my issues. Finally I decided to create my own sensor and now I have a working sensor built on a esp32c6.
I am using wifi and wrtote my own driver for it.
I think capability LiquidFlowRate is good for this purpose.
But I could not find a template on dashboard to display rate or total consumed water. So I chose custom attribute template and displaying rate now.
works fine. But, I would like to change the color of the tile on dashboard according to the rate (some color when zero, another color when greater than zero)
How can I do that ?
is there a tile template that does this and shows rate (or any custom attribute) ?
or I can send event to any other attribute which could do the color change ?