Unit conversion (from kiloWatts to Watts)

I’m catching up with the fast moving reality of the hass project.

I have a solar sensor which reports in kiloWatts. I want it to display in Watts. Is using a template sensor still the way to go for converting this value, or is there a newer way ?

A template sensor is the only way, unless the integration you are using to connect to your sensor supports a value_template (e.g. mqtt, restful, etc…). Then you can do it in the sensor config.

thanks. I made the integration myself, so I’ll be looking for the value_template part. Thanks !