Plain number vs. value with unit in the rule

I defined rule which start heating when the temperature from sensor is less than 20,5 Celsius degree. The conditions is defined as folowing on the picture:


and condition:

but then in the log I see:

Received a QuantityType state '22.27778 °C' with unit for item Temperaturagorakorytarz_Temperature, but the condition is defined as a plain number without unit (20,5), please consider adding a unit to the condition for rule PowerPlug04-GrzejnikON.

When I chenged the state from “20,5” to “20,5 °C” then the rule is always started evene the temperaturr from sensor is over 20,5. But after change to “20,5 °C” then in the log is no woarings.

So I have the questions:

  1. How to corretly define the value in the rule? With the unit (like °C, kW, etc) or without the unit?
  2. Why the rule operate on the vaules with unit and in the logs I see message as above? It is easier to operate on the native values in the rule because in this way I must be not sure that I putted correct ascii chars like “°C”.

What is the best way to do that?

I’m not sure if the internationalization is to the point where you can use , instead of . for the devimal point. I suspect your 20,5 is being treated as 205.

You are doing it right. 20.5 °Cexcept I think for the , vs ..

Thank you @rlkoshak.

To be sure that everything would work and not rely on units of measurement, I finally decided to do everything on blocky if the temperature changes.

But thay you so much for the next lesson.