[SOLVED] Heating rule optimization

Hello,
I have a question, is there any way I can optimize my rule for heating to have a one degree offset?
Other recommendations are welcomed.

My rule:

rule "ogrevanje"
when
        Item temperatura changed or Item Temperature changed
then
        var double termostat=(temperatura.state as DecimalType).doubleValue
        var double temp=(Temperature.state as DecimalType).doubleValue
        if(termostat>temp){
                pec.sendCommand(ON)
        }else{
                pec.sendCommand(OFF)
        }
end

You mean hysteresis? (a do-nothing band)

       if(termostat>temp){
                pec.sendCommand(ON)
        }else if (termostat + 1.0 < temp) {
                pec.sendCommand(OFF)
        }