Newbee question on programming automations

Hi. I am completely new to HASS and unfortunately the programming method doesn’t make much sense to me. So I ask for help and I would appreciate it if someone can put me in the right direction.

I have a Evohome controlled heating system and the settings are correctly recognized in HASS. Unfortunately I can not set a maximum room temperature lower than 21. But I want to limit it to 20.

Home Assistant has the following:

`[climate.achterkamer]
hvac_modes: off, heat
min_temp: 5
max_temp: 21
preset_modes: none, temporary, permanent
current_temperature: 20.2
temperature: 5
preset_mode: temporary
status:
setpoints:
this_sp_from: ‘2021-03-10T18:00:00+01:00’
this_sp_temp: 18
next_sp_from: ‘2021-03-11T00:00:00+01:00’
next_sp_temp: 18
zone_id: ‘4555742’
active_faults: []
setpoint_status:
target_heat_temperature: 5
setpoint_mode: TemporaryOverride
until: ‘2021-03-11T00:00:00+01:00’
temperature_status:
temperature: 20
is_available: true

friendly_name: Achterkamer
icon: mdi:radiator
supported_features: 17`

Question: How can I create an automation which constantly monitors the set temperature and reduces it to 20 whenever it is set to anything above 20? I think the entry to monitor would be temperature_status:
temperature:

Thanks in advance for any helpful answer.
Cheers, Peter

For a climate entity, this is the attribute representing the setpoint temperature (the target temperature it will attempt to maintain):

temperature: 5

Your automation should monitor the temperature attribute and, if it is increased above 20, sets it back to 20.

Here’s an example of an automation that uses a Template Trigger.

alias: monitor setpoint temperature
trigger:
  - platform: template
    value_template: "{{ state_attr('climate.achterkamer', 'temperature') > 20 }}"
action:
  - service: climate.set_temperature
    target:
      entity_id: climate.achterkamer
    data:
      temperature: 20
mode: single
max_exceeded: silent
1 Like

Thanks. That gave me the push in the right direction. It’s working now.

1 Like