From b89bda6829a4c082aa70c7699fb2667ff9aa3f3c Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Wed, 27 Mar 2019 20:03:26 +0100 Subject: [PATCH] Added volume manager to automation day/night --- automation/home_assistant.yaml | 4 ++- script/speech_engine.yaml | 4 +-- ui-lovelace.yaml | 52 ++++++++++++++++------------------ 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/automation/home_assistant.yaml b/automation/home_assistant.yaml index 11e78dc4..2705382c 100644 --- a/automation/home_assistant.yaml +++ b/automation/home_assistant.yaml @@ -80,7 +80,9 @@ input_boolean.home_mode_day {% else %} input_boolean.home_mode_night - {% endif %} + {% endif %} + + - service: script.volume_manager ###################################################################### # Home Assistant: Management of Speech Notifications diff --git a/script/speech_engine.yaml b/script/speech_engine.yaml index f7533883..eca9c13a 100644 --- a/script/speech_engine.yaml +++ b/script/speech_engine.yaml @@ -88,13 +88,13 @@ speech_engine: {% else %} {% set giorgio_position = states('device_tracker.google_maps_115265981849847357125') %} {% endif %} - La posizione di Laura è {{ laura_position }}. + La posizione di Giorgio è {{ giorgio_position }}. {% if is_state('device_tracker.google_maps_103158638433668748797', 'not_home') %} {% set laura_position = 'fuori casa' %} {% else %} {% set laura_position = states('device_tracker.google_maps_103158638433668748797') %} {% endif %} - La posizione di Giorgio è {{ giorgio_position }}. + La posizione di Laura è {{ laura_position }}. {%- endmacro -%} {# *********************************************** #} diff --git a/ui-lovelace.yaml b/ui-lovelace.yaml index 2555172f..c512266e 100644 --- a/ui-lovelace.yaml +++ b/ui-lovelace.yaml @@ -38,8 +38,8 @@ views: entities: - cover.tapparella_sala - climate.sala_termostato_sala - # - media_player.roku_yd00dm481414 - # - media_player.ue46c7000_samsung_dtv_rcr + - media_player.tv_sala + #- media_player.roku_yd00dm481414 - type: picture-glance title: Bagno @@ -130,8 +130,6 @@ views: - title: Dispositivi Multimediali id: multimedia icon: mdi:television - # badges: - # - binary_sensor.speech_notifications cards: - type: entities title: Google Home Cucina @@ -196,14 +194,14 @@ views: - binary_sensor.ff590mr_parkbreak_status - binary_sensor.ff590mr_decklid_status cards: -# - type: gauge -# title: "Livello Carburante" -# unit: '%' -# entity: sensor.ff590mr_tank_level -# severity: -# red: 0 -# yellow: 30 -# green: 60 + #- type: gauge + # title: "Livello Carburante" + # unit: '%' + # entity: sensor.ff590mr_tank_level + # severity: + # red: 0 + # yellow: 30 + # green: 60 - type: entities title: "Mercedes A200d: Sensori" @@ -214,7 +212,7 @@ views: - binary_sensor.ff590mr_warning_washwater - binary_sensor.ff590mr_warning_breakfluid - binary_sensor.ff590mr_warning_engine_light - # - device_tracker.wdd1760081v167576 + #- device_tracker.wdd1760081v167576 - type: entities title: "Mercedes A200d: Ruote" @@ -265,10 +263,10 @@ views: - sensor.ff590mr_licenseplate - sensor.ff590mr_liquid_consumption_reset - sensor.ff590mr_liquid_consumption_start - # - sensor.ff590mr_odometer + #- sensor.ff590mr_odometer #- sensor.ff590mr_liquid_range #- sensor.ff590mr_electric_distance_since_start - # - sensor.ff590mr_tank_level + #- sensor.ff590mr_tank_level #- sensor.ff590mr_electric_distance_ctritical_reset - sensor.ff590mr_distance_since_reset - sensor.ff590mr_distance_since_start @@ -276,18 +274,18 @@ views: ###################################################################### # Train ###################################################################### - - title: Treni - id: train - icon: mdi:train - cards: - - type: entities - title: "Savona - Genova Sampierdarena" - show_header_toggle: false - entities: -# - sensor.train_11341 -# - sensor.train_11233 - - sensor.treno_7_35 -# - sensor.train_11283 +# - title: Treni +# id: train +# icon: mdi:train +# cards: +# - type: entities +# title: "Savona - Genova Sampierdarena" +# show_header_toggle: false +# entities: +# #- sensor.train_11341 +# #- sensor.train_11233 +# - sensor.treno_7_35 +# #- sensor.train_11283 # - type: entities # title: "Genova Sampierdarena - Savona" # show_header_toggle: false -- 2.47.3