From 05622ad7bd122d0cbe32a4c9e5d566c211c5dcad Mon Sep 17 00:00:00 2001
From: jabertwo <git@jabertwo.de>
Date: Tue, 11 Jul 2023 22:14:39 +0200
Subject: [PATCH] Heizung automatisierungen fixed

---
 .../templates/config/configuration.yaml       | 51 +++++++++++++++++--
 1 file changed, 46 insertions(+), 5 deletions(-)

diff --git a/intern/docker_homeassistant/templates/config/configuration.yaml b/intern/docker_homeassistant/templates/config/configuration.yaml
index 8c6ef824..de600598 100644
--- a/intern/docker_homeassistant/templates/config/configuration.yaml
+++ b/intern/docker_homeassistant/templates/config/configuration.yaml
@@ -295,12 +295,11 @@ automation ansible:
           payload_template: "{{ '{{' }} states('input_number.dali_licht_hackcenter') | int {{ '}}' }}"
     mode: restart
 
-
-
   # turn off all radiators
   - alias: ANSIBLE_heizung_aus
     description: Schaltet alle Heizungen aus
-    trigger: []
+    trigger: 
+      - type: []
     condition: []
     action:
       - service: climate.turn_off
@@ -310,11 +309,41 @@ automation ansible:
             - climate.lounge_vorne
             - climate.treppenhaus_thermostat_1
             - climate.vortragsraum_vorne
+            - climate.holzwerkstatt_vorne
+            - climate.kackcenter_klo
     mode: single
 
   # turn on all radiators
   - alias: ANSIBLE_heizung_an
-    description: Schaltet alle Heizungen aus
+    description: Schaltet alle Heizungen an
+    trigger: []
+    condition: []
+    action:
+      - service: climate.turn_on
+        target:
+          entity_id:
+            - climate.hackcenter_mitte
+            - climate.lounge_vorne
+            - climate.treppenhaus_thermostat_1
+            - climate.vortragsraum_vorne
+            - climate.holzwerkstatt_vorne
+            - climate.kackcenter_klo
+      - service: climate.set_temperature
+        target:
+          entity_id:
+            - climate.hackcenter_mitte
+            - climate.lounge_vorne
+            - climate.treppenhaus_termostat_1
+            - climate.vortragsraum_vorne
+            - climate.holzwerkstatt_vorne
+            - climate.kackcenter_klo
+        data:
+          temperature: 30
+    mode: single
+
+  # turn on all radiators to 18.5 degrees
+  - alias: ANSIBLE_heizung_18.5
+    description: Schaltet alle Heizungen auf 18.5 Grad
     trigger: []
     condition: []
     action:
@@ -325,7 +354,19 @@ automation ansible:
             - climate.lounge_vorne
             - climate.treppenhaus_thermostat_1
             - climate.vortragsraum_vorne
-      - service: 
+            - climate.holzwerkstatt_vorne
+            - climate.kackcenter_klo
+      - service: climate.set_temperature
+        target:
+          entity_id:
+            - climate.hackcenter_mitte
+            - climate.lounge_vorne
+            - climate.treppenhaus_termostat_1
+            - climate.vortragsraum_vorne
+            - climate.holzwerkstatt_vorne
+            - climate.kackcenter_klo
+        data:
+          temperature: 18.5
     mode: single
 
   # Feinstaubsensor steuert Luftfilter
-- 
GitLab