Bug with the rules

No, the rule rather should read:

rule “thermostat_salon_1” when

Event( source == “thermostat_varia_salon”, $h : value)

Event( source == “temperature”, eval(Integer.parseInt(value.toString()) < Integer.parseInt($h.toString()) ))


execute.command( “chauffage_on” );



Just after your last post I’ve realised that the answer is not so obvious for non programmers.

It seems like it works.

By cons I do not know yet if it’s because I made sure not to have any decimal or if it is to have changed the rules.

I confirm that it’s not easy when you’re not a programmer. Thank you for your help