+++ /dev/null
-######################################################################
-# Away Mode: Enable Action
-######################################################################
-
-- alias: "Modalità Vacanza: Azione on"
- initial_state: 'on'
-
- trigger:
- - platform: state
- entity_id: input_boolean.home_mode_away
- to: 'on'
-
- action:
- - service: script.notify_voice
- data_template:
- message: "Modalità vacanza abilitata"
-
-######################################################################
-# Away Mode: Disable Action
-######################################################################
-
-- alias: "Modalità Vacanza: Azione off"
- initial_state: 'on'
-
- trigger:
- # Manual Disable
- - platform: state
- entity_id: input_boolean.home_mode_away
- to: 'off'
- # Back home
- - platform: state
- entity_id: group.residents
- to: 'home'
- # End of Away Period
- - platform: template
- value_template: "{{ states('sensor.time_date') == (state_attr('input_datetime.away_mode_end', 'timestamp') | int | timestamp_custom('%H:%M, %Y-%m-%d', true)) }}"
-
- action:
- - service: script.notify_voice
- data_template:
- message: "Modalità vacanza disabilitata"
- - service: input_boolean.turn_off
- data:
- entity_id: input_boolean.home_mode_away
--- /dev/null
+######################################################################\r
+# Mercedes Package - Google Assistant\r
+######################################################################\r
+\r
+google_assistant:\r
+ entity_config:\r
+ script.stop_alarm:\r
+ name: Disattiva Allarmi\r
+ expose: true\r
+ room: Routine\r
--- /dev/null
+######################################################################\r
+# Alarm Package - Notifications Scripts\r
+######################################################################\r
+
+script: \r
+ ######################################################################
+ # Alarm: Start Alarm Sound
+ #
+ # Operations:
+ # - media_player.volume_set
+ # - media_player.play_media
+ ######################################################################
+ start_alarm_sound:
+ alias: "Allarmi: Avvia Suono"
+ sequence:
+ - service: media_player.volume_set
+ data_template:
+ entity_id: 'media_player.google_home'
+ volume_level: 0.4
+
+ - service: media_player.play_media
+ data_template:
+ entity_id: 'media_player.google_home'
+ media_content_type: 'audio/mp4'
+ media_content_id: 'https://home.giorgioravera.it/local/audio/alarm.mp3'
+
+ ######################################################################
+ # Alarm: Stop Alarm Sound
+ #
+ # Operations:
+ # - media_player.media_stop
+ # - script.volume_manager
+ ######################################################################
+ stop_alarm_sound:
+ alias: "Allarmi: Interrompi Suono"
+ sequence:
+ - service: media_player.media_stop
+ data_template:
+ entity_id: 'media_player.google_home'
+
+ - service: script.volume_manager
+ data_template:
+ media_player: 'media_player.google_home'
+
+ ######################################################################
+ # Alarm: Start Alarm
+ # Inputs:
+ # - entity_id\r
+ # - title
+ # - message
+ # - level\r
+ #
+ # Operations:
+ # - input_boolean.turn_on
+ # - script.notify_all
+ # - script.start_alarm_sound
+ ######################################################################
+ start_alarm:
+ alias: "Allarmi: Attiva Allarme"
+ sequence:
+ - service: input_boolean.turn_on\r
+ data_template:
+ entity_id: >\r
+ {# Check Null Input #}\r
+ {% if entity_id | length == 0 %}\r
+ {% set entity_id = 'input_boolean.generic_alarm' %}\r
+ {% endif %}\r
+ {{ entity_id }}\r
+\r
+ # LEVEL 1
+ - service: script.notify_all\r
+ data_template:\r
+ volume_level: 0.4\r
+ language: 'it'\r
+ title: >-\r
+ {# Check Null Input #}\r
+ {% if title | length == 0 %}\r
+ {# Check Null Input #}\r
+ {% if entity_id | length == 0 %}\r
+ {% set entity_id = 'input_boolean.generic_alarm' %}\r
+ {% endif %}\r
+ {% set title = state_attr(entity_id, 'friendly_name') %}\r
+ {% endif %}\r
+ Home Assistant - {{ title }}\r
+ message: >-\r
+ {# Check Null Input #}\r
+ {% if message | length == 0 %}\r
+ {# Check Null Input #}\r
+ {% if entity_id | length == 0 %}\r
+ {% set entity_id = 'input_boolean.generic_alarm' %}\r
+ {% endif %}\r
+ {% set message = state_attr(entity_id, 'friendly_name') %}\r
+ {% endif %}\r
+ {{ message }}\r
+ enable_persistent: 1\r
+ notification_id: "alarm"\r
+\r
+ # LEVEL 2\r
+ - condition: template\r
+ value_template: >-\r
+ {# Check Null Input #}\r
+ {% if level | length == 0 %}\r
+ {% set level = 1 %}\r
+ {% endif %}\r
+ {% if level | int >= 2 %}\r
+ true\r
+ {% else %}\r
+ false\r
+ {% endif %}\r
+\r
+ - service: script.start_alarm_sound\r
+
+ ######################################################################
+ # Alarm: Stop Alarm
+ #
+ # Operations:
+ # - stop_alarm_sound
+ # - persistent_notification.dismiss
+ ######################################################################
+ stop_alarm:
+ alias: "Allarmi: Disattiva Allarme"
+ sequence:
+ - service: homeassistant.turn_off
+ entity_id: group.alarms
+
+ - service: script.stop_alarm_sound
+
+ - service: persistent_notification.dismiss
+ data_template:
+ notification_id: "alarm"
--- /dev/null
+######################################################################\r
+# Alarms Package - Triggers - Automations\r
+######################################################################\r
+\r
+automation:\r
+ ######################################################################\r
+ # Alarm Door\r
+ #\r
+ # Actions:\r
+ # - script.notify_all\r
+ ######################################################################\r
+ - alias: "Allarme Porta Casa"\r
+ initial_state: 'on'\r
+\r
+ trigger:\r
+ - platform: state\r
+ entity_id: group.doors\r
+ to: 'on'\r
+ \r
+ condition:\r
+ - condition: state\r
+ entity_id: binary_sensor.guard_mode\r
+ state: 'on'\r
+\r
+ action:\r
+ - service: script.start_alarm\r
+ data_template:\r
+ entity_id: input_boolean.door_alarm\r
+ message: "È stata rilevata una presenza non autorizzata."\r
+ level: 1\r
+++ /dev/null
-######################################################################\r
-# Mercedes Package - Google Assistant\r
-######################################################################\r
-\r
-google_assistant:\r
- entity_config:\r
- script.stop_alarm:\r
- name: Disattiva Allarmi\r
- expose: true\r
- room: Routine\r
+++ /dev/null
-######################################################################\r
-# Alarm Package - Notifications Scripts\r
-######################################################################\r
-
-script: \r
- ######################################################################
- # Alarm: Start Alarm Sound
- #
- # Operations:
- # - media_player.volume_set
- # - media_player.play_media
- ######################################################################
- start_alarm_sound:
- alias: "Allarmi: Avvia Suono"
- sequence:
- - service: media_player.volume_set
- data_template:
- entity_id: 'media_player.google_home'
- volume_level: 0.4
-
- - service: media_player.play_media
- data_template:
- entity_id: 'media_player.google_home'
- media_content_type: 'audio/mp4'
- media_content_id: 'https://home.giorgioravera.it/local/audio/alarm.mp3'
-
- ######################################################################
- # Alarm: Stop Alarm Sound
- #
- # Operations:
- # - media_player.media_stop
- # - script.volume_manager
- ######################################################################
- stop_alarm_sound:
- alias: "Allarmi: Interrompi Suono"
- sequence:
- - service: media_player.media_stop
- data_template:
- entity_id: 'media_player.google_home'
-
- - service: script.volume_manager
- data_template:
- media_player: 'media_player.google_home'
-
- ######################################################################
- # Alarm: Start Alarm
- # Inputs:
- # - entity_id\r
- # - title
- # - message
- # - level\r
- #
- # Operations:
- # - input_boolean.turn_on
- # - script.notify_all
- # - script.start_alarm_sound
- ######################################################################
- start_alarm:
- alias: "Allarmi: Attiva Allarme"
- sequence:
- - service: input_boolean.turn_on\r
- data_template:
- entity_id: >\r
- {# Check Null Input #}\r
- {% if entity_id | length == 0 %}\r
- {% set entity_id = 'input_boolean.generic_alarm' %}\r
- {% endif %}\r
- {{ entity_id }}\r
-\r
- # LEVEL 1
- - service: script.notify_all\r
- data_template:\r
- volume_level: 0.4\r
- language: 'it'\r
- title: >-\r
- {# Check Null Input #}\r
- {% if title | length == 0 %}\r
- {# Check Null Input #}\r
- {% if entity_id | length == 0 %}\r
- {% set entity_id = 'input_boolean.generic_alarm' %}\r
- {% endif %}\r
- {% set title = state_attr(entity_id, 'friendly_name') %}\r
- {% endif %}\r
- Home Assistant - {{ title }}\r
- message: >-\r
- {# Check Null Input #}\r
- {% if message | length == 0 %}\r
- {# Check Null Input #}\r
- {% if entity_id | length == 0 %}\r
- {% set entity_id = 'input_boolean.generic_alarm' %}\r
- {% endif %}\r
- {% set message = state_attr(entity_id, 'friendly_name') %}\r
- {% endif %}\r
- {{ message }}\r
- enable_persistent: 1\r
- notification_id: "alarm"\r
-\r
- # LEVEL 2\r
- - condition: template\r
- value_template: >-\r
- {# Check Null Input #}\r
- {% if level | length == 0 %}\r
- {% set level = 1 %}\r
- {% endif %}\r
- {% if level | int >= 2 %}\r
- true\r
- {% else %}\r
- false\r
- {% endif %}\r
-\r
- - service: script.start_alarm_sound\r
-
- ######################################################################
- # Alarm: Stop Alarm
- #
- # Operations:
- # - stop_alarm_sound
- # - persistent_notification.dismiss
- ######################################################################
- stop_alarm:
- alias: "Allarmi: Disattiva Allarme"
- sequence:
- - service: homeassistant.turn_off
- entity_id: group.alarms
-
- - service: script.stop_alarm_sound
-
- - service: persistent_notification.dismiss
- data_template:
- notification_id: "alarm"
+++ /dev/null
-######################################################################\r
-# Alarms Package - Triggers - Automations\r
-######################################################################\r
-\r
-automation:\r
- ######################################################################\r
- # Alarm Door\r
- #\r
- # Actions:\r
- # - script.notify_all\r
- ######################################################################\r
- - alias: "Allarme Porta Casa"\r
- initial_state: 'on'\r
-\r
- trigger:\r
- - platform: state\r
- entity_id: group.doors\r
- to: 'on'\r
- \r
- condition:\r
- - condition: state\r
- entity_id: binary_sensor.guard_mode\r
- state: 'on'\r
-\r
- action:\r
- - service: script.start_alarm\r
- data_template:\r
- entity_id: input_boolean.door_alarm\r
- message: "È stata rilevata una presenza non autorizzata."\r
- level: 1\r
--- /dev/null
+######################################################################\r
+# Away Mode - Covers Management\r
+######################################################################\r
+\r
+automation:\r
+\r
+ ######################################################################\r
+ # Automation to manage cover in away mode\r
+ ######################################################################\r
+ - alias: "Modalità Vacanza: Gestione Tapparelle"\r
+ #initial_state: 'on'\r
+\r
+ trigger:\r
+ - platform: time\r
+ at: '09:00:00'\r
+ - platform: time\r
+ at: '18:00:00'\r
+\r
+ condition:\r
+ - condition: state\r
+ entity_id: input_boolean.home_mode_away\r
+ state: 'on'\r
+\r
+ action:\r
+ - service: cover.set_cover_position\r
+ data_template:\r
+ entity_id:\r
+ - cover.tapparella_sala\r
+ - cover.tapparella_camera\r
+ position: >\r
+ {% if now().strftime('%H')|int >= 9 and now().strftime('%H')|int < 18 %}\r
+ 50\r
+ {% else %}\r
+ 0\r
+ {% endif %}\r
+\r
+######################################################################\r
+# Mercedes Package - Customizations\r
+######################################################################\r
+\r
+homeassistant:\r
+ customize:\r
+ # Covers Away Automation\r
+ automation.modalita_vacanza_gestione_tapparelle:\r
+ icon: mdi:window-shutter\r
--- /dev/null
+######################################################################
+# Away Mode - Engine
+######################################################################
+
+automation:
+
+ ######################################################################
+ # Away Mode: Enable Action
+ ######################################################################
+ - alias: "Modalità Vacanza: Azione on"
+ initial_state: 'on'
+
+ trigger:
+ - platform: state
+ entity_id: input_boolean.home_mode_away
+ to: 'on'
+
+ action:
+ - service: script.notify_voice
+ data_template:
+ message: "Modalità vacanza abilitata"
+
+ ######################################################################
+ # Away Mode: Disable Action
+ ######################################################################
+ - alias: "Modalità Vacanza: Azione off"
+ initial_state: 'on'
+
+ trigger:
+ # Manual Disable
+ - platform: state
+ entity_id: input_boolean.home_mode_away
+ to: 'off'
+ # Back home
+ - platform: state
+ entity_id: group.residents
+ to: 'home'
+ # End of Away Period
+ - platform: template
+ value_template: "{{ states('sensor.time_date') == (state_attr('input_datetime.away_mode_end', 'timestamp') | int | timestamp_custom('%H:%M, %Y-%m-%d', true)) }}"
+
+ action:
+ - service: script.notify_voice
+ data_template:
+ message: "Modalità vacanza disabilitata"
+ - service: input_boolean.turn_off
+ data:
+ entity_id: input_boolean.home_mode_away
+++ /dev/null
-######################################################################
-# Mercedes Package - Binary Sensor
-######################################################################
-
-binary_sensor:
- ######################################################################
- # Binary Sensor: Doors Lock
- ######################################################################
- - platform: template
- sensors:
- ff590mr_locked:
- friendly_name: Vettura Bloccata
- entity_id: lock.ff590mr_lock
- 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
- entity_id: sensor.ff590mr_lock
- 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
- entity_id: sensor.ff590mr_lock
- 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
- entity_id: sensor.ff590mr_lock
- 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
- entity_id: sensor.ff590mr_lock
- 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
- entity_id: sensor.ff590mr_lock
- 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
- entity_id: sensor.ff590mr_lock
- 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
- entity_id: sensor.ff590mr_lock
- 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
- entity_id: binary_sensor.ff590mr_windows_closed
- 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
- entity_id: binary_sensor.ff590mr_windows_closed
- 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
- entity_id: binary_sensor.ff590mr_windows_closed
- 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
- entity_id: binary_sensor.ff590mr_windows_closed
- 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
- entity_id: binary_sensor.ff590mr_windows_closed
- 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
- 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
-######################################################################
-# Mercedes Package - Google Assistant
-######################################################################
-
-google_assistant:
- entity_config:
-# switch.ff590mr_lock:
-# name: Blocco Auto
-# expose: true
-# room: Generale
-
- lock.ff590mr_lock:
- name: Auto
- expose: true
- room: Generale
+++ /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 - Binary Sensor
+######################################################################
+
+binary_sensor:
+ ######################################################################
+ # Binary Sensor: Doors Lock
+ ######################################################################
+ - platform: template
+ sensors:
+ ff590mr_locked:
+ friendly_name: Vettura Bloccata
+ entity_id: lock.ff590mr_lock
+ 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
+ entity_id: sensor.ff590mr_lock
+ 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
+ entity_id: sensor.ff590mr_lock
+ 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
+ entity_id: sensor.ff590mr_lock
+ 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
+ entity_id: sensor.ff590mr_lock
+ 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
+ entity_id: sensor.ff590mr_lock
+ 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
+ entity_id: sensor.ff590mr_lock
+ 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
+ entity_id: sensor.ff590mr_lock
+ 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
+ entity_id: binary_sensor.ff590mr_windows_closed
+ 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
+ entity_id: binary_sensor.ff590mr_windows_closed
+ 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
+ entity_id: binary_sensor.ff590mr_windows_closed
+ 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
+ entity_id: binary_sensor.ff590mr_windows_closed
+ 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
+ entity_id: binary_sensor.ff590mr_windows_closed
+ 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
+ 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
+######################################################################
+# Mercedes Package - Google Assistant
+######################################################################
+
+google_assistant:
+ entity_config:
+# switch.ff590mr_lock:
+# name: Blocco Auto
+# expose: true
+# room: Generale
+
+ lock.ff590mr_lock:
+ name: Auto
+ expose: true
+ room: Generale
--- /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
+ entity_id: sensor.ff590mr_lock
+ 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
+ entity_id: sensor.ff590mr_lock
+ 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
+ entity_id: sensor.ff590mr_lock
+ 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
+ entity_id: sensor.ff590mr_lock
+ 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
+ entity_id: sensor.ff590mr_odometer
+ 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
+ entity_id: sensor.ff590mr_odometer
+ 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
+ entity_id: sensor.ff590mr_odometer
+ 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
+ entity_id: sensor.ff590mr_odometer
+ 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
+ entity_id: sensor.ff590mr_odometer
+ unit_of_measurement: 'giorni'
+ value_template: "{{ state_attr('sensor.ff590mr_odometer', 'serviceintervaldays') }}"
+ icon_template: mdi:wrench
--- /dev/null
+######################################################################
+# Mercedes Package - Switch
+######################################################################
+
+switch:
+ - platform: template
+ switches:
+ ff590mr_lock:
+ friendly_name: Blocco Auto
+ entity_id: lock.ff590mr_lock
+ value_template: "{{ is_state('lock.ff590mr_lock', 'locked') }}"
+ turn_on:
+ - service: lock.lock
+ entity_id: lock.ff590mr_lock
+ turn_off:
+ - service: lock.unlock
+ entity_id: lock.ff590mr_lock
+ icon_template: >-
+ {% if is_state('lock.ff590mr_lock', 'locked') %}
+ mdi:lock
+ {% else %}
+ mdi:lock-open
+ {% endif %}
+++ /dev/null
-######################################################################
-# Mercedes Package - Sensor
-######################################################################
-
-sensor:
- ######################################################################
- # Sensor: Tire Pressure Front Left
- ######################################################################
- - platform: template
- sensors:
- ff590mr_tire_pressure_front_left:
- friendly_name: Anteriore Sinistra
- entity_id: sensor.ff590mr_lock
- 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
- entity_id: sensor.ff590mr_lock
- 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
- entity_id: sensor.ff590mr_lock
- 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
- entity_id: sensor.ff590mr_lock
- 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
- entity_id: sensor.ff590mr_odometer
- 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
- entity_id: sensor.ff590mr_odometer
- 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
- entity_id: sensor.ff590mr_odometer
- 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
- entity_id: sensor.ff590mr_odometer
- 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
- entity_id: sensor.ff590mr_odometer
- unit_of_measurement: 'giorni'
- value_template: "{{ state_attr('sensor.ff590mr_odometer', 'serviceintervaldays') }}"
- icon_template: mdi:wrench
+++ /dev/null
-######################################################################
-# Mercedes Package - Switch
-######################################################################
-
-switch:
- - platform: template
- switches:
- ff590mr_lock:
- friendly_name: Blocco Auto
- entity_id: lock.ff590mr_lock
- value_template: "{{ is_state('lock.ff590mr_lock', 'locked') }}"
- turn_on:
- - service: lock.lock
- entity_id: lock.ff590mr_lock
- turn_off:
- - service: lock.unlock
- entity_id: lock.ff590mr_lock
- icon_template: >-
- {% if is_state('lock.ff590mr_lock', 'locked') %}
- mdi:lock
- {% else %}
- mdi:lock-open
- {% endif %}