I can not see the problem - but I’ve some recommendations: Do use the designer to write your rules; has it has some nice features to detect problems like typos in item names and such.
Next I recommend to add some more info log messages to find the point where the execution of the rules stops.
Do you use OH 1, or 2? as it is also possible to read item states and test some things via console.
To analyze it may make sense to store the values to a var first; log it and then perform the operation to check if it looks as you expect.
Yes, but as it seems now, the rule doesn’t even execute since it fails - nothing is written in my log…
Tested with some even simpler - same result:
rule "Varme Soveværelse"
when
Item Temp_Bedroom received update
then
if (Temp_Bedroom.state <= Temp_Bedroom_SP.state as DecimalType)
sendCommand(Heating_Bedroom, 100)
else
sendCommand(Heating_Bedroom, 0)
Found the solution, the “Heating_Bedroom” was set as a switch - changed to number, now it works