From: Giorgio Ravera Date: Tue, 3 Sep 2019 19:51:36 +0000 (+0200) Subject: Removed parkbreak from script and unused car sensor X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=513a2186692e83bbad00447209dceb78f4efa4ce;p=homeassistant.git Removed parkbreak from script and unused car sensor --- diff --git a/binary_sensor/car.yaml b/binary_sensor/car.yaml index a1976bc1..d509c49b 100644 --- a/binary_sensor/car.yaml +++ b/binary_sensor/car.yaml @@ -1,22 +1,3 @@ -###################################################################### -# Binary Sensor: Doors Lock -###################################################################### - -- platform: template - sensors: - ff590mr_locked: - friendly_name: Vettura Bloccata - entity_id: lock.ff590mr_lock - value_template: >- - {{ is_state('lock.ff590mr_lock', 'locked') }} - icon_template: >- - {% if is_state('lock.ff590mr_lock', 'locked') %} - mdi:lock - {% else %} - mdi:lock-open - {% endif %} - device_class: lock - ###################################################################### # Binary Sensor: Doors Closed ###################################################################### diff --git a/script/speech_engine.yaml b/script/speech_engine.yaml index 1acb5c2c..583e8c5f 100644 --- a/script/speech_engine.yaml +++ b/script/speech_engine.yaml @@ -106,7 +106,7 @@ speech_engine: {% else %} {% set car_position = "fuori" %} {% endif %} - {% if is_state('binary_sensor.ff590mr_locked', 'off') %} + {% if is_state('lock.ff590mr_lock', 'locked') %} {% set car_lock = "chiusa" %} {% else %} {% set car_lock = "aperta" %} @@ -116,12 +116,7 @@ speech_engine: {% else %} {% set car_windows = "aperti" %} {% endif %} - {% if is_state('binary_sensor.ff590mr_park_brake_status', 'on') %} - {% set car_parkbreak = "inserito" %} - {% else %} - {% set car_parkbreak = "non inserito" %} - {% endif %} - La Mercedes si trova {{ car_position }}. è {{ car_lock }}, con i finestrini {{ car_windows }} e il freno a mano {{ car_parkbreak }}. + La Mercedes si trova {{ car_position }}. è {{ car_lock }} con i finestrini {{ car_windows }}. Il livello del carburante è {{ states('sensor.ff590mr_fuel_level') }} percento. {% if is_state('binary_sensor.ff590mr_warning_brakefluid', 'on') or is_state('binary_sensor.ff590mr_warning_coolantlevellow', 'on') or