]> git.giorgioravera.it Git - homeassistant.git/commitdiff
updated mercedes sensors.
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Sat, 27 Jun 2020 09:56:20 +0000 (11:56 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Sat, 27 Jun 2020 09:56:20 +0000 (11:56 +0200)
packages/mercedes/binary_sensor.yaml
packages/mercedes/customizations.yaml
packages/mercedes/log.yaml
templates/speech_message.yaml

index 2eeb94299920b3251ab53c32373731756fd6d006..6aa2c4c7dbc71dcd0bfd38ac7e56b58f68e4a297 100644 (file)
@@ -228,39 +228,3 @@ binary_sensor:
             mdi:window-open
           {% endif %}   
         device_class: opening
-
-  ######################################################################
-  # Binary Sensor: Warning Brake fluid
-  ######################################################################
-  - platform: template
-    sensors:
-      ff590mr_warning_brakefluid:
-        friendly_name: Liquido freni
-        entity_id: binary_sensor.ff590mr_engine_light_warning
-        value_template: >-
-          {{ is_state_attr('binary_sensor.ff590mr_engine_light_warning', 'warningbrakefluid', 'true') }}
-        device_class: problem
-
-  ######################################################################
-  # Binary Sensor: Warning Wash Water
-  ######################################################################
-  - platform: template
-    sensors:
-      ff590mr_warning_washwater:
-        friendly_name: Liquido lavacristalli
-        entity_id: binary_sensor.ff590mr_engine_light_warning
-        value_template: >-
-          {{ is_state_attr('binary_sensor.ff590mr_engine_light_warning', 'warningwashwater', 'true') }}
-        device_class: problem
-
-  ######################################################################
-  # Binary Sensor: Warning Coolant Level Low
-  ######################################################################
-  - platform: template
-    sensors:
-      ff590mr_warning_coolantlevellow:
-        friendly_name: Liquido raffreddamento
-        entity_id: binary_sensor.ff590mr_engine_light_warning
-        value_template: >-
-          {{ is_state_attr('binary_sensor.ff590mr_engine_light_warning', 'warningcoolantlevellow', 'true') }}
-        device_class: problem
index e77657c1bfb7eb495b5fb456deb6ad4488c4ba08..e14b8a247dd2a10ed009b663f7931ef5a1da3e7d 100644 (file)
@@ -18,9 +18,27 @@ homeassistant:
     #  icon: mdi:car-brake-parking
     #  # preWarningBrakeLiningWear
 
+    # Freni
+    binary_sensor.ff590mr_low_brake_fluid_warning:
+      friendly_name: Liquido Freni
+      device_class: problem
+      icon: mdi:car-brake-alert
+
+    # Liquido Raffreddamento
+    binary_sensor.ff590mr_low_coolant_level_warning:
+      friendly_name: Liquido Raffreddamento
+      device_class: problem
+      icon: mdi:coolant-temperature
+      
+    # Liquido Lavacristalli
+    binary_sensor.ff590mr_low_wash_water_warning:
+      friendly_name: Liquido Lavacristalli
+      device_class: problem
+      icon: mdi:wiper-wash
+
     # Pneumatici
     binary_sensor.ff590mr_tire_warning:
-      friendly_name: Allarme Pneumatici
+      friendly_name: Pneumatici
       device_class: problem
       icon: mdi:car-tire-alert
       # tirepressureRearLeft, tirepressureRearRight, tirepressureFrontRight, tirepressureFrontLeft, 
index 8c17dd8d8fcedf30a4aeca3d67792c9a8e5c4583..fc15c11c393bf20cd5115c15176968f712a8857d 100644 (file)
@@ -17,9 +17,6 @@ history:
     - binary_sensor.ff590mr_tire_warning\r
     - binary_sensor.ff590mr_trunk\r
     - binary_sensor.ff590mr_fuel_lid\r
-    #- binary_sensor.ff590mr_warning_brakefluid\r
-    #- binary_sensor.ff590mr_warning_coolantlevellow\r
-    #- binary_sensor.ff590mr_warning_washwater\r
     - binary_sensor.ff590mr_window_front_left\r
     - binary_sensor.ff590mr_window_front_right\r
     - binary_sensor.ff590mr_window_rear_left\r
@@ -62,9 +59,6 @@ logbook:
     - binary_sensor.ff590mr_tire_warning\r
     - binary_sensor.ff590mr_trunk\r
     - binary_sensor.ff590mr_fuel_lid\r
-    #- binary_sensor.ff590mr_warning_brakefluid\r
-    #- binary_sensor.ff590mr_warning_coolantlevellow\r
-    #- binary_sensor.ff590mr_warning_washwater\r
     - binary_sensor.ff590mr_window_front_left\r
     - binary_sensor.ff590mr_window_front_right\r
     - binary_sensor.ff590mr_window_rear_left\r
@@ -107,9 +101,6 @@ recorder:
     - binary_sensor.ff590mr_tire_warning\r
     - binary_sensor.ff590mr_trunk\r
     - binary_sensor.ff590mr_fuel_lid\r
-    #- binary_sensor.ff590mr_warning_brakefluid\r
-    #- binary_sensor.ff590mr_warning_coolantlevellow\r
-    #- binary_sensor.ff590mr_warning_washwater\r
     - binary_sensor.ff590mr_window_front_left\r
     - binary_sensor.ff590mr_window_front_right\r
     - binary_sensor.ff590mr_window_rear_left\r
index 877564a993cf7439c2b295ebc44f29c22574c87f..00fa3f3da5896d9e8b01a7e096e7d0edd0e21e40 100644 (file)
     {% endif %}\r
     La Mercedes si trova {{ car_position }}. è {{ car_lock }} con i finestrini {{ car_windows }}.\r
     Il livello del carburante è {{ states('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
+    {% if is_state('binary_sensor.ff590mr_low_brake_fluid_warning', 'on') or\r
+          is_state('binary_sensor.ff590mr_low_coolant_level_warning', 'on') or\r
+          is_state('binary_sensor.ff590mr_low_wash_water_warning', 'on') or\r
+          is_state('binary_sensor.ff590mr_tire_warning', 'on') %}\r
       Sono inoltre presenti allarmi.\r
     {% endif %}\r
   {%- endmacro -%}\r