#Possible to display temperature in both C and F for one entity?
1 messages · Page 1 of 1 (latest)
you could template a helper to do that
any links to resources showing a somewhat simillar example?
{{ 'Supply Temp ' + states('sensor.temperature') + '°C / ' + (states('sensor.temperature')|float*(9/5)+32)|string+ '°F' }}
replace sensor.temperature with your temp sensor reporting in C
that can probably be cleaned up a bit but for something quick and dirty it should work
Whoa, thank you! I wasnt expecting all of that!
no worries, you might need to put a round on the conversion to prevent strange results though
I did notice that, "Supply Temp 18.53°C / 65.35400000000001°F" but thats a solvable issue
{{ 'Supply Temp ' + states('sensor.temperature') + '°C / ' + (states('sensor.temperature')|float*(9/5)+32)|round(1)|string + '°F' }}
that should do it
Yup, I just did the same. Thanks again!