Thermostat entity ability to read a temperature and resend a new temperature

Hi.
So I have a Toshiba heat pump all hooked up and working through Home Assistant.
If the temperature is set above 26c iI would like Home Assistant to reset it back to 22c.
I am new to this and done my best but keep ending up in rabbit holes that are not what i am looking for.
Can this even be done?
and can I be pointed in the right area if indeed this is a thing.

Much appreciated for any help

trigger:
  - platform: numeric_state
    entity_id: climate.foobar
    above: 26
action:
  - action: climate.set_temperature
    target:
      entity_id: climate.foobar
    data:
      temperature: 22

You can do this in the automation editor if you like.

1 Like

I cant believe i spent so much time on this and the answer was right in front of me.

Thank you very much

1 Like