This part sets the trap for you.
This part is the clue.
The Item state is 24.5 °C , it has temperature units attached.
You’re trying to compare it with 22
It’s an apples and oranges comparison.
Simplest is to give the orange units as well.
if (DaikinSZTempIn.state > 22 | "°C" ) {