From 30441091ac1c296a3f4660a2b17b1e10618cbf42 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Sat, 8 Jun 2019 19:50:16 +0200 Subject: [PATCH] Minor fiexes --- binary_sensor/car.yaml | 4 ++-- components/google_assistant.yaml | 16 ++++++++++++++++ script/speech_engine.yaml | 20 ++++++++++---------- 3 files changed, 28 insertions(+), 12 deletions(-) diff --git a/binary_sensor/car.yaml b/binary_sensor/car.yaml index 524ed963..2971920c 100644 --- a/binary_sensor/car.yaml +++ b/binary_sensor/car.yaml @@ -27,9 +27,9 @@ friendly_name: Porte entity_id: sensor.ff590mr_lock value_template: >- - {{ not is_state_attr('sensor.ff590mr_lock', 'doorsClosed', 'true') }} + {{ not is_state_attr('sensor.ff590mr_lock', 'doorsClosed', true) }} icon_template: >- - {% if is_state_attr('sensor.ff590mr_lock', 'doorsClosed', 'true') %} + {% if is_state_attr('sensor.ff590mr_lock', 'doorsClosed', true) %} mdi:car-door {% else %} mdi:car-door diff --git a/components/google_assistant.yaml b/components/google_assistant.yaml index 5e34e5f8..877434c5 100644 --- a/components/google_assistant.yaml +++ b/components/google_assistant.yaml @@ -75,3 +75,19 @@ entity_config: script.speech_status: expose: true room: Generale + script.homeassistant_restart: + name: Riavvia Homeassistant + expose: true + room: Generale + script.homeassistant_upgrade: + name: Aggiorna Homeassistant + expose: true + room: Generale + script.homeassistant_google_home_sync: + name: Sincronizza Homeassistant + expose: true + room: Generale + script.shelly_upgrade: + name: Aggiorna Shelly + expose: true + room: Generale diff --git a/script/speech_engine.yaml b/script/speech_engine.yaml index 28fbc470..e8b97172 100644 --- a/script/speech_engine.yaml +++ b/script/speech_engine.yaml @@ -36,7 +36,7 @@ speech_engine: Buonanotte. {% endif %} {%- endmacro -%} - + {# Time & Date #} {%- macro time_and_date() -%} {% set hour = now().strftime('%H') %} @@ -118,7 +118,7 @@ speech_engine: {% endif %} La posizione di Laura è {{ laura_position }}. {%- endmacro -%} - + {# End Message #} {%- macro end_message() -%} {% if enable_status is defined %} @@ -132,7 +132,7 @@ speech_engine: {% endif %} {% endif %} {%- endmacro -%} - + {# *********************************************** #} {# ******************* Message ******************* #} {# *********************************************** #} @@ -146,20 +146,20 @@ speech_engine: {% if enable_status is defined %} {% if enable_status | int == 1 %} - + {{ time_and_date() }} - + {{ status_lights() }} - + {{ status_covers() }} - + {{ status_location() }} - + {{ status_car() }} - + {% endif %} {% endif %} - + {# generic message #} {{ message }} -- 2.47.3