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()) ))
then
execute.command( “chauffage_on” );
end
``
Just after your last post I’ve realised that the answer is not so obvious for non programmers.