I have a sensor that reports in US units, and some scripts that want metric inputs. I found some examples of F to C conversion using templates, but they appear to be using the old unsupported template method. Does anyone have a good example for the new system? Thanks!
old unsupported template method. ???
you should be able to paste the logic of the old way into the new way.
There are some examples of unit conversion here, including F to C.
I just did my first HomeAssistant integration that might be helpful.
The following code would convert the sensor value to Fahrenheit, no matter what unit the sensor has (as long as the integration knows a transformation from sensor unit to Fahrenheit):
{{ to_unit(states.sensor.temperature, '°F') }}