How to insert raise-option for climate automation?

Hello there,

I already created several automations for my climate accordingly to the outside temperature. Source is weather.home, time pattern is every 15 minutes. I have automations with “under 5 degrees”, “between 5-10 degrees”, “10-13 degrees”, 13-15 degrees", “15-18 degrees” and “above 18 degrees”. I also have an condition inside that checks if my input-boolean “manual heating” is on or off. If the manually heating is on there is an automation that sets this boolean to off every day at 22pm.

In some cases I want to raise that automatically set temperature by 2, how can I achieve that?

alias: 'HEIZUNG: tagsüber zwischen 13 und 15 Grad'
description: >-
  Prüft tagsüber alle 15 Minuten, ob die Außentemperatur zwischen 13 und 15 Grad
  liegt.
trigger:
  - platform: time_pattern
    minutes: /15
condition:
  - condition: and
    conditions:
      - condition: time
        after: '04:55'
        before: '22:05'
      - condition: numeric_state
        entity_id: weather.home
        attribute: temperature
        below: '15'
        above: '13'
      - condition: state
        entity_id: input_boolean.heizung_manuell_steuern
        state: 'off'
action:
  - service: climate.set_temperature
    target:
      entity_id:
        - climate.heizung_wohnzimmer
        - climate.heizung_esszimmer
    data:
      temperature: 20
  - service: climate.set_temperature
    data:
      temperature: 23
    target:
      entity_id:
        - climate.heizung_bad
        - climate.heizung_schlafzimmer
mode: single

I don’t want to create hundreds of automations… Thank you for your support.

Cameron

You could add an input_boolean and do, e.g.

    data:
      temperature: '{{ 20 + (2 *(states("input_boolean.raise_temp") == "on") | float) }}'

You’ll want to trigger on state change of the boolean so that it is applied immediately.

That rocks - you made my day! Thank you for your fast response!!