Hi Forum
So I had to calibrate my xiaomi humid/temp sensor. To do so I used float with the result in the picture. How do I get it to show 22.5. I do not have a lot of programming skills. Is it round, integer or…
This is my code:
Regards,
Kenneth
I have this in one of my sensor templates:
value_template: ‘{{ (states.sensor.owm_report.attributes.main[“temp”]-273.1)|round(2) }}’
Without the round(2) pipe, I got results similar to yours.
Thanks. I will try that.