How to apply scaling factor on sensor input

Hello,

I have one Zigbee sensor which sends me on HA a analog value between 0 and 100.

In reality, 100 means that the measured value is 50°C.

I would like to display direclty, in HA, “50°C” and not “100”.

How can I do that?

PS : I am using the Zigbee integration pluggin

Thanks for your help,

Sam

Create a template sensor, that uses the state of the „real“ sensor and multiplies it by 0.5.

Something like

{{ states('sensor.temperature_1') | float * 0.5 }}