--- /dev/null
+######################################################################
+# 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
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
--- /dev/null
+######################################################################
+# 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
+++ /dev/null
-######################################################################
-# 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
+++ /dev/null
-######################################################################
-# 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