]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Added possibility to set the end of away mode
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 19 Jul 2019 19:58:30 +0000 (21:58 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 19 Jul 2019 19:58:30 +0000 (21:58 +0200)
automation/home_assistant.yaml
configuration.yaml
customizations/group.yaml
customizations/home_assistant.yaml
input_datetime/input_datetime.yaml [new file with mode: 0644]
ui-lovelace.yaml

index b9b543554466330fdc369eda2e4e5c6fa8622d22..41d022d41589703fbc032fcc066029ad7ae653fe 100644 (file)
@@ -99,6 +99,8 @@
         # - device_tracker.google_maps_113099283296073047871
       zone: zone.casa
       event: enter
+    - platform: template
+      value_template: "{{ states('sensor.time_date') == (state_attr('input_datetime.away_mode_end', 'timestamp') | int | timestamp_custom('%H:%M, %Y-%m-%d', true)) }}"
 
   condition: []
 
index 69cbcf352df712787e3ec4727c5d31bb08d6b430..e78d479e747c5b6e62a9d6ec475bed6ede9838b1 100644 (file)
@@ -54,8 +54,8 @@ updater:
 
 # Discover some devices automatically
 discovery:
-#  ignore:
-#    - roku
+  ignore:
+    - roku
 #    - google_cast
 
 # Allows you to issue voice commands from the frontend in enabled browsers
@@ -104,6 +104,7 @@ media_player: !include_dir_merge_list media_player/
 # Inputs
 input_boolean: !include_dir_merge_named input_boolean/
 input_text: !include_dir_merge_named input_text/
+input_datetime: !include_dir_merge_named input_datetime/
 #input_number: !include_dir_merge_list input_number/
 
 # Shell commands
index 19761fe675a6d1d687970f50a780b4e8826c1991..d96f489b28d6ffefe429d9aec941257e8de58568 100644 (file)
@@ -2,43 +2,6 @@
 # Group Customization for the order view
 ######################################################################
 
-group.default_view:
-  order: 0
-group.cucina:
-  order: 1
-group.sala:
-  order: 2
-group.bagno:
-  order: 3
-group.studio:
-  order: 4
-group.camera:
-  order: 5
-
-group.covers:
-  order: 10
-
-group.climate:
-  order: 11
-
-group.media_player:
-  order: 12
-
-group.people:
-  order: 13
-
-group.car:
-  order: 14
-
-group.network:
-  order: 15
-
-group.weather:
-  order: 16
-
-group.settings:
-  order: 17
-
 group.all_automations:
   hidden: false
   control: hidden
index b5e9ac8903153701963ad6f309429cd5f119ca98..33f9d580ab966ae8f1609571bad7a589ef9421a6 100644 (file)
@@ -13,3 +13,9 @@ script.homeassistant_upgrade:
 
 script.homeassistant_google_home_sync:
   icon: mdi:google
+
+input_datetime.away_mode_end:
+  icon: mdi:airplane-takeoff
+
+#input_datetime.washing_machine_end:
+#  icon: mdi:washing-machine
diff --git a/input_datetime/input_datetime.yaml b/input_datetime/input_datetime.yaml
new file mode 100644 (file)
index 0000000..22ffda2
--- /dev/null
@@ -0,0 +1,16 @@
+######################################################################\r
+# Home Assistant: End of Away Mode\r
+######################################################################\r
+away_mode_end:\r
+  name: "Fine Vacanza"\r
+  has_time: true\r
+  has_date: true\r
+\r
+######################################################################\r
+# Washing Machine: End of Work\r
+######################################################################\r
+\r
+#washing_machine_end:\r
+#  name: "Avvia Lavatrice"\r
+#  has_time: true\r
+#  has_date: false\r
index 2c946224e4e843e09317508535a52027a2630019..deba2d1f57be15d4749a415eb69d703491cce3fe 100644 (file)
@@ -41,6 +41,7 @@ views:
         "on": /local/rooms/sala_on.jpg
         "off": /local/rooms/sala_off.jpg
       entity: light.luce_divano
+      #entity: group.lights_livingroom
       entities: 
       - light.luce_divano
       - light.luce_divano_bianca
@@ -66,6 +67,7 @@ views:
         "on": /local/rooms/bagno_on.jpg
         "off": /local/rooms/bagno_off.jpg
       entity: light.luce_bagno
+      #entity: group.lights_bathroom
       entities: 
       - light.luce_bagno
       - light.luce_specchio
@@ -110,6 +112,12 @@ views:
       entities:
       - script.speech_status
 
+    - type: entities
+      title: Eventi
+      show_header_toggle: false
+      entities:
+      - input_datetime.away_mode_end
+      
 ######################################################################
 # Lights
 ######################################################################