]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Minor changes
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Mon, 11 Feb 2019 21:44:25 +0000 (22:44 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Mon, 11 Feb 2019 21:44:25 +0000 (22:44 +0100)
automation/climate.yaml
automation/home_assistant.yaml
automation/media_player.yaml
automation/night.yaml
script/climate.yaml

index b61492794718db852926d829c12e5dcd231b4571..b97b124aa5233754d2d6c45a2be18f4674e7215b 100644 (file)
@@ -3,7 +3,9 @@
 # - script.climate_daily_schedule
 ######################################################################
 
-- alias: "Termosifoni: Schedule Feriale"
+- alias: "Termosifoni: Schedulazione giornaliera feriale"
+  initial_state: 'off'
+
   trigger:
     - platform: time
       at: '06:30:00'
@@ -15,9 +17,9 @@
       at: '18:30:00'
     - platform: time
       at: '22:00:00'
-    - platform: state
-      entity_id: input_boolean.home_mode_away
-      to: 'off'
+#    - platform: state
+#      entity_id: input_boolean.home_mode_away
+#      to: 'off'
 
   condition:
     condition: and
@@ -54,7 +56,7 @@
         temp1: 19
         temp2: 18
         temp3: 19
-        temp4: 29.5
+        temp4: 19.5
         temp5: 16
 
     - service: script.climate_daily_schedule
 
 ######################################################################
 # Climate: Away Mode
+# - climate.set_operation_mode
 # - climate.set_temperature
 ######################################################################
 
-- alias: "Termosifoni: modalità vacanza"
+- alias: "Termosifoni: Modalità vacanza"
+  initial_state: 'off'
+
   trigger:
     - platform: state
       entity_id: input_boolean.home_mode_away
       to: 'on'
+    - platform: state
+      entity_id: input_boolean.home_mode_away
+      to: 'off'
 
   condition: []
 
   action:
+    - service: climate.set_operation_mode
+      data_template:
+        entity_id:
+        - climate.cucina_termostato_cucina
+        - climate.sala_termostato_sala
+        - climate.bagno_termostato_bagno
+        - climate.studio_termostato_studio
+        - climate.camera_termostato_camera
+        operation_mode: >-
+          {% if trigger.to_state.state == 'on' %}
+            vacation
+          {% else %}
+            auto
+          {% endif %}
+    
     - service: climate.set_temperature
-      data:
+      data_template:
         entity_id:
         - climate.cucina_termostato_cucina
         - climate.sala_termostato_sala
         - climate.bagno_termostato_bagno
         - climate.studio_termostato_studio
         - climate.camera_termostato_camera
-        temperature: 16
+        temperature: >-
+          {% if trigger.to_state.state == 'on' %}
+            10
+          {% else %}
+            19
+          {% endif %}
index 5e80f21f7d5f5f761803823ae43a42361ab528fa..e7053cead4fac4dec56d5024e2a72e14286ae2d3 100644 (file)
@@ -2,7 +2,7 @@
 # Home Assistant: Management of the Home Mode Button
 ######################################################################
 
-- alias: "Home Assistant: Cambio Modalità On"
+- alias: "Home Assistant: Cambio modalità On"
   trigger:
     platform: state
     entity_id: input_boolean.home_mode_day,
@@ -17,7 +17,7 @@
           {% set booleans = [ 'input_boolean.home_mode_day', 'input_boolean.home_mode_night', 'input_boolean.home_mode_away' ] | reject('equalto', trigger.entity_id) %}
           {{ booleans | list | join(', ') }}
 
-- alias: "Home Assistant: Cambio Modalità Off"
+- alias: "Home Assistant: Cambio modalità Off"
   trigger:
     platform: state
     entity_id: input_boolean.home_mode_day,
@@ -52,7 +52,7 @@
 # Home Assistant: Management of Day/Night Mode
 ######################################################################
        
-- alias: "Home Assistant: Modalità Giorno/Notte"
+- alias: "Home Assistant: Modalità giorno/Notte"
   trigger:
     - platform: time
       at: '08:00:00'
 # Home Assistant: Update Available Notifications
 ######################################################################
 
-- alias: "Home Assistant: Notifica Aggiornamento"
+- alias: "Home Assistant: Notifica aggiornamento"
   trigger:
     - platform: state
       entity_id: updater.updater
 # - Sync with Google Assistant
 ######################################################################
 
-- alias: "Home Assistant: startup automations"
+- alias: "Home Assistant: Startup automations"
   trigger:
     - platform: homeassistant
       event: start
index 27a88205d9d6b70ddda5d70d5a7ed97d032edcf5..33721107f88aa809116cc8b2488d29eb1db196e3 100644 (file)
@@ -3,7 +3,7 @@
 # - script.tv_change_channel
 ######################################################################
 
-- alias: "TV: cambia canale"
+- alias: "TV: Cambia canale"
   trigger:
     - platform: state
       entity_id: input_text.tv_change_channel
@@ -21,7 +21,7 @@
 # - script.notify_voice
 ######################################################################
 
-- alias: "Google Home: pronuncia testo"
+- alias: "Google Home: Pronuncia testo"
   trigger:
     - platform: state
       entity_id: input_text.google_home_speak
index 5afa97492e4f5e86c7f43b29b2fda340489dba1e..f6f44f4eb165de1dd495e74cace1a42042c7a1ef 100644 (file)
@@ -3,7 +3,7 @@
 # - Switch off all covers
 ######################################################################
 
-- alias: "Notte: Chiusura Tapparelle"
+- alias: "Notte: Chiusura tapparelle"
   initial_state: 'off'
 
   trigger:
index bed509e4ba3d97e413573ddec6c5ff2cd5bddfa2..80c20786303824030cda77ebd19097ba8d644c7b 100644 (file)
@@ -9,7 +9,7 @@
 # - temp5
 #
 # Operations:
-# - cover.{{modus}}_cover
+# - climate.set_temperature
 ######################################################################
 
 climate_daily_schedule: