]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Fixed speech engine after mercedes me upgrade
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 7 Jun 2019 20:26:44 +0000 (22:26 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 7 Jun 2019 20:26:44 +0000 (22:26 +0200)
script/speech_engine.yaml

index 6b1328aa18205876bb766d095911ad24a156f0ed..2ba10afd7476710e9998297aa89bd7fbfd043544 100644 (file)
@@ -79,25 +79,25 @@ speech_engine:
             {% else %}\r
               {% set car_position = "fuori" %}\r
             {% endif %}\r
-            {% if is_state('binary_sensor.car_doors_lock', 'off') %}\r
+            {% if is_state('binary_sensor.ff590mr_locked', 'off') %}\r
               {% set car_lock = "chiusa" %}\r
             {% else %}\r
               {% set car_lock = "aperta" %}\r
             {% endif %}\r
-            {% if is_state('binary_sensor.car_windows_lock', 'off') %}\r
+            {% if is_state('binary_sensor.ff590mr_windows_closed_2', 'off') %}\r
               {% set car_windows = "chiusi" %}\r
             {% else %}\r
               {% set car_windows = "aperti" %}\r
             {% endif %}\r
-            {% if is_state('binary_sensor.ff590mr_parkbreak_status', 'on') %}\r
+            {% if is_state('binary_sensor.ff590mr_park_brake_status', 'on') %}\r
               {% set car_parkbreak = "inserito" %}\r
             {% else %}\r
               {% set car_parkbreak = "non inserito" %}\r
             {% endif %}\r
             La Mercedes si trova {{ car_position }}. è {{ car_lock }}, con i finestrini {{ car_windows }} e il freno a mano {{ car_parkbreak }}.\r
-            Il livello del carburante è {{ states('sensor.ff590mr_tank_level') }} percento.\r
-            {% if is_state('binary_sensor.ff590mr_warning_breakfluid', 'on') or\r
-                  is_state('binary_sensor.ff590mr_warning_engine_light', 'on') or\r
+            Il livello del carburante è {{ states('sensor.sensor.ff590mr_fuel_level') }} percento.\r
+            {% if is_state('binary_sensor.ff590mr_warning_brakefluid', 'on') or\r
+                  is_state('binary_sensor.ff590mr_warning_coolantlevellow', 'on') or\r
                   is_state('binary_sensor.ff590mr_warning_washwater', 'on') %}\r
               Sono inoltre presenti allarmi.\r
             {% endif %}\r