Stable room temperature with airconditioner with external temperature sensor

Hello,

I’m quite new to home assistant.
I’m trying to maintain a temperature of 21,5 degrees Celsius with an airconditioner.

I have the following actions to lower or up the set_temperature by 1 degree when the target temperature on an external temperature sensor is reached (these work):

data:
temperature: |
{{ state_attr(‘climate.ac_woonkamer’,‘temperature’) - 1 }}
target:
entity_id: climate.ac_woonkamer
action: climate.set_temperature

data:
temperature: |
{{ state_attr(‘climate.ac_woonkamer’,‘temperature’) + 1 }}
target:
entity_id: climate.ac_woonkamer
action: climate.set_temperature

What I can’t get to work is the following:

trigger: numeric_state
entity_id:

  • climate.nefit
    for:
    hours: 0
    minutes: 5
    seconds: 0
    above: 21.5
    attribute: current_temperature

It should be so easy, but the trigger just doesn’t work.
Can someone point me in the right direction?

Please follow Questions Guideline #11 by formatting your configuration code properly.

Using the for configuration variable with attributes can be problematic, because they are not independently tracked. I would suggest you set up a Template sensor Helper to extract the current_temperature attribute into it’s own entity.

Thank you!