]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Added boost script for climate eq3 max
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Wed, 8 Apr 2020 19:45:50 +0000 (21:45 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Wed, 8 Apr 2020 19:45:50 +0000 (21:45 +0200)
script/climate.yaml
ui-lovelace.yaml

index f58f5d133f1afeeb0d2c35db734ad1c43af4b9ac..704c5d7309f0cace62ecb40fe89fbe10d14cc707 100644 (file)
@@ -38,7 +38,7 @@ climate_daily_schedule:
           {% endif %}
 
 ######################################################################
-# Climate: Away Mode
+# Climate: Away Mode On
 # Inputs:
 # - entity_id
 # - mode
@@ -48,25 +48,44 @@ climate_daily_schedule:
 # - climate.set_temperature
 ######################################################################
 
-climate_away_mode:
-  alias: "Termosifoni: Modalità vacanza"
+climate_away_mode_on:
+  alias: "Termosifoni: Attviva Modalità vacanza"
   sequence:
-    - service: climate.set_operation_mode
+    - service: climate.set_preset_mode
       data_template:
         entity_id: "{{ entity_id }}"
-        operation_mode: >-
-          {% if mode == 'on' %}
-            vacation
-          {% else %}
-            auto
-          {% endif %}
-    - delay: '00:00:30'
+        preset_mode: manual
+    - delay: '00:00:5'
     - service: climate.set_temperature
       data_template:
         entity_id: "{{ entity_id }}"
-        temperature: >-
-          {% if mode == 'on' %}
-            10
-          {% else %}
-            19
-          {% endif %}
+        temperature: 5
+    - delay: '00:00:5'
+    - service: climate.set_preset_mode
+      data_template:
+        entity_id: "{{ entity_id }}"
+        preset_mode: vacation
+    - delay: '00:00:5'
+    - service: climate.set_preset_mode
+      data_template:
+        entity_id: "{{ entity_id }}"
+        preset_mode: vacation
+
+######################################################################
+# Climate: Away Mode Off
+# Inputs:
+# - entity_id
+# - mode
+#
+# Operations:
+# - climate.set_operation_mode
+# - climate.set_temperature
+######################################################################
+
+climate_away_mode_off:
+  alias: "Termosifoni: Disattiva Modalità vacanza"
+  sequence:
+    - service: climate.set_preset_mode
+      data_template:
+        entity_id: "{{ entity_id }}"
+        preset_mode: auto
index 31410e8a2c1df4f566dc1950900f0072715d9fa7..bdff87c00c11efb97ecf4f2816527d7fdfadde73 100644 (file)
@@ -291,6 +291,46 @@ views:
         entity: climate.studio_termostato_studio
       - type: thermostat
         entity: climate.camera_termostato_camera
+        
+      - type: entities
+        title: Operazione sui Dispositivi
+        show_header_toggle: false
+        entities:
+        - type: call-service
+          name: Cucina
+          action_name: Attiva Boost
+          service: climate.set_preset_mode
+          service_data:
+            entity_id: climate.cucina_termostato_cucina
+            preset_mode: boost
+        - type: call-service
+          name: Sala
+          action_name: Attiva Boost
+          service: climate.set_preset_mode
+          service_data:
+            entity_id: climate.sala_termostato_sala
+            preset_mode: boost
+        - type: call-service
+          name: Bagno
+          action_name: Attiva Boost
+          service: climate.set_preset_mode
+          service_data:
+            entity_id: climate.bagno_termostato_bagno
+            preset_mode: boost
+        - type: call-service
+          name: Studio
+          action_name: Attiva Boost
+          service: climate.set_preset_mode
+          service_data:
+            entity_id: climate.studio_termostato_studio
+            preset_mode: boost
+        - type: call-service
+          name: Camera
+          action_name: Attiva Boost
+          service: climate.set_preset_mode
+          service_data:
+            entity_id: climate.camera_termostato_camera
+            preset_mode: boost
 
 ######################################################################
 # People
@@ -310,24 +350,28 @@ views:
         default_zoom: 15
         entities:
         - device_tracker.google_maps_115265981849847357125
+        hours_to_show: 48
       - type: map
         #title: Laura
         aspect_ratio: 16:9
         default_zoom: 15
         entities:
         - device_tracker.google_maps_103158638433668748797
+        hours_to_show: 48
       - type: map
         #title: Anna
         aspect_ratio: 16:9
         default_zoom: 15
         entities:
         - device_tracker.google_maps_113099283296073047871
+        hours_to_show: 48
       - type: map
         #title: Assunta
         aspect_ratio: 16:9
         default_zoom: 15
         entities:
         - device_tracker.google_maps_108517379615429477419
+        hours_to_show: 48
 
 ######################################################################
 # Car