Sensibo sends target temperature even it does not change

Hi,
I have a annoying issue with heater controlled by Sensibo. Automation is triggered when Nordpool energy price is changed (every hour). I control the temperature according to cheapest hours in Nordpool. Automation works ok but it is annoying. When automation is triggered it sends the target temperature to heater and it does it even the last target has been same. Heater peeps every time when new target is send (every hour). It should send the target temperature only if the target differs from previous one.

How to compare is the new target same as the previous one ?
This is what I want:
if
previous target temperature is same as the new one

then
do nothing (don’t send the target to heater via Sensibo)

else
send a new target to heater

This is the automation yaml-code:

alias: Ilpin ohjaus
description: ""

trigger:
  - platform: state
    entity_id:
      - input_number.ilpin_hintaraja_kuumaksi
      - input_number.ilpin_kuuma_lampotila
      - input_boolean.ilpin_automaatio_paalla
      - input_number.peruslampo
      - sensor.nordpool
  - platform: homeassistant
    event: start
  - platform: numeric_state
    entity_id:
      - sensor.shellyuni_08f9e0518490_temperature
    for:
      hours: 0
      minutes: 30
      seconds: 0
    below: 10
  - platform: numeric_state
    entity_id:
      - sensor.shellyplusht_a0a3b3de69e4_temperature
    for:
      hours: 0
      minutes: 30
      seconds: 0
    below: 22
condition: []
action:
  - if:
      - condition: and
        conditions:
          - condition: numeric_state
            entity_id: sensor.nordpool
            below: sensor.kytkentaraja124
          - condition: numeric_state
            entity_id: sensor.shellyuni_08f9e0518490_temperature
            below: 10
          - condition: state
            entity_id: input_boolean.ilpin_automaatio_paalla
            state: "on"
          - condition: numeric_state
            entity_id: sensor.shellyplusht_a0a3b3de69e4_temperature
            below: 21
    then:
      - service: climate.set_temperature
        metadata: {}
        data:
          temperature: "{{ states('input_number.ilpin_kuuma_lampotila')| float(0) }}"
        target:
          entity_id: climate.matti_s_device
    else:
      - service: climate.set_temperature
        metadata: {}
        data:
          temperature: "{{ states('input_number.peruslampo')| float(0) }}"
        target:
          entity_id: climate.matti_s_device
mode: single

Many thanks in advance!