From: Giorgio Ravera Date: Fri, 19 Jul 2019 19:58:30 +0000 (+0200) Subject: Added possibility to set the end of away mode X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=dfd81f8341e6a4ddfe81be323378ee8b2ac98ae8;p=homeassistant.git Added possibility to set the end of away mode --- diff --git a/automation/home_assistant.yaml b/automation/home_assistant.yaml index b9b54355..41d022d4 100644 --- a/automation/home_assistant.yaml +++ b/automation/home_assistant.yaml @@ -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: [] diff --git a/configuration.yaml b/configuration.yaml index 69cbcf35..e78d479e 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -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 diff --git a/customizations/group.yaml b/customizations/group.yaml index 19761fe6..d96f489b 100644 --- a/customizations/group.yaml +++ b/customizations/group.yaml @@ -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 diff --git a/customizations/home_assistant.yaml b/customizations/home_assistant.yaml index b5e9ac89..33f9d580 100644 --- a/customizations/home_assistant.yaml +++ b/customizations/home_assistant.yaml @@ -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 index 00000000..22ffda2c --- /dev/null +++ b/input_datetime/input_datetime.yaml @@ -0,0 +1,16 @@ +###################################################################### +# Home Assistant: End of Away Mode +###################################################################### +away_mode_end: + name: "Fine Vacanza" + has_time: true + has_date: true + +###################################################################### +# Washing Machine: End of Work +###################################################################### + +#washing_machine_end: +# name: "Avvia Lavatrice" +# has_time: true +# has_date: false diff --git a/ui-lovelace.yaml b/ui-lovelace.yaml index 2c946224..deba2d1f 100644 --- a/ui-lovelace.yaml +++ b/ui-lovelace.yaml @@ -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 ######################################################################