default: info
logs:
- custom_components.mercedesmeapi: warn
+ custom_components.mbapi2020: warn
googleapiclient.discovery: warn
homeassistant.components.automation: info
homeassistant.components.device_tracker: warn
--- /dev/null
+######################################################################
+# Mercedes Package - Binary Sensor
+######################################################################
+
+binary_sensor:
+ ######################################################################
+ # Binary Sensor: Doors Lock
+ ######################################################################
+ - platform: template
+ sensors:
+ ff590mr_locked:
+ friendly_name: Blocco Vettura
+ value_template: >-
+ {% if not is_state('sensor.ff590mr_lock', '2') %}
+ true
+ {% else %}
+ false
+ {% endif %}
+ icon_template: >-
+ {% if is_state('sensor.ff590mr_lock' '2') %}
+ mdi:lock
+ {% else %}
+ mdi:lock-open
+ {% endif %}
+ device_class: lock
+
+ ######################################################################
+ # Binary Sensor: Doors Closed
+ ######################################################################
+ - platform: template
+ sensors:
+ ff590mr_doors_closed:
+ friendly_name: Porte
+ value_template: >-
+ {{ (is_state_attr('binary_sensor.ff590mr_windows_closed', 'doorstatusfrontleft', 'false') and
+ is_state_attr('binary_sensor.ff590mr_windows_closed', 'doorstatusfrontright', 'false') and
+ is_state_attr('binary_sensor.ff590mr_windows_closed', 'doorstatusrearleft', 'false') and
+ is_state_attr('binary_sensor.ff590mr_windows_closed', 'doorstatusrearright', 'false')) }}
+ icon_template: mdi:car-door
+ device_class: opening
+
+ ######################################################################
+ # Binary Sensor: Door Front Left
+ ######################################################################
+ - platform: template
+ sensors:
+ ff590mr_door_front_left:
+ friendly_name: Anteriore Sinistra
+ value_template: >-
+ {{ is_state_attr('sensor.ff590mr_lock', 'doorstatusfrontleft', '2') }}
+ icon_template: mdi:car-door
+ device_class: opening
+
+ ######################################################################
+ # Binary Sensor: Door Front Right
+ ######################################################################
+ - platform: template
+ sensors:
+ ff590mr_door_front_right:
+ friendly_name: Anteriore Destra
+ value_template: >-
+ {{ is_state_attr('sensor.ff590mr_lock', 'doorstatusfrontright', '2') }}
+ icon_template: mdi:car-door
+ device_class: opening
+
+ ######################################################################
+ # Binary Sensor: Door Rear Left
+ ######################################################################
+ - platform: template
+ sensors:
+ ff590mr_door_rear_left:
+ friendly_name: Posteriore Sinistra
+ value_template: >-
+ {{ is_state_attr('sensor.ff590mr_lock', 'doorstatusrearleft', '2') }}
+ icon_template: mdi:car-door
+ device_class: opening
+
+ ######################################################################
+ # Binary Sensor: Door Rear Right
+ ######################################################################
+ - platform: template
+ sensors:
+ ff590mr_door_rear_right:
+ friendly_name: Posteriore Destra
+ value_template: >-
+ {{ is_state_attr('sensor.ff590mr_lock', 'doorstatusrearright', '2') }}
+ icon_template: mdi:car-door
+ device_class: opening
+
+ ######################################################################
+ # Binary Sensor: Trunk
+ ######################################################################
+ #- platform: template
+ # sensors:
+ # ff590mr_trunk:
+ # friendly_name: Bagagliaio
+ # value_template: >-
+ # {{ not (is_state_attr('sensor.ff590mr_lock', 'trunkStateRollup', 'CLOSED_AND_LOCKED') or
+ # is_state_attr('sensor.ff590mr_lock', 'trunkStateRollup', 'CLOSED_AND_UNLOCKED')) }}
+ # icon_template: >-
+ # {% if (is_state_attr('sensor.ff590mr_lock', 'trunkStateRollup', 'CLOSED_AND_LOCKED') or
+ # is_state_attr('sensor.ff590mr_lock', 'trunkStateRollup', 'CLOSED_AND_UNLOCKED')) %}
+ # mdi:lock
+ # {% else %}
+ # mdi:lock-open
+ # {% endif %}
+ # device_class: opening
+
+ ######################################################################
+ # Binary Sensor: Deck Lid
+ ######################################################################
+ - platform: template
+ sensors:
+ ff590mr_fuel_lid:
+ friendly_name: Serbatoio
+ value_template: >-
+ {{ is_state_attr('sensor.ff590mr_lock', 'decklidstatus', true) }}
+ icon_template: >-
+ {% if is_state_attr('sensor.ff590mr_lock', 'decklidstatus', true) %}
+ mdi:gas-station
+ {% else %}
+ mdi:gas-station
+ {% endif %}
+ device_class: opening
+
+ ######################################################################
+ # Binary Sensor: Windows Closed
+ ######################################################################
+ - platform: template
+ sensors:
+ ff590mr_windows_closed_2:
+ friendly_name: Finestrini
+ value_template: >-
+ {{ is_state('binary_sensor.ff590mr_windows_closed', 'true') }}
+ icon_template: >-
+ {% if not is_state('binary_sensor.ff590mr_windows_closed', '2') %}
+ mdi:window-closed
+ {% else %}
+ mdi:window-open
+ {% endif %}
+ device_class: opening
+
+ ######################################################################
+ # Binary Sensor: Window Front Left
+ ######################################################################
+ - platform: template
+ sensors:
+ ff590mr_window_front_left:
+ friendly_name: Anteriore Sinistro
+ value_template: >-
+ {% if is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusfrontleft', '2') %}
+ false
+ {% else %}
+ true
+ {% endif %}
+ icon_template: >-
+ {% if is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusfrontleft', '2') %}
+ mdi:window-closed
+ {% else %}
+ mdi:window-open
+ {% endif %}
+ device_class: opening
+
+ ######################################################################
+ # Binary Sensor: Window Front Right
+ ######################################################################
+ - platform: template
+ sensors:
+ ff590mr_window_front_right:
+ friendly_name: Anteriore Destro
+ value_template: >-
+ {% if is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusfrontright', '2') %}
+ false
+ {% else %}
+ true
+ {% endif %}
+ icon_template: >-
+ {% if is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusfrontright', '2') %}
+ mdi:window-closed
+ {% else %}
+ mdi:window-open
+ {% endif %}
+ device_class: opening
+
+ ######################################################################
+ # Binary Sensor: Window Rear Left
+ ######################################################################
+ - platform: template
+ sensors:
+ ff590mr_window_rear_left:
+ friendly_name: Posteriore Sinistro
+ value_template: >-
+ {% if is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusrearleft', '2') %}
+ false
+ {% else %}
+ true
+ {% endif %}
+ icon_template: >-
+ {% if is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusrearleft', '2') %}
+ mdi:window-closed
+ {% else %}
+ mdi:window-open
+ {% endif %}
+ device_class: opening
+
+ ######################################################################
+ # Binary Sensor: Window Rear Right
+ ######################################################################
+ - platform: template
+ sensors:
+ ff590mr_window_rear_right:
+ friendly_name: Posteriore Destro
+ value_template: >-
+ {% if is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusrearright', '2') %}
+ false
+ {% else %}
+ true
+ {% endif %}
+ icon_template: >-
+ {% if is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusrearright', '2') %}
+ mdi:window-closed
+ {% else %}
+ mdi:window-open
+ {% endif %}
+ device_class: opening
+++ /dev/null
-######################################################################
-# Mercedes Package - Binary Sensor
-######################################################################
-
-binary_sensor:
- ######################################################################
- # Binary Sensor: Doors Lock
- ######################################################################
- - platform: template
- sensors:
- ff590mr_locked:
- friendly_name: Vettura Bloccata
- value_template: >-
- {{ not 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
- ######################################################################
- - platform: template
- sensors:
- ff590mr_doors_closed:
- friendly_name: Porte
- value_template: >-
- {{ not is_state_attr('sensor.ff590mr_lock', 'doorsClosed', true) }}
- icon_template: >-
- {% if is_state_attr('sensor.ff590mr_lock', 'doorsClosed', true) %}
- mdi:car-door
- {% else %}
- mdi:car-door
- {% endif %}
- device_class: opening
-
- ######################################################################
- # Binary Sensor: Door Front Left
- ######################################################################
- - platform: template
- sensors:
- ff590mr_door_front_left:
- friendly_name: Anteriore Sinistra
- value_template: >-
- {{ not (is_state_attr('sensor.ff590mr_lock', 'doorStateFrontLeft', 'DOOR_CLOSED_AND_DOOR_LOCKED') or
- is_state_attr('sensor.ff590mr_lock', 'doorStateFrontLeft', 'DOOR_CLOSED_AND_DOOR_UNLOCKED')) }}
- icon_template: mdi:car-door
- device_class: opening
-
- ######################################################################
- # Binary Sensor: Door Front Right
- ######################################################################
- - platform: template
- sensors:
- ff590mr_door_front_right:
- friendly_name: Anteriore Destra
- value_template: >-
- {{ not (is_state_attr('sensor.ff590mr_lock', 'doorStateFrontRight', 'DOOR_CLOSED_AND_DOOR_LOCKED') or
- is_state_attr('sensor.ff590mr_lock', 'doorStateFrontRight', 'DOOR_CLOSED_AND_DOOR_UNLOCKED')) }}
- icon_template: mdi:car-door
- device_class: opening
-
- ######################################################################
- # Binary Sensor: Door Rear Left
- ######################################################################
- - platform: template
- sensors:
- ff590mr_door_rear_left:
- friendly_name: Posteriore Sinistra
- value_template: >-
- {{ not (is_state_attr('sensor.ff590mr_lock', 'doorStateRearLeft', 'DOOR_CLOSED_AND_DOOR_LOCKED') or
- is_state_attr('sensor.ff590mr_lock', 'doorStateRearLeft', 'DOOR_CLOSED_AND_DOOR_UNLOCKED')) }}
- icon_template: mdi:car-door
- device_class: opening
-
- ######################################################################
- # Binary Sensor: Door Rear Right
- ######################################################################
- - platform: template
- sensors:
- ff590mr_door_rear_right:
- friendly_name: Posteriore Destra
- value_template: >-
- {{ not (is_state_attr('sensor.ff590mr_lock', 'doorStateRearRight', 'DOOR_CLOSED_AND_DOOR_LOCKED') or
- is_state_attr('sensor.ff590mr_lock', 'doorStateRearRight', 'DOOR_CLOSED_AND_DOOR_UNLOCKED')) }}
- icon_template: mdi:car-door
- device_class: opening
-
- ######################################################################
- # Binary Sensor: Trunk
- ######################################################################
- - platform: template
- sensors:
- ff590mr_trunk:
- friendly_name: Bagagliaio
- value_template: >-
- {{ not (is_state_attr('sensor.ff590mr_lock', 'trunkStateRollup', 'CLOSED_AND_LOCKED') or
- is_state_attr('sensor.ff590mr_lock', 'trunkStateRollup', 'CLOSED_AND_UNLOCKED')) }}
- icon_template: >-
- {% if (is_state_attr('sensor.ff590mr_lock', 'trunkStateRollup', 'CLOSED_AND_LOCKED') or
- is_state_attr('sensor.ff590mr_lock', 'trunkStateRollup', 'CLOSED_AND_UNLOCKED')) %}
- mdi:lock
- {% else %}
- mdi:lock-open
- {% endif %}
- device_class: opening
-
- ######################################################################
- # Binary Sensor: Fuel Lid
- ######################################################################
- - platform: template
- sensors:
- ff590mr_fuel_lid:
- friendly_name: Serbatoio
- value_template: >-
- {{ not is_state_attr('sensor.ff590mr_lock', 'fuelLidClosed', true) }}
- icon_template: >-
- {% if is_state_attr('sensor.ff590mr_lock', 'fuelLidClosed', true) %}
- mdi:gas-station
- {% else %}
- mdi:gas-station
- {% endif %}
- device_class: opening
-
- ######################################################################
- # Binary Sensor: Windows Closed
- ######################################################################
- - platform: template
- sensors:
- ff590mr_windows_closed_2:
- friendly_name: Finestrini
- value_template: >-
- {{ not (is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusfrontleft', 'CLOSED') and
- is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusfrontright', 'CLOSED') and
- is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusrearleft', 'CLOSED') and
- is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusrearright', 'CLOSED')) }}
- icon_template: >-
- {% if (is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusfrontleft', 'CLOSED') and
- is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusfrontright', 'CLOSED') and
- is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusrearleft', 'CLOSED') and
- is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusrearright', 'CLOSED')) %}
- mdi:window-closed
- {% else %}
- mdi:window-open
- {% endif %}
- device_class: opening
-
- ######################################################################
- # Binary Sensor: Window Front Left
- ######################################################################
- - platform: template
- sensors:
- ff590mr_window_front_left:
- friendly_name: Anteriore Sinistro
- value_template: >-
- {{ not is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusfrontleft', 'CLOSED') }}
- icon_template: >-
- {% if is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusfrontleft', 'CLOSED') %}
- mdi:window-closed
- {% else %}
- mdi:window-open
- {% endif %}
- device_class: opening
-
- ######################################################################
- # Binary Sensor: Window Front Right
- ######################################################################
- - platform: template
- sensors:
- ff590mr_window_front_right:
- friendly_name: Anteriore Destro
- value_template: >-
- {{ not is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusfrontright', 'CLOSED') }}
- icon_template: >-
- {% if is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusfrontright', 'CLOSED') %}
- mdi:window-closed
- {% else %}
- mdi:window-open
- {% endif %}
- device_class: opening
-
- ######################################################################
- # Binary Sensor: Window Rear Left
- ######################################################################
- - platform: template
- sensors:
- ff590mr_window_rear_left:
- friendly_name: Posteriore Sinistro
- value_template: >-
- {{ not is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusrearleft', 'CLOSED') }}
- icon_template: >-
- {% if is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusrearleft', 'CLOSED') %}
- mdi:window-closed
- {% else %}
- mdi:window-open
- {% endif %}
- device_class: opening
-
- ######################################################################
- # Binary Sensor: Window Rear Right
- ######################################################################
- - platform: template
- sensors:
- ff590mr_window_rear_right:
- friendly_name: Posteriore Destro
- value_template: >-
- {{ not is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusrearright', 'CLOSED') }}
- icon_template: >-
- {% if is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusrearright', 'CLOSED') %}
- mdi:window-closed
- {% else %}
- mdi:window-open
- {% endif %}
- device_class: opening
--- /dev/null
+######################################################################
+# Mercedes Package - Customizations
+######################################################################
+
+homeassistant:
+ customize:
+ # Stato Generale - warningenginelight
+ binary_sensor.ff590mr_engine_light_warning:
+ friendly_name: Stato Generale
+ device_class: problem
+ icon: mdi:hazard-lights
+ # warningbrakefluid, warningwashwater, warningcoolantlevellow, warninglowbattery
+
+ # Freno a Mano - parkbrakestatus
+ #binary_sensor.ff590mr_park_brake_status:
+ # friendly_name: Freno a mano
+ # device_class: plug
+ # 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 - tirewarninglamp
+ binary_sensor.ff590mr_tire_warning:
+ friendly_name: Pneumatici
+ device_class: problem
+ icon: mdi:car-tire-alert
+ # tirepressureRearLeft, tirepressureRearRight, tirepressureFrontRight, tirepressureFrontLeft,
+ # tireMarkerFrontRight, tireMarkerFrontLeft, tireMarkerRearLeft, tireMarkerRearRight, tirewarningsrdk, tirewarningsprw,
+
+ # Finestrini
+ binary_sensor.ff590mr_windows_closed:
+ friendly_name: Finestrini
+ device_class: opening
+ icon: mdi:window-closed
+ # windowstatusrearleft, windowstatusrearright, windowstatusfrontright, windowstatusfrontleft
+
+ # Device Tracker
+ device_tracker.ff590mr_device_tracker:
+ friendly_name: Mercedes A200d
+ entity_picture: /local/images/device-trackers/mercedes.jpg
+
+ # Lock
+ lock.ff590mr_lock:
+ friendly_name: Blocco Sblocco
+ icon: mdi:lock-open
+
+ # Sensore Carburante
+ sensor.ff590mr_fuel_level:
+ friendly_name: Livello Carburante
+ icon: mdi:gas-station
+ # tankLevelAdBlue
+
+ # Blocco Veicolo - lock
+ sensor.ff590mr_lock:
+ friendly_name: Veicolo
+ icon: mdi:lock-open
+ # doorStateFrontLeft, doorStateFrontRight, doorStateRearLeft, doorStateRearRight,
+ # frontLeftDoorLocked, frontRightDoorLocked, rearLeftDoorLocked, rearRightDoorLocked,
+ # frontLeftDoorClosed, frontRightDoorClosed, rearLeftDoorClosed, rearRightDoorClosed,
+ # doorsClosed, trunkStateRollup, sunroofstatus, fuelLidClosed, engineHoodClosed
+
+ # Odometria
+ sensor.ff590mr_odometer:
+ friendly_name: Km Percorsi
+ icon: mdi:road-variant
+ # distanceReset, distanceStart, averageSpeedReset, averageSpeedStart, distanceZEReset,
+ # drivenTimeZEReset, drivenTimeReset, drivenTimeStart, ecoscoretotal, ecoscorefreewhl, ecoscorebonusrange, ecoscoreconst, ecoscoreaccel,
+ # gasconsumptionstart, gasconsumptionreset, gasTankRange, gasTankLevel,
+ # liquidconsumptionstart, liquidconsumptionreset, liquidRangeSkipIndication, rangeliquid, serviceintervaldays, tanklevelpercent, tankReserveLamp,
+ # batteryState, tankLevelAdBlue
+++ /dev/null
-######################################################################
-# Mercedes Package - Customizations
-######################################################################
-
-homeassistant:
- customize:
- # Stato Generale
- binary_sensor.ff590mr_engine_light_warning:
- friendly_name: Stato Generale
- device_class: problem
- icon: mdi:hazard-lights
- # warningbrakefluid, warningwashwater, warningcoolantlevellow, warninglowbattery
-
- # Freno a Mano
- #binary_sensor.ff590mr_park_brake_status:
- # friendly_name: Freno a mano
- # device_class: plug
- # 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: Pneumatici
- device_class: problem
- icon: mdi:car-tire-alert
- # tirepressureRearLeft, tirepressureRearRight, tirepressureFrontRight, tirepressureFrontLeft,
- # tirewarningsrdk, tirewarningsprwtireMarkerFrontRight, tireMarkerFrontLeft, tireMarkerRearLeft, tireMarkerRearRight,
- # tireWarningRollup, lastTirepressureTimestamp
-
- # Finestrini
- binary_sensor.ff590mr_windows_closed:
- friendly_name: Finestrini
- device_class: opening
- icon: mdi:window-closed
- # windowstatusrearleft, windowstatusrearright, windowstatusfrontright, windowstatusfrontleft
-
- # Lock
- lock.ff590mr_lock:
- friendly_name: Blocco Sblocco
- icon: mdi:lock-open
-
- # Sensore Carburante
- sensor.ff590mr_fuel_level:
- friendly_name: Livello Carburante
- icon: mdi:gas-station
-
- # Blocco Veicolo
- sensor.ff590mr_lock:
- friendly_name: Veicolo
- icon: mdi:lock-open
- # doorStateFrontLeft, doorStateFrontRight, doorStateRearLeft, doorStateRearRight,
- # frontLeftDoorLocked, frontRightDoorLocked, rearLeftDoorLocked, rearRightDoorLocked,
- # frontLeftDoorClosed, frontRightDoorClosed, rearLeftDoorClosed, rearRightDoorClosed,
- # doorsClosed, trunkStateRollup, sunroofstatus
-
- # Odometria
- sensor.ff590mr_odometer:
- friendly_name: Km Percorsi
- icon: mdi:road-variant
- # distanceReset, distanceStart, liquidconsumptionstart, liquidconsumptionreset, liquidRangeSkipIndication, serviceintervaldays, tanklevelpercent, tankReserveLamp
--- /dev/null
+######################################################################\r
+# Mercedes Package - History\r
+######################################################################\r
+\r
+history:\r
+ exclude:\r
+ entities:\r
+ # Mercedes Me\r
+ - binary_sensor.ff590mr_door_front_left\r
+ - binary_sensor.ff590mr_door_front_right\r
+ - binary_sensor.ff590mr_door_rear_left\r
+ - binary_sensor.ff590mr_door_rear_right\r
+ #- binary_sensor.ff590mr_doors_closed\r
+ - binary_sensor.ff590mr_engine_light_warning\r
+ - binary_sensor.ff590mr_fuel_lid\r
+ #- binary_sensor.ff590mr_locked\r
+ - binary_sensor.ff590mr_low_brake_fluid_warning\r
+ - binary_sensor.ff590mr_low_coolant_level_warning\r
+ - binary_sensor.ff590mr_low_wash_water_warning\r
+ - binary_sensor.ff590mr_tire_warning\r
+ - binary_sensor.ff590mr_trunk\r
+ - binary_sensor.ff590mr_fuel_lid\r
+ - binary_sensor.ff590mr_window_front_left\r
+ - binary_sensor.ff590mr_window_front_right\r
+ - binary_sensor.ff590mr_window_rear_left\r
+ - binary_sensor.ff590mr_window_rear_right\r
+ - binary_sensor.ff590mr_windows_closed\r
+ - lock.ff590mr_lock\r
+ - sensor.ff590mr_distance_since_reset\r
+ - sensor.ff590mr_distance_since_start\r
+ #- sensor.ff590mr_fuel_level\r
+ - sensor.ff590mr_liquid_consumption_reset\r
+ - sensor.ff590mr_liquid_consumption_start\r
+ - sensor.ff590mr_lock\r
+ #- sensor.ff590mr_odometer\r
+ - sensor.ff590mr_service_interval_days\r
+ - sensor.ff590mr_tire_pressure_front_left\r
+ - sensor.ff590mr_tire_pressure_front_right\r
+ - sensor.ff590mr_tire_pressure_rear_left\r
+ - sensor.ff590mr_tire_pressure_rear_right\r
+ - sensor.ff590mr_trunk\r
+\r
+######################################################################\r
+# Mercedes Package - Logbook\r
+######################################################################\r
+logbook:\r
+ exclude:\r
+ entities:\r
+ # Mercedes Me\r
+ - binary_sensor.ff590mr_door_front_left\r
+ - binary_sensor.ff590mr_door_front_right\r
+ - binary_sensor.ff590mr_door_rear_left\r
+ - binary_sensor.ff590mr_door_rear_right\r
+ #- binary_sensor.ff590mr_doors_closed\r
+ - binary_sensor.ff590mr_engine_light_warning\r
+ - binary_sensor.ff590mr_fuel_lid\r
+ #- binary_sensor.ff590mr_locked\r
+ - binary_sensor.ff590mr_low_brake_fluid_warning\r
+ - binary_sensor.ff590mr_low_coolant_level_warning\r
+ - binary_sensor.ff590mr_low_wash_water_warning\r
+ - binary_sensor.ff590mr_tire_warning\r
+ - binary_sensor.ff590mr_trunk\r
+ - binary_sensor.ff590mr_fuel_lid\r
+ - binary_sensor.ff590mr_window_front_left\r
+ - binary_sensor.ff590mr_window_front_right\r
+ - binary_sensor.ff590mr_window_rear_left\r
+ - binary_sensor.ff590mr_window_rear_right\r
+ - binary_sensor.ff590mr_windows_closed\r
+ - lock.ff590mr_lock\r
+ - sensor.ff590mr_distance_since_reset\r
+ - sensor.ff590mr_distance_since_start\r
+ #- sensor.ff590mr_fuel_level\r
+ - sensor.ff590mr_liquid_consumption_reset\r
+ - sensor.ff590mr_liquid_consumption_start\r
+ - sensor.ff590mr_lock\r
+ #- sensor.ff590mr_odometer\r
+ - sensor.ff590mr_service_interval_days\r
+ - sensor.ff590mr_tire_pressure_front_left\r
+ - sensor.ff590mr_tire_pressure_front_right\r
+ - sensor.ff590mr_tire_pressure_rear_left\r
+ - sensor.ff590mr_tire_pressure_rear_right\r
+ - sensor.ff590mr_trunk\r
+\r
+######################################################################\r
+# Mercedes Package - Recorder\r
+######################################################################\r
+recorder:\r
+ exclude:\r
+ entities:\r
+ # Mercedes Me\r
+ - binary_sensor.ff590mr_door_front_left\r
+ - binary_sensor.ff590mr_door_front_right\r
+ - binary_sensor.ff590mr_door_rear_left\r
+ - binary_sensor.ff590mr_door_rear_right\r
+ #- binary_sensor.ff590mr_doors_closed\r
+ - binary_sensor.ff590mr_engine_light_warning\r
+ - binary_sensor.ff590mr_fuel_lid\r
+ #- binary_sensor.ff590mr_locked\r
+ - binary_sensor.ff590mr_low_brake_fluid_warning\r
+ - binary_sensor.ff590mr_low_coolant_level_warning\r
+ - binary_sensor.ff590mr_low_wash_water_warning\r
+ - binary_sensor.ff590mr_tire_warning\r
+ - binary_sensor.ff590mr_trunk\r
+ - binary_sensor.ff590mr_fuel_lid\r
+ - binary_sensor.ff590mr_window_front_left\r
+ - binary_sensor.ff590mr_window_front_right\r
+ - binary_sensor.ff590mr_window_rear_left\r
+ - binary_sensor.ff590mr_window_rear_right\r
+ - binary_sensor.ff590mr_windows_closed\r
+ - lock.ff590mr_lock\r
+ - sensor.ff590mr_distance_since_reset\r
+ - sensor.ff590mr_distance_since_start\r
+ #- sensor.ff590mr_fuel_level\r
+ - sensor.ff590mr_liquid_consumption_reset\r
+ - sensor.ff590mr_liquid_consumption_start\r
+ - sensor.ff590mr_lock\r
+ #- sensor.ff590mr_odometer\r
+ - sensor.ff590mr_service_interval_days\r
+ - sensor.ff590mr_tire_pressure_front_left\r
+ - sensor.ff590mr_tire_pressure_front_right\r
+ - sensor.ff590mr_tire_pressure_rear_left\r
+ - sensor.ff590mr_tire_pressure_rear_right\r
+ - sensor.ff590mr_trunk\r
+++ /dev/null
-######################################################################\r
-# Mercedes Package - History\r
-######################################################################\r
-\r
-history:\r
- exclude:\r
- entities:\r
- # Mercedes Me\r
- - binary_sensor.ff590mr_door_front_left\r
- - binary_sensor.ff590mr_door_front_right\r
- - binary_sensor.ff590mr_door_rear_left\r
- - binary_sensor.ff590mr_door_rear_right\r
- #- binary_sensor.ff590mr_doors_closed\r
- - binary_sensor.ff590mr_engine_light_warning\r
- #- binary_sensor.ff590mr_locked\r
- - binary_sensor.ff590mr_park_brake_status\r
- - binary_sensor.ff590mr_tire_warning\r
- - binary_sensor.ff590mr_trunk\r
- - binary_sensor.ff590mr_fuel_lid\r
- - binary_sensor.ff590mr_window_front_left\r
- - binary_sensor.ff590mr_window_front_right\r
- - binary_sensor.ff590mr_window_rear_left\r
- - binary_sensor.ff590mr_window_rear_right\r
- - binary_sensor.ff590mr_windows_closed\r
- - lock.ff590mr_lock\r
- - sensor.ff590mr_distance_since_reset\r
- - sensor.ff590mr_distance_since_start\r
- - sensor.ff590mr_door_front_left\r
- - sensor.ff590mr_door_front_right\r
- - sensor.ff590mr_door_rear_left\r
- - sensor.ff590mr_door_rear_right\r
- #- sensor.ff590mr_fuel_level\r
- - sensor.ff590mr_liquid_consumption_reset\r
- - sensor.ff590mr_liquid_consumption_start\r
- - sensor.ff590mr_lock\r
- #- sensor.ff590mr_odometer\r
- - sensor.ff590mr_service_interval_days\r
- - sensor.ff590mr_tire_pressure_front_left\r
- - sensor.ff590mr_tire_pressure_front_right\r
- - sensor.ff590mr_tire_pressure_rear_left\r
- - sensor.ff590mr_tire_pressure_rear_right\r
- - sensor.ff590mr_trunk\r
-\r
-######################################################################\r
-# Mercedes Package - Logbook\r
-######################################################################\r
-logbook:\r
- exclude:\r
- entities:\r
- # Mercedes Me\r
- - binary_sensor.ff590mr_door_front_left\r
- - binary_sensor.ff590mr_door_front_right\r
- - binary_sensor.ff590mr_door_rear_left\r
- - binary_sensor.ff590mr_door_rear_right\r
- #- binary_sensor.ff590mr_doors_closed\r
- - binary_sensor.ff590mr_engine_light_warning\r
- #- binary_sensor.ff590mr_locked\r
- - binary_sensor.ff590mr_park_brake_status\r
- - binary_sensor.ff590mr_tire_warning\r
- - binary_sensor.ff590mr_trunk\r
- - binary_sensor.ff590mr_fuel_lid\r
- - binary_sensor.ff590mr_window_front_left\r
- - binary_sensor.ff590mr_window_front_right\r
- - binary_sensor.ff590mr_window_rear_left\r
- - binary_sensor.ff590mr_window_rear_right\r
- - binary_sensor.ff590mr_windows_closed\r
- - lock.ff590mr_lock\r
- - sensor.ff590mr_distance_since_reset\r
- - sensor.ff590mr_distance_since_start\r
- - sensor.ff590mr_door_front_left\r
- - sensor.ff590mr_door_front_right\r
- - sensor.ff590mr_door_rear_left\r
- - sensor.ff590mr_door_rear_right\r
- #- sensor.ff590mr_fuel_level\r
- - sensor.ff590mr_liquid_consumption_reset\r
- - sensor.ff590mr_liquid_consumption_start\r
- - sensor.ff590mr_lock\r
- #- sensor.ff590mr_odometer\r
- - sensor.ff590mr_service_interval_days\r
- - sensor.ff590mr_tire_pressure_front_left\r
- - sensor.ff590mr_tire_pressure_front_right\r
- - sensor.ff590mr_tire_pressure_rear_left\r
- - sensor.ff590mr_tire_pressure_rear_right\r
- - sensor.ff590mr_trunk\r
-\r
-######################################################################\r
-# Mercedes Package - Recorder\r
-######################################################################\r
-recorder:\r
- exclude:\r
- entities:\r
- # Mercedes Me\r
- - binary_sensor.ff590mr_door_front_left\r
- - binary_sensor.ff590mr_door_front_right\r
- - binary_sensor.ff590mr_door_rear_left\r
- - binary_sensor.ff590mr_door_rear_right\r
- #- binary_sensor.ff590mr_doors_closed\r
- - binary_sensor.ff590mr_engine_light_warning\r
- #- binary_sensor.ff590mr_locked\r
- - binary_sensor.ff590mr_park_brake_status\r
- - binary_sensor.ff590mr_tire_warning\r
- - binary_sensor.ff590mr_trunk\r
- - binary_sensor.ff590mr_fuel_lid\r
- - binary_sensor.ff590mr_window_front_left\r
- - binary_sensor.ff590mr_window_front_right\r
- - binary_sensor.ff590mr_window_rear_left\r
- - binary_sensor.ff590mr_window_rear_right\r
- - binary_sensor.ff590mr_windows_closed\r
- - lock.ff590mr_lock\r
- - sensor.ff590mr_distance_since_reset\r
- - sensor.ff590mr_distance_since_start\r
- - sensor.ff590mr_door_front_left\r
- - sensor.ff590mr_door_front_right\r
- - sensor.ff590mr_door_rear_left\r
- - sensor.ff590mr_door_rear_right\r
- #- sensor.ff590mr_fuel_level\r
- - sensor.ff590mr_liquid_consumption_reset\r
- - sensor.ff590mr_liquid_consumption_start\r
- - sensor.ff590mr_lock\r
- #- sensor.ff590mr_odometer\r
- - sensor.ff590mr_service_interval_days\r
- - sensor.ff590mr_tire_pressure_front_left\r
- - sensor.ff590mr_tire_pressure_front_right\r
- - sensor.ff590mr_tire_pressure_rear_left\r
- - sensor.ff590mr_tire_pressure_rear_right\r
- - sensor.ff590mr_trunk\r
--- /dev/null
+######################################################################
+# Mercedes Package - Sensor
+######################################################################
+
+sensor:
+ ######################################################################
+ # Sensor: Tire Pressure Front Left
+ ######################################################################
+ - platform: template
+ sensors:
+ ff590mr_tire_pressure_front_left:
+ friendly_name: Anteriore Sinistra
+ unit_of_measurement: 'kPa'
+ value_template: "{{ state_attr('binary_sensor.ff590mr_tire_warning', 'tirepressureFrontLeft') }}"
+ icon_template: mdi:car-tire-alert
+ device_class: pressure
+
+ ######################################################################
+ # Sensor: Tire Pressure Front Right
+ ######################################################################
+ - platform: template
+ sensors:
+ ff590mr_tire_pressure_front_right:
+ friendly_name: Anteriore Destra
+ unit_of_measurement: 'kPa'
+ value_template: "{{ state_attr('binary_sensor.ff590mr_tire_warning', 'tirepressureFrontRight') }}"
+ icon_template: mdi:car-tire-alert
+ device_class: pressure
+
+ ######################################################################
+ # Sensor: Tire Pressure Rear Left
+ ######################################################################
+ - platform: template
+ sensors:
+ ff590mr_tire_pressure_rear_left:
+ friendly_name: Posteriore Sinistra
+ unit_of_measurement: 'kPa'
+ value_template: "{{ state_attr('binary_sensor.ff590mr_tire_warning', 'tirepressureRearLeft') }}"
+ icon_template: mdi:car-tire-alert
+ device_class: pressure
+
+ ######################################################################
+ # Sensor: Tire Pressure Rear Right
+ ######################################################################
+ - platform: template
+ sensors:
+ ff590mr_tire_pressure_rear_right:
+ friendly_name: Posteriore Destra
+ unit_of_measurement: 'kPa'
+ value_template: "{{ state_attr('binary_sensor.ff590mr_tire_warning', 'tirepressureRearRight') }}"
+ icon_template: mdi:car-tire-alert
+ device_class: pressure
+
+ ######################################################################
+ # Sensor: Door Front Left
+ ######################################################################
+ #- platform: template
+ # sensors:
+ # ff590mr_door_front_left:
+ # friendly_name: Anteriore Sinistra
+ # entity_id: sensor.ff590mr_lock
+ # value_template: >-
+ # {% if is_state_attr('sensor.ff590mr_lock', 'doorStateFrontLeft', 'DOOR_CLOSED_AND_DOOR_LOCKED') %}
+ # Chiusa e Bloccata
+ # {% elif is_state_attr('sensor.ff590mr_lock', 'doorStateFrontLeft', 'DOOR_CLOSED_AND_DOOR_UNLOCKED') %}
+ # Chiuse
+ # {% else %}
+ # Aperta
+ # {% endif %}
+ # icon_template: mdi:car-door
+
+ ######################################################################
+ # Sensor: Door Front Right
+ ######################################################################
+ #- platform: template
+ # sensors:
+ # ff590mr_door_front_right:
+ # friendly_name: Anteriore Destra
+ # entity_id: sensor.ff590mr_lock
+ # value_template: >-
+ # {% if is_state_attr('sensor.ff590mr_lock', 'doorStateFrontRight', 'DOOR_CLOSED_AND_DOOR_LOCKED') %}
+ # Chiusa e Bloccata
+ # {% elif is_state_attr('sensor.ff590mr_lock', 'doorStateFrontRight', 'DOOR_CLOSED_AND_DOOR_UNLOCKED') %}
+ # Chiuse
+ # {% else %}
+ # Aperta
+ # {% endif %}
+ # icon_template: mdi:car-door
+
+ ######################################################################
+ # Sensor: Door Rear Left
+ ######################################################################
+ #- platform: template
+ # sensors:
+ # ff590mr_door_rear_left:
+ # friendly_name: Posteriore Sinistra
+ # entity_id: sensor.ff590mr_lock
+ # value_template: >-
+ # {% if is_state_attr('sensor.ff590mr_lock', 'doorStateRearLeft', 'DOOR_CLOSED_AND_DOOR_LOCKED') %}
+ # Chiusa e Bloccata
+ # {% elif is_state_attr('sensor.ff590mr_lock', 'doorStateRearLeft', 'DOOR_CLOSED_AND_DOOR_UNLOCKED') %}
+ # Chiuse
+ # {% else %}
+ # Aperta
+ # {% endif %}
+ # icon_template: mdi:car-door
+
+ ######################################################################
+ # Sensor: Door Rear Right
+ ######################################################################
+ #- platform: template
+ # sensors:
+ # ff590mr_door_rear_right:
+ # friendly_name: Posteriore Destra
+ # entity_id: sensor.ff590mr_lock
+ # value_template: >-
+ # {% if is_state_attr('sensor.ff590mr_lock', 'doorStateRearRight', 'DOOR_CLOSED_AND_DOOR_LOCKED') %}
+ # Chiusa e Bloccata
+ # {% elif is_state_attr('sensor.ff590mr_lock', 'doorStateRearRight', 'DOOR_CLOSED_AND_DOOR_UNLOCKED') %}
+ # Chiuse
+ # {% else %}
+ # Aperta
+ # {% endif %}
+ # icon_template: mdi:car-door
+
+ ######################################################################
+ # Sensor: Trunk
+ ######################################################################
+ #- platform: template
+ # sensors:
+ # ff590mr_trunk:
+ # friendly_name: Bagagliaio
+ # entity_id: sensor.ff590mr_lock
+ # value_template: >-
+ # {% if is_state_attr('sensor.ff590mr_lock', 'trunkStateRollup', 'CLOSED_AND_LOCKED') %}
+ # Chiuso e Bloccato
+ # {% elif is_state_attr('sensor.ff590mr_lock', 'trunkStateRollup', 'CLOSED_AND_UNLOCKED') %}
+ # Chiuso
+ # {% else %}
+ # Aperto
+ # {% endif %}
+ # icon_template: mdi:car-door
+
+ ######################################################################
+ # Sensor: Distance from Start
+ ######################################################################
+ - platform: template
+ sensors:
+ ff590mr_distance_since_start:
+ friendly_name: Distanza dalla partenza
+ unit_of_measurement: 'Km'
+ value_template: "{{ state_attr('sensor.ff590mr_odometer', 'distanceStart') }}"
+ icon_template: mdi:road-variant
+
+ ######################################################################
+ # Sensor: Distance from Reset
+ ######################################################################
+ - platform: template
+ sensors:
+ ff590mr_distance_since_reset:
+ friendly_name: Distanza dal reset
+ unit_of_measurement: 'Km'
+ value_template: "{{ state_attr('sensor.ff590mr_odometer', 'distanceReset') }}"
+ icon_template: mdi:road-variant
+
+ ######################################################################
+ # Sensor: Liquid Consumption from Start
+ ######################################################################
+ #- platform: template
+ # sensors:
+ # ff590mr_liquid_consumption_start:
+ # friendly_name: Consumo dalla partenza
+ # unit_of_measurement: 'l/100Km'
+ # value_template: "{{ state_attr('sensor.ff590mr_odometer', 'liquidconsumptionstart') }}"
+ # icon_template: mdi:gas-station
+
+ ######################################################################
+ # Sensor: Liquid Consumption from Reset
+ ######################################################################
+ - platform: template
+ sensors:
+ ff590mr_liquid_consumption_reset:
+ friendly_name: Consumo dal reset
+ unit_of_measurement: 'l/100Km'
+ value_template: "{{ state_attr('sensor.ff590mr_odometer', 'liquidconsumptionreset') }}"
+ icon_template: mdi:gas-station
+
+ ######################################################################
+ # Sensor: Service Interval Days
+ ######################################################################
+ - platform: template
+ sensors:
+ ff590mr_service_interval_days:
+ friendly_name: Prossimo Tagliando
+ unit_of_measurement: 'giorni'
+ value_template: "{{ state_attr('sensor.ff590mr_odometer', 'serviceintervaldays') }}"
+ icon_template: mdi:wrench
+++ /dev/null
-######################################################################
-# Mercedes Package - Sensor
-######################################################################
-
-sensor:
- ######################################################################
- # Sensor: Tire Pressure Front Left
- ######################################################################
- - platform: template
- sensors:
- ff590mr_tire_pressure_front_left:
- friendly_name: Anteriore Sinistra
- unit_of_measurement: 'kPa'
- value_template: "{{ state_attr('binary_sensor.ff590mr_tire_warning', 'tirepressureFrontLeft') }}"
- icon_template: mdi:car-tire-alert
- device_class: pressure
-
- ######################################################################
- # Sensor: Tire Pressure Front Right
- ######################################################################
- - platform: template
- sensors:
- ff590mr_tire_pressure_front_right:
- friendly_name: Anteriore Destra
- unit_of_measurement: 'kPa'
- value_template: "{{ state_attr('binary_sensor.ff590mr_tire_warning', 'tirepressureFrontRight') }}"
- icon_template: mdi:car-tire-alert
- device_class: pressure
-
- ######################################################################
- # Sensor: Tire Pressure Rear Left
- ######################################################################
- - platform: template
- sensors:
- ff590mr_tire_pressure_rear_left:
- friendly_name: Posteriore Sinistra
- unit_of_measurement: 'kPa'
- value_template: "{{ state_attr('binary_sensor.ff590mr_tire_warning', 'tirepressureRearLeft') }}"
- icon_template: mdi:car-tire-alert
- device_class: pressure
-
- ######################################################################
- # Sensor: Tire Pressure Rear Right
- ######################################################################
- - platform: template
- sensors:
- ff590mr_tire_pressure_rear_right:
- friendly_name: Posteriore Destra
- unit_of_measurement: 'kPa'
- value_template: "{{ state_attr('binary_sensor.ff590mr_tire_warning', 'tirepressureRearRight') }}"
- icon_template: mdi:car-tire-alert
- device_class: pressure
-
- ######################################################################
- # Sensor: Door Front Left
- ######################################################################
- #- platform: template
- # sensors:
- # ff590mr_door_front_left:
- # friendly_name: Anteriore Sinistra
- # entity_id: sensor.ff590mr_lock
- # value_template: >-
- # {% if is_state_attr('sensor.ff590mr_lock', 'doorStateFrontLeft', 'DOOR_CLOSED_AND_DOOR_LOCKED') %}
- # Chiusa e Bloccata
- # {% elif is_state_attr('sensor.ff590mr_lock', 'doorStateFrontLeft', 'DOOR_CLOSED_AND_DOOR_UNLOCKED') %}
- # Chiuse
- # {% else %}
- # Aperta
- # {% endif %}
- # icon_template: mdi:car-door
-
- ######################################################################
- # Sensor: Door Front Right
- ######################################################################
- #- platform: template
- # sensors:
- # ff590mr_door_front_right:
- # friendly_name: Anteriore Destra
- # entity_id: sensor.ff590mr_lock
- # value_template: >-
- # {% if is_state_attr('sensor.ff590mr_lock', 'doorStateFrontRight', 'DOOR_CLOSED_AND_DOOR_LOCKED') %}
- # Chiusa e Bloccata
- # {% elif is_state_attr('sensor.ff590mr_lock', 'doorStateFrontRight', 'DOOR_CLOSED_AND_DOOR_UNLOCKED') %}
- # Chiuse
- # {% else %}
- # Aperta
- # {% endif %}
- # icon_template: mdi:car-door
-
- ######################################################################
- # Sensor: Door Rear Left
- ######################################################################
- #- platform: template
- # sensors:
- # ff590mr_door_rear_left:
- # friendly_name: Posteriore Sinistra
- # entity_id: sensor.ff590mr_lock
- # value_template: >-
- # {% if is_state_attr('sensor.ff590mr_lock', 'doorStateRearLeft', 'DOOR_CLOSED_AND_DOOR_LOCKED') %}
- # Chiusa e Bloccata
- # {% elif is_state_attr('sensor.ff590mr_lock', 'doorStateRearLeft', 'DOOR_CLOSED_AND_DOOR_UNLOCKED') %}
- # Chiuse
- # {% else %}
- # Aperta
- # {% endif %}
- # icon_template: mdi:car-door
-
- ######################################################################
- # Sensor: Door Rear Right
- ######################################################################
- #- platform: template
- # sensors:
- # ff590mr_door_rear_right:
- # friendly_name: Posteriore Destra
- # entity_id: sensor.ff590mr_lock
- # value_template: >-
- # {% if is_state_attr('sensor.ff590mr_lock', 'doorStateRearRight', 'DOOR_CLOSED_AND_DOOR_LOCKED') %}
- # Chiusa e Bloccata
- # {% elif is_state_attr('sensor.ff590mr_lock', 'doorStateRearRight', 'DOOR_CLOSED_AND_DOOR_UNLOCKED') %}
- # Chiuse
- # {% else %}
- # Aperta
- # {% endif %}
- # icon_template: mdi:car-door
-
- ######################################################################
- # Sensor: Trunk
- ######################################################################
- #- platform: template
- # sensors:
- # ff590mr_trunk:
- # friendly_name: Bagagliaio
- # entity_id: sensor.ff590mr_lock
- # value_template: >-
- # {% if is_state_attr('sensor.ff590mr_lock', 'trunkStateRollup', 'CLOSED_AND_LOCKED') %}
- # Chiuso e Bloccato
- # {% elif is_state_attr('sensor.ff590mr_lock', 'trunkStateRollup', 'CLOSED_AND_UNLOCKED') %}
- # Chiuso
- # {% else %}
- # Aperto
- # {% endif %}
- # icon_template: mdi:car-door
-
- ######################################################################
- # Sensor: Distance from Start
- ######################################################################
- - platform: template
- sensors:
- ff590mr_distance_since_start:
- friendly_name: Distanza dalla partenza
- unit_of_measurement: 'Km'
- value_template: "{{ state_attr('sensor.ff590mr_odometer', 'distanceStart') }}"
- icon_template: mdi:road-variant
-
- ######################################################################
- # Sensor: Distance from Reset
- ######################################################################
- - platform: template
- sensors:
- ff590mr_distance_since_reset:
- friendly_name: Distanza dal reset
- unit_of_measurement: 'Km'
- value_template: "{{ state_attr('sensor.ff590mr_odometer', 'distanceReset') }}"
- icon_template: mdi:road-variant
-
- ######################################################################
- # Sensor: Liquid Consumption from Start
- ######################################################################
- - platform: template
- sensors:
- ff590mr_liquid_consumption_start:
- friendly_name: Consumo dalla partenza
- unit_of_measurement: 'l/100Km'
- value_template: "{{ state_attr('sensor.ff590mr_odometer', 'liquidconsumptionstart') }}"
- icon_template: mdi:gas-station
-
- ######################################################################
- # Sensor: Liquid Consumption from Reset
- ######################################################################
- - platform: template
- sensors:
- ff590mr_liquid_consumption_reset:
- friendly_name: Consumo dal reset
- unit_of_measurement: 'l/100Km'
- value_template: "{{ state_attr('sensor.ff590mr_odometer', 'liquidconsumptionreset') }}"
- icon_template: mdi:gas-station
-
- ######################################################################
- # Sensor: Service Interval Days
- ######################################################################
- - platform: template
- sensors:
- ff590mr_service_interval_days:
- friendly_name: Prossimo Tagliando
- unit_of_measurement: 'giorni'
- value_template: "{{ state_attr('sensor.ff590mr_odometer', 'serviceintervaldays') }}"
- icon_template: mdi:wrench