]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Minor changes
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 8 Feb 2019 14:40:53 +0000 (15:40 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 8 Feb 2019 14:40:53 +0000 (15:40 +0100)
automation/day.yaml [new file with mode: 0644]
automation/home_assistant.yaml
automation/night.yaml [new file with mode: 0644]
automation/night_time.yaml [deleted file]
automation/wakeup_giorgio.yaml [deleted file]

diff --git a/automation/day.yaml b/automation/day.yaml
new file mode 100644 (file)
index 0000000..d6b71ba
--- /dev/null
@@ -0,0 +1,32 @@
+######################################################################
+# Wake Up Giorgio
+# - Every working day it opens Studio Cover
+######################################################################
+
+- alias: "Giorno: Risveglio Giorgio"
+  trigger:
+    - platform: time
+      at: '07:00:00'
+
+  condition:
+    condition: and
+    conditions:
+      - condition: state
+        entity_id: input_boolean.home_mode_away
+        state: 'off'
+
+      - condition: time
+        weekday:
+        - mon
+        - tue
+        - wed
+        - thu
+        - fri
+
+  action:
+    - service: cover.set_cover_position
+      data:
+        entity_id:
+          - cover.tapparella_cucina
+          - cover.tapparella_studio
+        position: 85
index 8ac3b7ac82579bad0626d41e5f28d1f0f8a2532c..e483a78cb64ffa349093e46613a45e8568717cf1 100644 (file)
   action:
     service: script.notify_text
     data_template:
-      #message: "Home Assistant {{ states.updater.updater.state }} is now available. {{now().strftime('%Y-%m-%d %I:%M %p')}}"
       title: "Home Assistant - Aggiornamento"
       message: "E' disponibile un aggiornamento per Home Assistant ({{ states.updater.updater.state }}). {{now().strftime('%Y-%m-%d %I:%M %p')}}"
       enable_persistant: true
diff --git a/automation/night.yaml b/automation/night.yaml
new file mode 100644 (file)
index 0000000..5afa974
--- /dev/null
@@ -0,0 +1,28 @@
+######################################################################
+# Night Time
+# - Switch off all covers
+######################################################################
+
+- alias: "Notte: Chiusura Tapparelle"
+  initial_state: 'off'
+
+  trigger:
+    - platform: state
+      entity_id: input_boolean.home_mode_night
+      to: 'on'
+
+  condition: []
+#    condition: state
+#    entity_id: input_boolean.home_mode_away
+#    state: 'off'
+
+  action:
+    - service: cover.set_cover_position
+      data:
+        entity_id: cover.all_covers
+        position: 15
+
+    - service: cover.set_cover_position
+      data:
+        entity_id: cover.tapparella_camera
+        position: 0
diff --git a/automation/night_time.yaml b/automation/night_time.yaml
deleted file mode 100644 (file)
index 5afa974..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-######################################################################
-# Night Time
-# - Switch off all covers
-######################################################################
-
-- alias: "Notte: Chiusura Tapparelle"
-  initial_state: 'off'
-
-  trigger:
-    - platform: state
-      entity_id: input_boolean.home_mode_night
-      to: 'on'
-
-  condition: []
-#    condition: state
-#    entity_id: input_boolean.home_mode_away
-#    state: 'off'
-
-  action:
-    - service: cover.set_cover_position
-      data:
-        entity_id: cover.all_covers
-        position: 15
-
-    - service: cover.set_cover_position
-      data:
-        entity_id: cover.tapparella_camera
-        position: 0
diff --git a/automation/wakeup_giorgio.yaml b/automation/wakeup_giorgio.yaml
deleted file mode 100644 (file)
index a7451a7..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-######################################################################
-# Wake Up Giorgio
-# - Every working day it opens Studio Cover
-######################################################################
-
-- alias: "Risveglio Giorgio"
-  trigger:
-    - platform: time
-      at: '07:00:00'
-
-  condition:
-    condition: and
-    conditions:
-      - condition: state
-        entity_id: input_boolean.home_mode_away
-        state: 'off'
-
-      - condition: time
-        weekday:
-        - mon
-        - tue
-        - wed
-        - thu
-        - fri
-
-  action:
-    - service: cover.set_cover_position
-      data:
-        entity_id:
-          - cover.tapparella_cucina
-          - cover.tapparella_studio
-        position: 85