From afd5754e8ef7271b6be94ec48fc8395d93fb40c1 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Fri, 7 Jun 2019 09:55:53 +0200 Subject: [PATCH] Added tire pressure sensors --- binary_sensor/car.yaml | 6 ++--- customizations/car.yaml | 16 +------------ sensor/car.yaml | 51 +++++++++++++++++++++++++++++++++++------ ui-lovelace.yaml | 2 +- 4 files changed, 49 insertions(+), 26 deletions(-) diff --git a/binary_sensor/car.yaml b/binary_sensor/car.yaml index 1fdc93d5..7e3d7db5 100644 --- a/binary_sensor/car.yaml +++ b/binary_sensor/car.yaml @@ -1,5 +1,5 @@ ###################################################################### -# Binary Sensor: Car Doors Lock +# Binary Sensor: Doors Lock ###################################################################### - platform: template @@ -76,7 +76,7 @@ {{ is_state_attr('binary_sensor.ff590mr_engine_light_warning', 'warningbrakefluid', 'true') }} ###################################################################### -# Binary Sensor: Warning washwater +# Binary Sensor: Warning Wash Water ###################################################################### - platform: template @@ -89,7 +89,7 @@ {{ is_state_attr('binary_sensor.ff590mr_engine_light_warning', 'warningwashwater', 'true') }} ###################################################################### -# Binary Sensor: Warning coolant level low +# Binary Sensor: Warning Coolant Level Low ###################################################################### - platform: template diff --git a/customizations/car.yaml b/customizations/car.yaml index c26e7478..9111b248 100644 --- a/customizations/car.yaml +++ b/customizations/car.yaml @@ -18,7 +18,7 @@ binary_sensor.ff590mr_tire_warning: icon: mdi:car-tire-alert # lastTirepressureTimestamp # tireWarningRollup - # tireMarkerFrontLeft, tireMarkerRearLeft, tireMarkerRearRight + # tirewarningsrdk # tirepressureFrontLeft, tirepressureFrontRight, tirepressureRearLeft, tirepressureRearRight binary_sensor.ff590mr_windows_closed: friendly_name: Finestrini @@ -59,20 +59,6 @@ sensor.ff590mr_odometer_2: -# Pressione gomme -sensor.ff590mr_tire_pressure_front_left: - friendly_name: Anteriore Sinistra - icon: mdi:car-tire-alert -sensor.ff590mr_tire_pressure_front_right: - friendly_name: Anteriore Destra - icon: mdi:car-tire-alert -sensor.ff590mr_tire_pressure_rear_left: - friendly_name: Posteriore Sinistra - icon: mdi:car-tire-alert -sensor.ff590mr_tire_pressure_rear_right: - friendly_name: Posteriore Destra - icon: mdi:car-tire-alert - # Finestrini sensor.ff590mr_window_front_left: friendly_name: Anteriore Destro diff --git a/sensor/car.yaml b/sensor/car.yaml index a71f785e..4add2e55 100644 --- a/sensor/car.yaml +++ b/sensor/car.yaml @@ -1,10 +1,47 @@ ###################################################################### -# Binary Sensor: Car Doors Lock +# Sensor: Tire Pressure Front Left ###################################################################### -#- platform: template -# sensors: -# ff590mr_tank_level: -# friendly_name: "Sala" -# value_template: "{{ state_attr('cover.tapparella_sala', 'current_position') }}" -# unit_of_measurement: '%' \ No newline at end of file +- platform: template + sensors: + ff590mr_tire_pressure_front_left: + friendly_name: Anteriore Sinistra + icon: mdi:car-tire-alert + value_template: "{{ state_attr('binary_sensor.ff590mr_tire_warning', 'tirepressureFrontLeft') }}" + unit_of_measurement: '%' + +###################################################################### +# Sensor: Tire Pressure Front Right +###################################################################### + +- platform: template + sensors: + ff590mr_tire_pressure_front_right: + friendly_name: Anteriore Destra + icon: mdi:car-tire-alert + value_template: "{{ state_attr('binary_sensor.ff590mr_tire_warning', 'tirepressureFrontRight') }}" + unit_of_measurement: '%' + +###################################################################### +# Sensor: Tire Pressure Rear Left +###################################################################### + +- platform: template + sensors: + ff590mr_tire_pressure_rear_left: + friendly_name: Posteriore Sinistra + icon: mdi:car-tire-alert + value_template: "{{ state_attr('binary_sensor.ff590mr_tire_warning', 'tirepressureRearLeft') }}" + unit_of_measurement: '%' + +###################################################################### +# Sensor: Tire Pressure Rear Right +###################################################################### + +- platform: template + sensors: + ff590mr_tire_pressure_rear_right: + friendly_name: Posteriore Destra + icon: mdi:car-tire-alert + value_template: "{{ state_attr('binary_sensor.ff590mr_tire_warning', 'tirepressureRearRight') }}" + unit_of_measurement: '%' diff --git a/ui-lovelace.yaml b/ui-lovelace.yaml index 2f57a4fa..d64a41f1 100644 --- a/ui-lovelace.yaml +++ b/ui-lovelace.yaml @@ -374,7 +374,7 @@ views: # - binary_sensor.ff590mr_park_brake_status # - binary_sensor.ff590mr_status_decklid - binary_sensor.ff590mr_engine_light_warning - - binary_sensor.ff590mr_tire_warning + #- binary_sensor.ff590mr_tire_warning - binary_sensor.ff590mr_doors_closed - binary_sensor.ff590mr_windows_closed - lock.ff590mr_lock -- 2.47.3