]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Fixed other yaml warning
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Tue, 23 May 2023 22:47:49 +0000 (00:47 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Tue, 23 May 2023 22:47:49 +0000 (00:47 +0200)
packages/away_mode/away_mode_climate.yaml
packages/central_heating.yaml
packages/mercedes/mercedes_customizations.yaml
packages/netatmo/netatmo_away.yaml
scripts/notify.yaml

index eb72cc0661f546c7400a645de5f2b169f09e13e6..048ff03a28c1ad6cce7ed7c6d8fdc88f5adac400 100644 (file)
@@ -20,26 +20,26 @@ automation:
 
     action:
       - choose:
-        # Switch On
-        - conditions:
-          - condition: state
-            entity_id: input_boolean.home_mode_away
-            state: "on"
-          sequence:
-            - service: script.turn_on
-              data:
-                entity_id: script.climate_away_mode_on
-        # Switch Off
-        - conditions:
-          - condition: and
-            conditions:
+          # Switch On
+          - conditions:
               - condition: state
                 entity_id: input_boolean.home_mode_away
-                state: "off"
-              - condition: state
-                entity_id: input_boolean.central_heating
-                state: 'on'
-          sequence:
-            - service: script.turn_on
-              data:
-                entity_id: script.climate_away_mode_off
+                state: "on"
+            sequence:
+              - service: script.turn_on
+                data:
+                  entity_id: script.climate_away_mode_on
+          # Switch Off
+          - conditions:
+              - condition: and
+                conditions:
+                    - condition: state
+                      entity_id: input_boolean.home_mode_away
+                      state: "off"
+                    - condition: state
+                      entity_id: input_boolean.central_heating
+                      state: 'on'
+            sequence:
+              - service: script.turn_on
+                data:
+                  entity_id: script.climate_away_mode_off
index 4dfa8a42d58eab654ac2943b2d074a56c1d696ff..d44471b46d329f250fd14518a06fce8a4b48ea70 100644 (file)
@@ -46,27 +46,27 @@ automation:
 
     action:
       - choose:
-        # Switch on
-        - conditions: "{{ now().month == 11 and now().day == 1 and is_state('input_boolean.central_heating', 'off') }}"
-          sequence:
-            - service: input_boolean.turn_on
-              data_template:
-                entity_id: input_boolean.central_heating
-            - service: script.notify_text
-              data_template:
-                title: "Home Assistant - Riscaldamento Centralizzato"
-                message: "Il riscaldamento centralizzato è stato acceso"
+          # Switch on
+          - conditions: "{{ now().month == 11 and now().day == 1 and is_state('input_boolean.central_heating', 'off') }}"
+            sequence:
+              - service: input_boolean.turn_on
+                data_template:
+                  entity_id: input_boolean.central_heating
+              - service: script.notify_text
+                data_template:
+                  title: "Home Assistant - Riscaldamento Centralizzato"
+                  message: "Il riscaldamento centralizzato è stato acceso"
 
-        # Switch off
-        - conditions: "{{ now().month == 4 and now().day == 15 and is_state('input_boolean.central_heating', 'on')}}"
-          sequence:
-            - service: input_boolean.turn_off
-              data_template:
-                entity_id: input_boolean.central_heating
-            - service: script.notify_text
-              data_template:
-                title: "Home Assistant - Riscaldamento Centralizzato"
-                message: "Il riscaldamento centralizzato è stato spento"
+          # Switch off
+          - conditions: "{{ now().month == 4 and now().day == 15 and is_state('input_boolean.central_heating', 'on')}}"
+            sequence:
+              - service: input_boolean.turn_off
+                data_template:
+                  entity_id: input_boolean.central_heating
+              - service: script.notify_text
+                data_template:
+                  title: "Home Assistant - Riscaldamento Centralizzato"
+                  message: "Il riscaldamento centralizzato è stato spento"
 
 ######################################################################
 # Central Heating Package - Logbook
index 314aad81ba51e6653482ee85c1482776190bdec8..7c14a301d37aa8525318cc52da46c508ee772602 100644 (file)
@@ -44,7 +44,8 @@ homeassistant:
       friendly_name: Pneumatici
       device_class: problem
       #icon: mdi:car-tire-alert
-      #tirepressureRearLeft, tirepressureRearRight, tirepressureFrontRight, tirepressureFrontLeft, tireMarkerFrontRight, tireMarkerFrontLeft,tireMarkerRearLeft, tireMarkerRearRight, tirewarningsrdk, tirewarningsprw, tireTemperatureRearLeft, tireTemperatureFrontRight,
+      #tirepressureRearLeft, tirepressureRearRight, tirepressureFrontRight, tirepressureFrontLeft, tireMarkerFrontRight, tireMarkerFrontLeft,tireMarkerRearLeft, tireMarkerRearRight,
+      #tirewarningsrdk, tirewarningsprw, tireTemperatureRearLeft, tireTemperatureFrontRight,
       #tireTemperatureRearRight, tireTemperatureFrontLeft
 
     # Finestrini - windowsClosed
index 5bb1a3f3f48b5164d7f4bc8b0d5a988f98c3e60e..131cca6377ae0ca73f819e7c23c24a3d6c5bc2d7 100644 (file)
@@ -55,26 +55,26 @@ automation:
 
     action:
       - choose:
-        # Switch On
-        - conditions:
-          - condition: state
-            entity_id: input_boolean.central_heating
-            state: "off"
-          sequence:
-            - service: script.turn_on
-              data:
-                entity_id: script.climate_away_mode_on
-        # Switch Off
-        - conditions:
-          - condition: and
-            conditions:
+          # Switch On
+          - conditions:
               - condition: state
                 entity_id: input_boolean.central_heating
-                state: "on"
-              - condition: state
-                entity_id: input_boolean.home_mode_away
-                state: 'off'
-          sequence:
-            - service: script.turn_on
-              data:
-                entity_id: script.climate_away_mode_off
+                state: "off"
+            sequence:
+              - service: script.turn_on
+                data:
+                  entity_id: script.climate_away_mode_on
+          # Switch Off
+          - conditions:
+              - condition: and
+                conditions:
+                    - condition: state
+                      entity_id: input_boolean.central_heating
+                      state: "on"
+                    - condition: state
+                      entity_id: input_boolean.home_mode_away
+                      state: 'off'
+            sequence:
+              - service: script.turn_on
+                data:
+                  entity_id: script.climate_away_mode_off
index d3b598ffd660f3d960c600e3ad562950755951b7..3b2982314a709b765826b2ece5b4a7607668f6ac 100644 (file)
@@ -87,8 +87,8 @@ notify_text:
 
     - choose:
         - conditions:
-          - condition: template
-            value_template: "{{ enable_telegram }}"
+            - condition: template
+              value_template: "{{ enable_telegram }}"
           sequence:
             - service: notify.telegram
               data_template: