Central Heating control (if not set manualy)

Greetings from Germany…

I already have an automation that changes mine from “manual-summer” to “automatic-automatic”

  • Heating circuit mode → between manual and automatic
  • Heating circuit setting → between summer, automatic and winter

If the temperature falls below 3°C on the specified thermostat, I switch the heating to “automatic-automatic”

If the temperature of 6°C is then exceeded on the specified thermostat, I switch the heating back to “Manual-Summer”
So far so good, it works.

Now I want that.
When the temperature drops below 3°C, the heating only switches to “automatic-automatic” if the heating is in “manual-summer” mode.

It should also be queried if I only switch the heating to “manual-summer” when exceeding 6°C if it was previously switched to “automatic-automatic” at 3°C. Otherwise not.

It could be that I have changed this befor, or the outside temperature is below -10°C, then the heating switches automatically to “automatic-automatic”. In this case, of course, I do not want the heating to be switched off (antifreeze)

Unfortunately, I don’t know enough about this to realize this on my own, so I’m asking for your support.

Here is my automation below 3°C:

alias: Frostüberwachung Räumle gestartet unter 3°C, Heizung Eingeschaltet.  <--- means below 3°C
description: Frost Gefahr !!! Temperatur im Räumle unter 3°C, Heizung Eingeschaltet.
trigger:
  - type: temperature
    platform: device
    device_id: 9b2c84506323c96be1a83a9d334a1a73
    entity_id: sensor.lumi_lumi_weather_temperature_2
    domain: sensor
    below: 3
    for:
      hours: 0
      minutes: 5
      seconds: 0
condition: []
action:
  - service: notify.whatsappalex
    data:
      title: Frost Gefahr !!! Temperatur im Räumle unter 3°C, Heizung Eingeschaltet.
      message: Frost Gefahr !!! Temperatur im Räumle unter 3°C, Heizung Eingeschaltet.
  - device_id: 127ffdc1c800018393ac8d858b189002
    domain: select
    entity_id: select.thermostat_hk1_set_summer_mode
    type: select_option
    option: auto
  - device_id: 127ffdc1c800018393ac8d858b189002
    domain: select
    entity_id: select.thermostat_hk1_mode
    type: select_option
    option: auto
mode: single

Here is my automation above 6°C:

alias: Frostüberwachung Räumle aufgehoben über 6°C, Heizung Ausgeschaltet.
description: Keine Frost Gefahr !!! Temperatur im Räumle über 6°C, Heizung Ausgeschaltet.
trigger:
  - type: temperature
    platform: device
    device_id: 9b2c84506323c96be1a83a9d334a1a73
    entity_id: sensor.lumi_lumi_weather_temperature_2
    domain: sensor
    for:
      hours: 0
      minutes: 5
      seconds: 0
    above: 6
condition: []
action:
  - service: notify.whatsappalex
    data:
      title: >-
        Keine Frost Gefahr !!! Temperatur im Räumle über 6°C, Heizung
        Ausgeschaltet.
      message: >-
        Keine Frost Gefahr mehr !!! Temperatur im Räumle über 6°C, Heizung
        Ausgeschaltet.
  - device_id: 127ffdc1c800018393ac8d858b189002
    domain: select
    entity_id: select.thermostat_hk1_set_summer_mode
    type: select_option
    option: Sommer
  - device_id: 127ffdc1c800018393ac8d858b189002
    domain: select
    entity_id: select.thermostat_hk1_mode
    type: select_option
    option: Manuell
mode: single