aperezva
(Aperezva)
1
Hi,
I have a sensor regarding my gauge Liters, that shows quantity with Comma in separation, like 17,76 Liters
In this format doesn´t works to summ all the quantities that I consum , If I change manually to 17.76 in this case works.
How can I generate a new sensor taht have the format form this sensor but with a dot as a separate decimal?.
Thensk for your support. I m very lost in this problem, and I know it would be very simple.
koying
(Chris B)
2
What integration is creating that sensor?
koying
(Chris B)
4
Then you should be able to do a | replace(",",".")
in a value_template
aperezva
(Aperezva)
5
I´m trying this :
- platform: template
sensors:
litros por dia:
value_template: >
{{ states(‘sensor.bxxxxxx_volume’) | replace (",",".") }}
unit_of_measurement: ‘L’
friendly_name: “litros agua riego”
But it´s nos working.
Please could you assist me?
koying
(Chris B)
6
Please format you code. Select it and use the </>
button.
Please detail “not working”