i’ve just added a thing in “Paper UI” wich sets the wanted temperature via “HABPanel”. Then I got a value of a sensor wich I want to compare with for switching a heater.
I added a rule in “Rule Engine” wich send a command when an item state is updated of the sensor or the item where I set the wanted temperature. It works perfectly but when I add the condition via “but only if…” the command is sended in every case.
For example I simplified it and add the condition if(1 > 2) and the command is sended.
What do I wrong by adding a condition?
I want this working:
if((sensor.state as as DecimalType) < (wanted.state as as DecimalType))
TOPIC WAS CLOSED AND I COULDN’T REPLY BUT MAKE THIS ADDITION:
If you work with the “Next Rule Engine” don’t choose “a given script evaluates to true”. I’m sure that this option doesn’t work proper at this moment. Try to experiment with “an item has a given state”. In most cases i’ve got the rule working properly. Sometimes it is better to make a rule manually as a file.