Water temperature - 0.1 deg instead of 1.0 deg

Home Assistant shows DHW temperature every 0.1 C.
I created a sensor and I am using this code to plot the temperature.

from(bucket: “Baza”)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r[“_measurement”] == “°C”)
|> filter(fn: (r) => r[“_field”] == “value”)
|> filter(fn: (r) => r[“domain”] == “sensor”)
|> filter(fn: (r) => r[“entity_id”] == “water_heater_vicare_water_0”)
|> filter(fn: (r) => r[“friendly_name”] == “water_heater.vicare_water_0”)
|> filter(fn: (r) => r[“source”] == “HA”)
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|> yield(name: “mean”)

However, the temperatures are captured every 1 C instead of 0.1 C.
Do I need to change something in the code above?
Or do I have to change something in my sensor template?
Thank you for your help.

Hi,

First check the time range and temperature in your sensor template. Check whether it is matching with your code in the front end. I think it is the problem with time range what you have specified in the front end

Well, it seems everything is OK.