Hi home assistant experts. The initial problem here is just that I recently got some temperature sensors and they are reporting temperature on the dashboard in Celcius. This is predictable because my instance is configured for metric units. But in the case of temperature, my wife and I still want to see that it’s 72 in the house rather than 21. So…
Question 1: Is there some easy way to report the temperature in Farenheight on the dashboard?
Question 2: Templates – Huh?
I’ve looked over the documentation on templates and what I really need is some sort of tutorial. At no point did the documentation explain how or why to use a template. But, from researching my temperature problem, I gather a template might help. I get that about a lot of other problems too. But so far, despite me being a programmer by trade, I’m utterly mystified. So… does anyone know of any good tutorials out there that start from the beginning, preferably with some examples?
I begin to understand. My problem wasn’t understanding jinja syntax, it was figuring out WHERE it would be used. Now I see that that is an artifact of me avoiding YAML in favor of Node-Red. But your response somehow got me thinking in the right head space and with a bit more googling I came across the phrase “template sensors”. That finally got me on the right track and several more articles later:
You can just tell home assistant which unit system you prefer and whether you prefer temperature displayed in celsius or fahrenheit by default. It’s part of basic configuration. Then you won’t have to make a duplicate template sensor for every entity with a temperature value.
Basically just put this in configuration.yaml
homeassistant:
temperature_unit: F
You can also set it to use the imperial system by default if you prefer that too. Or mix and match:
homeassistant:
unit_system: metric
temperature_unit: F