From: Giorgio Ravera Date: Thu, 13 Jun 2019 09:00:39 +0000 (+0200) Subject: converted files into unix format X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=7ce3e36d56025064c07863ca44ad4338d4745869;p=homeassistant.git converted files into unix format --- diff --git a/history.yaml b/history.yaml index 64a39af9..b2ca29d5 100644 --- a/history.yaml +++ b/history.yaml @@ -1,51 +1,51 @@ -###################################################################### -# History Configuration -###################################################################### - -exclude: - entities: - - sensor.time - - sensor.time_date - # Mercedes Me - - binary_sensor.ff590mr_door_front_left - - binary_sensor.ff590mr_door_front_right - - binary_sensor.ff590mr_door_rear_left - - binary_sensor.ff590mr_door_rear_right - #- binary_sensor.ff590mr_doors_closed - - binary_sensor.ff590mr_engine_light_warning - #- binary_sensor.ff590mr_locked - - binary_sensor.ff590mr_park_brake_status - - binary_sensor.ff590mr_tire_warning - - binary_sensor.ff590mr_trunk - #- binary_sensor.ff590mr_warning_brakefluid - #- binary_sensor.ff590mr_warning_coolantlevellow - #- binary_sensor.ff590mr_warning_washwater - - binary_sensor.ff590mr_window_front_left - - binary_sensor.ff590mr_window_front_right - - binary_sensor.ff590mr_window_rear_left - - binary_sensor.ff590mr_window_rear_right - - binary_sensor.ff590mr_windows_closed - - lock.ff590mr_lock - - sensor.ff590mr_distance_since_reset - - sensor.ff590mr_distance_since_start - - sensor.ff590mr_door_front_left - - sensor.ff590mr_door_front_right - - sensor.ff590mr_door_rear_left - - sensor.ff590mr_door_rear_right - #- sensor.ff590mr_fuel_level - - sensor.ff590mr_liquid_consumption_reset - - sensor.ff590mr_liquid_consumption_start - - sensor.ff590mr_lock - #- sensor.ff590mr_odometer - - sensor.ff590mr_service_interval_days - - sensor.ff590mr_tire_pressure_front_left - - sensor.ff590mr_tire_pressure_front_right - - sensor.ff590mr_tire_pressure_rear_left - - sensor.ff590mr_tire_pressure_rear_right - - sensor.ff590mr_trunk - domains: - - automation - - group - - input_boolean - - input_text +###################################################################### +# History Configuration +###################################################################### + +exclude: + entities: + - sensor.time + - sensor.time_date + # Mercedes Me + - binary_sensor.ff590mr_door_front_left + - binary_sensor.ff590mr_door_front_right + - binary_sensor.ff590mr_door_rear_left + - binary_sensor.ff590mr_door_rear_right + #- binary_sensor.ff590mr_doors_closed + - binary_sensor.ff590mr_engine_light_warning + #- binary_sensor.ff590mr_locked + - binary_sensor.ff590mr_park_brake_status + - binary_sensor.ff590mr_tire_warning + - binary_sensor.ff590mr_trunk + #- binary_sensor.ff590mr_warning_brakefluid + #- binary_sensor.ff590mr_warning_coolantlevellow + #- binary_sensor.ff590mr_warning_washwater + - binary_sensor.ff590mr_window_front_left + - binary_sensor.ff590mr_window_front_right + - binary_sensor.ff590mr_window_rear_left + - binary_sensor.ff590mr_window_rear_right + - binary_sensor.ff590mr_windows_closed + - lock.ff590mr_lock + - sensor.ff590mr_distance_since_reset + - sensor.ff590mr_distance_since_start + - sensor.ff590mr_door_front_left + - sensor.ff590mr_door_front_right + - sensor.ff590mr_door_rear_left + - sensor.ff590mr_door_rear_right + #- sensor.ff590mr_fuel_level + - sensor.ff590mr_liquid_consumption_reset + - sensor.ff590mr_liquid_consumption_start + - sensor.ff590mr_lock + #- sensor.ff590mr_odometer + - sensor.ff590mr_service_interval_days + - sensor.ff590mr_tire_pressure_front_left + - sensor.ff590mr_tire_pressure_front_right + - sensor.ff590mr_tire_pressure_rear_left + - sensor.ff590mr_tire_pressure_rear_right + - sensor.ff590mr_trunk + domains: + - automation + - group + - input_boolean + - input_text #- script \ No newline at end of file diff --git a/input_text/media_player.yaml b/input_text/media_player.yaml index 42f21cd8..1950baf1 100644 --- a/input_text/media_player.yaml +++ b/input_text/media_player.yaml @@ -1,17 +1,17 @@ -###################################################################### -# Input Text: TV Change Channel -###################################################################### - -tv_change_channel: - name: Cambia Canale - min: 1 - max: 3 - pattern: '[1-999]' - mode: text - -###################################################################### -# Input Text: Google Home Speak -###################################################################### -google_home_speak: - name: Pronuncia +###################################################################### +# Input Text: TV Change Channel +###################################################################### + +tv_change_channel: + name: Cambia Canale + min: 1 + max: 3 + pattern: '[1-999]' + mode: text + +###################################################################### +# Input Text: Google Home Speak +###################################################################### +google_home_speak: + name: Pronuncia mode: text \ No newline at end of file diff --git a/light/all.yaml b/light/all.yaml index a510512e..fd3b0e1b 100644 --- a/light/all.yaml +++ b/light/all.yaml @@ -1,14 +1,14 @@ -###################################################################### -# Global Light -###################################################################### - -- platform: group - name: "Luci Casa" - entities: - - light.luce_corridoio - - light.luce_cucina - - light.luce_divano - - light.luce_bagno - - light.luce_specchio - - light.luce_studio - - light.luce_camera +###################################################################### +# Global Light +###################################################################### + +- platform: group + name: "Luci Casa" + entities: + - light.luce_corridoio + - light.luce_cucina + - light.luce_divano + - light.luce_bagno + - light.luce_specchio + - light.luce_studio + - light.luce_camera diff --git a/light/bagno.yaml b/light/bagno.yaml index e4324ad6..0801297d 100644 --- a/light/bagno.yaml +++ b/light/bagno.yaml @@ -1,49 +1,49 @@ -###################################################################### -# Bathroom Light -###################################################################### - -- platform: mqtt - name: Luce Bagno - command_topic: "shellies/shellyswitch25-7457D8/relay/0/command" - state_topic: "shellies/shellyswitch25-7457D8/relay/0" - payload_on: "on" - payload_off: "off" - retain: false - qos: 0 - optimistic: false - -###################################################################### -# Bathroom Mirror Light -###################################################################### - -- platform: mqtt - name: Luce Specchio - command_topic: "shellies/shellyswitch25-7457D8/relay/1/command" - state_topic: "shellies/shellyswitch25-7457D8/relay/1" - payload_on: "on" - payload_off: "off" - retain: false - qos: 0 - optimistic: false - -###################################################################### -# Bathroom Global -###################################################################### - -- platform: template - lights: - luci_bagno: - friendly_name: "Luci Bagno" - turn_on: - service: light.turn_on - entity_id: "light.luce_bagno, light.luce_specchio" - turn_off: - service: light.turn_off - entity_id: "light.luce_bagno, light.luce_specchio" - value_template: >- - {% if is_state('light.luce_bagno', 'on') or is_state('light.luce_specchio', 'on') %} - on - {% else %} - off - {% endif %} - icon_template: mdi:lightbulb +###################################################################### +# Bathroom Light +###################################################################### + +- platform: mqtt + name: Luce Bagno + command_topic: "shellies/shellyswitch25-7457D8/relay/0/command" + state_topic: "shellies/shellyswitch25-7457D8/relay/0" + payload_on: "on" + payload_off: "off" + retain: false + qos: 0 + optimistic: false + +###################################################################### +# Bathroom Mirror Light +###################################################################### + +- platform: mqtt + name: Luce Specchio + command_topic: "shellies/shellyswitch25-7457D8/relay/1/command" + state_topic: "shellies/shellyswitch25-7457D8/relay/1" + payload_on: "on" + payload_off: "off" + retain: false + qos: 0 + optimistic: false + +###################################################################### +# Bathroom Global +###################################################################### + +- platform: template + lights: + luci_bagno: + friendly_name: "Luci Bagno" + turn_on: + service: light.turn_on + entity_id: "light.luce_bagno, light.luce_specchio" + turn_off: + service: light.turn_off + entity_id: "light.luce_bagno, light.luce_specchio" + value_template: >- + {% if is_state('light.luce_bagno', 'on') or is_state('light.luce_specchio', 'on') %} + on + {% else %} + off + {% endif %} + icon_template: mdi:lightbulb diff --git a/light/camera.yaml b/light/camera.yaml index f92f1104..20e13ec6 100644 --- a/light/camera.yaml +++ b/light/camera.yaml @@ -1,13 +1,13 @@ -###################################################################### -# Bedroom Light -###################################################################### - -- platform: mqtt - name: Luce Camera - command_topic: "shellies/shelly1-24D1A8/relay/0/command" - state_topic: "shellies/shelly1-24D1A8/relay/0" - payload_on: "on" - payload_off: "off" - retain: false - qos: 0 - optimistic: false +###################################################################### +# Bedroom Light +###################################################################### + +- platform: mqtt + name: Luce Camera + command_topic: "shellies/shelly1-24D1A8/relay/0/command" + state_topic: "shellies/shelly1-24D1A8/relay/0" + payload_on: "on" + payload_off: "off" + retain: false + qos: 0 + optimistic: false diff --git a/light/corridoio.yaml b/light/corridoio.yaml index 011e074e..44456444 100644 --- a/light/corridoio.yaml +++ b/light/corridoio.yaml @@ -1,13 +1,13 @@ -###################################################################### -# Corridor Light -###################################################################### - -- platform: mqtt - name: Luce Corridoio - command_topic: "shellies/shelly1-24D1EE/relay/0/command" - state_topic: "shellies/shelly1-24D1EE/relay/0" - payload_on: "on" - payload_off: "off" - retain: false - qos: 0 - optimistic: false +###################################################################### +# Corridor Light +###################################################################### + +- platform: mqtt + name: Luce Corridoio + command_topic: "shellies/shelly1-24D1EE/relay/0/command" + state_topic: "shellies/shelly1-24D1EE/relay/0" + payload_on: "on" + payload_off: "off" + retain: false + qos: 0 + optimistic: false diff --git a/light/cucina.yaml b/light/cucina.yaml index 3b89a7df..7938a241 100644 --- a/light/cucina.yaml +++ b/light/cucina.yaml @@ -1,13 +1,13 @@ -###################################################################### -# Kitchen Light -###################################################################### - -- platform: mqtt - name: Luce Cucina - command_topic: "shellies/shelly1-93B27D/relay/0/command" - state_topic: "shellies/shelly1-93B27D/relay/0" - payload_on: "on" - payload_off: "off" - retain: false - qos: 0 - optimistic: false +###################################################################### +# Kitchen Light +###################################################################### + +- platform: mqtt + name: Luce Cucina + command_topic: "shellies/shelly1-93B27D/relay/0/command" + state_topic: "shellies/shelly1-93B27D/relay/0" + payload_on: "on" + payload_off: "off" + retain: false + qos: 0 + optimistic: false diff --git a/light/studio.yaml b/light/studio.yaml index e35d28f4..01b309e5 100644 --- a/light/studio.yaml +++ b/light/studio.yaml @@ -1,13 +1,13 @@ -###################################################################### -# Office Light -###################################################################### - -- platform: mqtt - name: Luce Studio - command_topic: "shellies/shelly1-59E18C/relay/0/command" - state_topic: "shellies/shelly1-59E18C/relay/0" - payload_on: "on" - payload_off: "off" - retain: false - qos: 0 - optimistic: false +###################################################################### +# Office Light +###################################################################### + +- platform: mqtt + name: Luce Studio + command_topic: "shellies/shelly1-59E18C/relay/0/command" + state_topic: "shellies/shelly1-59E18C/relay/0" + payload_on: "on" + payload_off: "off" + retain: false + qos: 0 + optimistic: false diff --git a/logbook.yaml b/logbook.yaml index 71bd7002..e650f62f 100644 --- a/logbook.yaml +++ b/logbook.yaml @@ -1,51 +1,51 @@ -###################################################################### -# Logbook Configuration -###################################################################### - -exclude: - entities: - - sensor.time - - sensor.time_date - # Mercedes Me - - binary_sensor.ff590mr_door_front_left - - binary_sensor.ff590mr_door_front_right - - binary_sensor.ff590mr_door_rear_left - - binary_sensor.ff590mr_door_rear_right - #- binary_sensor.ff590mr_doors_closed - - binary_sensor.ff590mr_engine_light_warning - #- binary_sensor.ff590mr_locked - - binary_sensor.ff590mr_park_brake_status - - binary_sensor.ff590mr_tire_warning - - binary_sensor.ff590mr_trunk - #- binary_sensor.ff590mr_warning_brakefluid - #- binary_sensor.ff590mr_warning_coolantlevellow - #- binary_sensor.ff590mr_warning_washwater - - binary_sensor.ff590mr_window_front_left - - binary_sensor.ff590mr_window_front_right - - binary_sensor.ff590mr_window_rear_left - - binary_sensor.ff590mr_window_rear_right - - binary_sensor.ff590mr_windows_closed - - lock.ff590mr_lock - - sensor.ff590mr_distance_since_reset - - sensor.ff590mr_distance_since_start - - sensor.ff590mr_door_front_left - - sensor.ff590mr_door_front_right - - sensor.ff590mr_door_rear_left - - sensor.ff590mr_door_rear_right - #- sensor.ff590mr_fuel_level - - sensor.ff590mr_liquid_consumption_reset - - sensor.ff590mr_liquid_consumption_start - - sensor.ff590mr_lock - #- sensor.ff590mr_odometer - - sensor.ff590mr_service_interval_days - - sensor.ff590mr_tire_pressure_front_left - - sensor.ff590mr_tire_pressure_front_right - - sensor.ff590mr_tire_pressure_rear_left - - sensor.ff590mr_tire_pressure_rear_right - - sensor.ff590mr_trunk - domains: - - automation - - group - - input_boolean - - input_text - #- script +###################################################################### +# Logbook Configuration +###################################################################### + +exclude: + entities: + - sensor.time + - sensor.time_date + # Mercedes Me + - binary_sensor.ff590mr_door_front_left + - binary_sensor.ff590mr_door_front_right + - binary_sensor.ff590mr_door_rear_left + - binary_sensor.ff590mr_door_rear_right + #- binary_sensor.ff590mr_doors_closed + - binary_sensor.ff590mr_engine_light_warning + #- binary_sensor.ff590mr_locked + - binary_sensor.ff590mr_park_brake_status + - binary_sensor.ff590mr_tire_warning + - binary_sensor.ff590mr_trunk + #- binary_sensor.ff590mr_warning_brakefluid + #- binary_sensor.ff590mr_warning_coolantlevellow + #- binary_sensor.ff590mr_warning_washwater + - binary_sensor.ff590mr_window_front_left + - binary_sensor.ff590mr_window_front_right + - binary_sensor.ff590mr_window_rear_left + - binary_sensor.ff590mr_window_rear_right + - binary_sensor.ff590mr_windows_closed + - lock.ff590mr_lock + - sensor.ff590mr_distance_since_reset + - sensor.ff590mr_distance_since_start + - sensor.ff590mr_door_front_left + - sensor.ff590mr_door_front_right + - sensor.ff590mr_door_rear_left + - sensor.ff590mr_door_rear_right + #- sensor.ff590mr_fuel_level + - sensor.ff590mr_liquid_consumption_reset + - sensor.ff590mr_liquid_consumption_start + - sensor.ff590mr_lock + #- sensor.ff590mr_odometer + - sensor.ff590mr_service_interval_days + - sensor.ff590mr_tire_pressure_front_left + - sensor.ff590mr_tire_pressure_front_right + - sensor.ff590mr_tire_pressure_rear_left + - sensor.ff590mr_tire_pressure_rear_right + - sensor.ff590mr_trunk + domains: + - automation + - group + - input_boolean + - input_text + #- script diff --git a/logger.yaml b/logger.yaml index 03146ff0..6a885703 100644 --- a/logger.yaml +++ b/logger.yaml @@ -1,11 +1,11 @@ -###################################################################### -# Logger Configuration -# Log Severities: critical, fatal, error, warning, warn, info, debug, notset -###################################################################### - -default: info -logs: - homeassistant.components.automation: info - homeassistant.components.device_tracker: warn - homeassistant.components.input_text: info - custom_components.mercedesmeapi: warn +###################################################################### +# Logger Configuration +# Log Severities: critical, fatal, error, warning, warn, info, debug, notset +###################################################################### + +default: info +logs: + homeassistant.components.automation: info + homeassistant.components.device_tracker: warn + homeassistant.components.input_text: info + custom_components.mercedesmeapi: warn diff --git a/lovelace/car.yaml b/lovelace/car.yaml index d23dd37a..855acabe 100644 --- a/lovelace/car.yaml +++ b/lovelace/car.yaml @@ -1,85 +1,85 @@ -- title: Auto - id: 6_car - icon: mdi:car - badges: - - device_tracker.wdd1760081v167576 - - sensor.ff590mr_odometer - - sensor.ff590mr_tank_level - - cards: -# - type: gauge -# title: "Livello Carburante" -# unit: '%' -# entity: sensor.ff590mr_tank_level -# severity: -# red: 0 -# yellow: 30 -# green: 60 - - - type: entities - title: "Mercedes A200d: Sensori" - show_header_toggle: false - entities: - - binary_sensor.ff590mr_decklid_status - - binary_sensor.ff590mr_warning_washwater - - binary_sensor.ff590mr_warning_breakfluid - - binary_sensor.ff590mr_parkbreak_status - - binary_sensor.ff590mr_warning_engine_light -# - device_tracker.wdd1760081v167576 - - - type: entities - title: "Mercedes A200d: Ruote" - show_header_toggle: false - entities: - - sensor.ff590mr_tire_pressure_front_left - - sensor.ff590mr_tire_pressure_front_right - - sensor.ff590mr_tire_pressure_rear_left - - sensor.ff590mr_tire_pressure_rear_right - - - type: entities - title: "Mercedes A200d: Finestrini" - show_header_toggle: false - entities: - - sensor.ff590mr_window_front_left - - sensor.ff590mr_window_front_right - - sensor.ff590mr_window_rear_left - - sensor.ff590mr_window_rear_right - - - type: entities - title: "Mercedes A200d: Porte" - show_header_toggle: false - entities: - - sensor.ff590mr_door_front_left - - sensor.ff590mr_door_front_right - - sensor.ff590mr_door_rear_left - - sensor.ff590mr_door_rear_right - - - type: entities - title: "Mercedes A200d: Sblocco serrature" - show_header_toggle: false - entities: - - sensor.ff590mr_door_lock_vehicle - - sensor.ff590mr_door_lock_front_left - - sensor.ff590mr_door_lock_front_right - - sensor.ff590mr_door_lock_rear_left - - sensor.ff590mr_door_lock_rear_right - - sensor.ff590mr_door_lock_gas - - sensor.ff590mr_door_lock_decklid - - - type: entities - title: "Mercedes A200d: Dati" - show_header_toggle: false - entities: - #- sensor.ff590mr_electric_range_skip_indicator - #- sensor.ff590mr_electric_consumption_reset - #- sensor.ff590mr_electric_consumption_start - - sensor.ff590mr_licenseplate - - sensor.ff590mr_liquid_consumption_reset - - sensor.ff590mr_liquid_consumption_start - # - sensor.ff590mr_odometer - #- sensor.ff590mr_liquid_range - #- sensor.ff590mr_electric_distance_since_start - # - sensor.ff590mr_tank_level - #- sensor.ff590mr_electric_distance_ctritical_reset - - sensor.ff590mr_distance_since_reset - - sensor.ff590mr_distance_since_start +- title: Auto + id: 6_car + icon: mdi:car + badges: + - device_tracker.wdd1760081v167576 + - sensor.ff590mr_odometer + - sensor.ff590mr_tank_level + + cards: +# - type: gauge +# title: "Livello Carburante" +# unit: '%' +# entity: sensor.ff590mr_tank_level +# severity: +# red: 0 +# yellow: 30 +# green: 60 + + - type: entities + title: "Mercedes A200d: Sensori" + show_header_toggle: false + entities: + - binary_sensor.ff590mr_decklid_status + - binary_sensor.ff590mr_warning_washwater + - binary_sensor.ff590mr_warning_breakfluid + - binary_sensor.ff590mr_parkbreak_status + - binary_sensor.ff590mr_warning_engine_light +# - device_tracker.wdd1760081v167576 + + - type: entities + title: "Mercedes A200d: Ruote" + show_header_toggle: false + entities: + - sensor.ff590mr_tire_pressure_front_left + - sensor.ff590mr_tire_pressure_front_right + - sensor.ff590mr_tire_pressure_rear_left + - sensor.ff590mr_tire_pressure_rear_right + + - type: entities + title: "Mercedes A200d: Finestrini" + show_header_toggle: false + entities: + - sensor.ff590mr_window_front_left + - sensor.ff590mr_window_front_right + - sensor.ff590mr_window_rear_left + - sensor.ff590mr_window_rear_right + + - type: entities + title: "Mercedes A200d: Porte" + show_header_toggle: false + entities: + - sensor.ff590mr_door_front_left + - sensor.ff590mr_door_front_right + - sensor.ff590mr_door_rear_left + - sensor.ff590mr_door_rear_right + + - type: entities + title: "Mercedes A200d: Sblocco serrature" + show_header_toggle: false + entities: + - sensor.ff590mr_door_lock_vehicle + - sensor.ff590mr_door_lock_front_left + - sensor.ff590mr_door_lock_front_right + - sensor.ff590mr_door_lock_rear_left + - sensor.ff590mr_door_lock_rear_right + - sensor.ff590mr_door_lock_gas + - sensor.ff590mr_door_lock_decklid + + - type: entities + title: "Mercedes A200d: Dati" + show_header_toggle: false + entities: + #- sensor.ff590mr_electric_range_skip_indicator + #- sensor.ff590mr_electric_consumption_reset + #- sensor.ff590mr_electric_consumption_start + - sensor.ff590mr_licenseplate + - sensor.ff590mr_liquid_consumption_reset + - sensor.ff590mr_liquid_consumption_start + # - sensor.ff590mr_odometer + #- sensor.ff590mr_liquid_range + #- sensor.ff590mr_electric_distance_since_start + # - sensor.ff590mr_tank_level + #- sensor.ff590mr_electric_distance_ctritical_reset + - sensor.ff590mr_distance_since_reset + - sensor.ff590mr_distance_since_start diff --git a/lovelace/network.yaml b/lovelace/network.yaml index 18a567f8..f1b5f0ab 100644 --- a/lovelace/network.yaml +++ b/lovelace/network.yaml @@ -1,23 +1,23 @@ -- title: Dispositivi di Rete - id: 7_network - icon: mdi:lan - - cards: - - type: glance - name: External IP - entities: - - sensor.ip_1 - - sensor.ip_2 - - - type: glance - title: Speed Test - entities: - - sensor.speedtest_ping - - sensor.speedtest_download - - sensor.speedtest_upload - - - type: glance - title: pfSense - entities: - - sensor.freebsd_router_kbyte_sec_received +- title: Dispositivi di Rete + id: 7_network + icon: mdi:lan + + cards: + - type: glance + name: External IP + entities: + - sensor.ip_1 + - sensor.ip_2 + + - type: glance + title: Speed Test + entities: + - sensor.speedtest_ping + - sensor.speedtest_download + - sensor.speedtest_upload + + - type: glance + title: pfSense + entities: + - sensor.freebsd_router_kbyte_sec_received - sensor.freebsd_router_kbyte_sec_sent \ No newline at end of file diff --git a/recorder.yaml b/recorder.yaml index 330eb347..28a4c8a3 100644 --- a/recorder.yaml +++ b/recorder.yaml @@ -1,43 +1,43 @@ -###################################################################### -# Recorder Configuration -###################################################################### - -purge_keep_days: 30 -purge_interval: 1 -exclude: - entities: - - sensor.time - - sensor.time_date - - sensor.ff590mr_distance_since_reset - - sensor.ff590mr_distance_since_start - - sensor.ff590mr_door_front_left - - sensor.ff590mr_door_front_right - - sensor.ff590mr_door_lock_decklid - - sensor.ff590mr_door_lock_front_left - - sensor.ff590mr_door_lock_front_right - - sensor.ff590mr_door_lock_gas - - sensor.ff590mr_door_lock_rear_left - - sensor.ff590mr_door_lock_rear_right - - sensor.ff590mr_door_rear_left - - sensor.ff590mr_door_rear_right - - sensor.ff590mr_electric_consumption_reset - - sensor.ff590mr_electric_consumption_start - - sensor.ff590mr_electric_distance_critical_reset - - sensor.ff590mr_electric_distance_since_start - - sensor.ff590mr_electric_range_skip_indicator - - sensor.ff590mr_licenseplate - - sensor.ff590mr_liquid_consumption_reset - - sensor.ff590mr_liquid_consumption_start - - sensor.ff590mr_liquid_range - - sensor.ff590mr_tire_pressure_front_left - - sensor.ff590mr_tire_pressure_front_right - - sensor.ff590mr_tire_pressure_rear_left - - sensor.ff590mr_tire_pressure_rear_right - - sensor.ff590mr_window_front_left - - sensor.ff590mr_window_front_right - - sensor.ff590mr_window_rear_left - - sensor.ff590mr_window_rear_right - domains: - - automation - - group - #- script +###################################################################### +# Recorder Configuration +###################################################################### + +purge_keep_days: 30 +purge_interval: 1 +exclude: + entities: + - sensor.time + - sensor.time_date + - sensor.ff590mr_distance_since_reset + - sensor.ff590mr_distance_since_start + - sensor.ff590mr_door_front_left + - sensor.ff590mr_door_front_right + - sensor.ff590mr_door_lock_decklid + - sensor.ff590mr_door_lock_front_left + - sensor.ff590mr_door_lock_front_right + - sensor.ff590mr_door_lock_gas + - sensor.ff590mr_door_lock_rear_left + - sensor.ff590mr_door_lock_rear_right + - sensor.ff590mr_door_rear_left + - sensor.ff590mr_door_rear_right + - sensor.ff590mr_electric_consumption_reset + - sensor.ff590mr_electric_consumption_start + - sensor.ff590mr_electric_distance_critical_reset + - sensor.ff590mr_electric_distance_since_start + - sensor.ff590mr_electric_range_skip_indicator + - sensor.ff590mr_licenseplate + - sensor.ff590mr_liquid_consumption_reset + - sensor.ff590mr_liquid_consumption_start + - sensor.ff590mr_liquid_range + - sensor.ff590mr_tire_pressure_front_left + - sensor.ff590mr_tire_pressure_front_right + - sensor.ff590mr_tire_pressure_rear_left + - sensor.ff590mr_tire_pressure_rear_right + - sensor.ff590mr_window_front_left + - sensor.ff590mr_window_front_right + - sensor.ff590mr_window_rear_left + - sensor.ff590mr_window_rear_right + domains: + - automation + - group + #- script diff --git a/script/audio.yaml b/script/audio.yaml index ea655b99..8efbfd14 100644 --- a/script/audio.yaml +++ b/script/audio.yaml @@ -1,65 +1,65 @@ -###################################################################### -# Script: Laura -# Inputs: -# - type: -# 1 -> bell'affare -# 2 -> belan -# 3 -> una schifezza -# -# Operations: -# - script.volume_manager -# - media_player.play_media -###################################################################### - -laura_voice: - alias: Voce Laura - sequence: - - condition: state - entity_id: input_boolean.speech_notifications - state: 'on' - - - service: script.volume_manager - data_template: - media_player: >- - {# Check Null Input #} - {% if media_player | length == 0 %} - {% set media_player = 'media_player.google_home' %} - {% endif %} - {{ media_player }} - volume_level: "{{ volume_level }}" - - - service: media_player.play_media - data_template: - entity_id: >- - {# Check Null Input #} - {% if media_player | length == 0 %} - {% set media_player = 'media_player.google_home' %} - {% endif %} - {{ media_player }} - media_content_type: 'audio/mp4' - media_content_id: >- - {% if type is not defined %} - {% set type = 1 %} - {% endif %} - https://home.giorgioravera.it/local/audio/laura/{{type}}.mp3 - -laura_voice_1: - alias: Voce Laura 1 - sequence: - - service: script.laura_voice - data: - type: '1' - -laura_voice_2: - alias: Voce Laura 2 - sequence: - - service: script.laura_voice - data: - type: '2' - -laura_voice_3: - alias: Voce Laura 3 - sequence: - - service: script.laura_voice - data: - type: '3' +###################################################################### +# Script: Laura +# Inputs: +# - type: +# 1 -> bell'affare +# 2 -> belan +# 3 -> una schifezza +# +# Operations: +# - script.volume_manager +# - media_player.play_media +###################################################################### + +laura_voice: + alias: Voce Laura + sequence: + - condition: state + entity_id: input_boolean.speech_notifications + state: 'on' + + - service: script.volume_manager + data_template: + media_player: >- + {# Check Null Input #} + {% if media_player | length == 0 %} + {% set media_player = 'media_player.google_home' %} + {% endif %} + {{ media_player }} + volume_level: "{{ volume_level }}" + + - service: media_player.play_media + data_template: + entity_id: >- + {# Check Null Input #} + {% if media_player | length == 0 %} + {% set media_player = 'media_player.google_home' %} + {% endif %} + {{ media_player }} + media_content_type: 'audio/mp4' + media_content_id: >- + {% if type is not defined %} + {% set type = 1 %} + {% endif %} + https://home.giorgioravera.it/local/audio/laura/{{type}}.mp3 + +laura_voice_1: + alias: Voce Laura 1 + sequence: + - service: script.laura_voice + data: + type: '1' + +laura_voice_2: + alias: Voce Laura 2 + sequence: + - service: script.laura_voice + data: + type: '2' + +laura_voice_3: + alias: Voce Laura 3 + sequence: + - service: script.laura_voice + data: + type: '3' diff --git a/script/media_player.yaml b/script/media_player.yaml index ac93fde5..5c701146 100644 --- a/script/media_player.yaml +++ b/script/media_player.yaml @@ -1,123 +1,123 @@ -###################################################################### -# Script: TV Change Channel -# Inputs: -# - tv -# - channel -# -# Operations: -# - media_player.play_media -###################################################################### - -tv_change_channel: - alias: "TV: Cambia canale" - sequence: - - service: media_player.play_media - data_template: - entity_id: >- - {% if tv | length == 0 %} - {% set tv = 'media_player.tv_sala' %} - {% endif %} - {{ tv }} - media_content_type: "channel" - media_content_id: "{{ channel }}" - -###################################################################### -# Script: TV Volume Up -# Inputs: -# - tv -# -# Operations: -# - media_player.volume_up -###################################################################### - -tv_volume_up: - alias: "TV: Alza volume" - sequence: - - service: media_player.volume_up - data_template: - entity_id: >- - {% if tv | length == 0 %} - {% set tv = 'media_player.tv_sala' %} - {% endif %} - {{ tv }} - -###################################################################### -# Script: TV Volume Down -# Inputs: -# - tv -# -# Operations: -# - media_player.volume_down -###################################################################### - -tv_volume_down: - alias: "TV: Abbassa volume" - sequence: - - service: media_player.volume_down - data_template: - entity_id: >- - {% if tv | length == 0 %} - {% set tv = 'media_player.tv_sala' %} - {% endif %} - {{ tv }} - -###################################################################### -# Script: TV Volume Mute -# Inputs: -# - tv -# -# Operations: -# - media_player.volume_mute -###################################################################### - -tv_volume_mute: - alias: "TV: Volume Muto" - sequence: - - service: media_player.volume_mute - data_template: - entity_id: >- - {% if tv | length == 0 %} - {% set tv = 'media_player.tv_sala' %} - {% endif %} - {{ tv }} - is_volume_muted: true - -###################################################################### -# Script: TV Play/Pause -# Inputs: -# - tv -# -# Operations: -# - media_player.media_play_pause -###################################################################### - -tv_play_pause: - alias: "TV: Play/Pause" - sequence: - - service: media_player.media_play_pause - data_template: - entity_id: >- - {% if tv | length == 0 %} - {% set tv = 'media_player.tv_sala' %} - {% endif %} - {{ tv }} - -###################################################################### -# Script: TV Toggle -# Inputs: -# - tv -# -# Operations: -# - media_player.toggle -###################################################################### - -tv_toggle: - alias: "TV: Accendi/Spegni" - sequence: - - service: media_player.toggle - data_template: - entity_id: >- - {% if tv | length == 0 %} - {% set tv = 'media_player.tv_sala' %} - {% endif %} - {{ tv }} +###################################################################### +# Script: TV Change Channel +# Inputs: +# - tv +# - channel +# +# Operations: +# - media_player.play_media +###################################################################### + +tv_change_channel: + alias: "TV: Cambia canale" + sequence: + - service: media_player.play_media + data_template: + entity_id: >- + {% if tv | length == 0 %} + {% set tv = 'media_player.tv_sala' %} + {% endif %} + {{ tv }} + media_content_type: "channel" + media_content_id: "{{ channel }}" + +###################################################################### +# Script: TV Volume Up +# Inputs: +# - tv +# +# Operations: +# - media_player.volume_up +###################################################################### + +tv_volume_up: + alias: "TV: Alza volume" + sequence: + - service: media_player.volume_up + data_template: + entity_id: >- + {% if tv | length == 0 %} + {% set tv = 'media_player.tv_sala' %} + {% endif %} + {{ tv }} + +###################################################################### +# Script: TV Volume Down +# Inputs: +# - tv +# +# Operations: +# - media_player.volume_down +###################################################################### + +tv_volume_down: + alias: "TV: Abbassa volume" + sequence: + - service: media_player.volume_down + data_template: + entity_id: >- + {% if tv | length == 0 %} + {% set tv = 'media_player.tv_sala' %} + {% endif %} + {{ tv }} + +###################################################################### +# Script: TV Volume Mute +# Inputs: +# - tv +# +# Operations: +# - media_player.volume_mute +###################################################################### + +tv_volume_mute: + alias: "TV: Volume Muto" + sequence: + - service: media_player.volume_mute + data_template: + entity_id: >- + {% if tv | length == 0 %} + {% set tv = 'media_player.tv_sala' %} + {% endif %} + {{ tv }} + is_volume_muted: true + +###################################################################### +# Script: TV Play/Pause +# Inputs: +# - tv +# +# Operations: +# - media_player.media_play_pause +###################################################################### + +tv_play_pause: + alias: "TV: Play/Pause" + sequence: + - service: media_player.media_play_pause + data_template: + entity_id: >- + {% if tv | length == 0 %} + {% set tv = 'media_player.tv_sala' %} + {% endif %} + {{ tv }} + +###################################################################### +# Script: TV Toggle +# Inputs: +# - tv +# +# Operations: +# - media_player.toggle +###################################################################### + +tv_toggle: + alias: "TV: Accendi/Spegni" + sequence: + - service: media_player.toggle + data_template: + entity_id: >- + {% if tv | length == 0 %} + {% set tv = 'media_player.tv_sala' %} + {% endif %} + {{ tv }} diff --git a/script/notify.yaml b/script/notify.yaml index 485c67f0..9e62dba2 100644 --- a/script/notify.yaml +++ b/script/notify.yaml @@ -1,179 +1,179 @@ -###################################################################### -# Script: Text Notification -# Inputs: -# - title -# - message -# - enable_persistent -# -# Operations: -# - notify.mail -# - notify.push -# - persistent_notification.create (if enable_persistent) -###################################################################### - -notify_text_internal: - alias: Notifiche testuali - sequence: - - service: notify.mail - data_template: - title: "{{ title }}" - message: "{{ message }}" - - - service: notify.push - data_template: - title: "{{ title }}" - message: "{{ message }}" - - - condition: template - value_template: > - {% if enable_persistent is defined %} - {% if enable_persistent | int == 1 %} - true - {% else %} - false - {% endif %} - {% else %} - false - {% endif %} - - - service: persistent_notification.create - data_template: - title: "{{ title }}" - message: "{{ message }}" - -notify_text: - alias: Notifiche testuali - sequence: - - condition: state - entity_id: input_boolean.text_notifications - state: 'on' - - - service: script.notify_text_internal - data_template: - title: >- - {# Check Null Input #} - {% if title | length == 0 %} - {% set title = 'Home Assistant' %} - {% endif %} - {{ title }} - message: "{{ message }}" - enable_persistent: "{{ enable_persistent }}" - -###################################################################### -# Script: Volume Manager -# Input: -# - media_player -# - volume_level -# -# Operations: -# - media_player.volume_set -###################################################################### - -volume_manager: - alias: Gestione Volume - sequence: - - service: media_player.volume_set - data_template: - entity_id: >- - {# Check Null Input #} - {% if media_player | length == 0 %} - {% set media_player = 'media_player.google_home' %} - {% endif %} - {{ media_player }} - volume_level: >- - {# Default Values #} - {% set defaultVolume = 0.30 %} - {% set maxDayVolume = 0.60 %} - {% set maxNightVolume = 0.20 %} - - {# Check Null Input #} - {% if volume_level | length == 0 %} - {% set volume_level = defaultVolume %} - {% endif %} - - {# Day/Night mode #} - {% if is_state('input_boolean.home_mode_night', 'off') %} - {% if ((volume_level)|float) > ((maxDayVolume)|float) %} - {{ maxDayVolume }} - {% else %} - {{ volume_level }} - {% endif %} - {% else %} - {% if ((volume_level)|float) > ((maxNightVolume)|float) %} - {{ maxNightVolume }} - {% else %} - {{ volume_level }} - {% endif %} - {% endif %} - -###################################################################### -# Script: Voice Notification -# Input: -# - media_player -# - volume_level -# - language -# - message -# -# Operations: -# - script.notify_volume_manager -# - tts.google_translate_say -###################################################################### - -notify_voice: - alias: Notifiche vocali - sequence: - - condition: state - entity_id: input_boolean.speech_notifications - state: 'on' - - - service: script.volume_manager - data_template: - media_player: "{{ media_player }}" - volume_level: "{{ volume_level }}" - - - service: tts.google_translate_say - data_template: - entity_id: >- - {# Check Null Input #} - {% if media_player | length == 0 %} - {% set media_player = 'media_player.google_home' %} - {% endif %} - {{ media_player }} - language: >- - {# Check Null Input #} - {% if language | length == 0 %} - {% set language = 'it' %} - {% endif %} - {{ language }} - message: "{{ message }}" - -###################################################################### -# Script: Global Notification (Text+Voice) -# Inputs: -# - title -# - media_player -# - volume_level -# _ language -# - message -# - enable_persistent -# -# Operations: -# - notify_text -# - notify_voice -###################################################################### - -notify_all: - alias: Notifiche globali (Testo+Voce) - sequence: - - service: script.notify_text - data_template: - title: "{{ title }}" - message: "{{ message }}" - enable_persistent: "{{ enable_persistent }}" - - - service: script.notify_voice - data_template: - media_player: "{{ media_player }}" - volume_level: "{{ volume_level }}" - language: "{{ language }}" - message: "{{ message }}" +###################################################################### +# Script: Text Notification +# Inputs: +# - title +# - message +# - enable_persistent +# +# Operations: +# - notify.mail +# - notify.push +# - persistent_notification.create (if enable_persistent) +###################################################################### + +notify_text_internal: + alias: Notifiche testuali + sequence: + - service: notify.mail + data_template: + title: "{{ title }}" + message: "{{ message }}" + + - service: notify.push + data_template: + title: "{{ title }}" + message: "{{ message }}" + + - condition: template + value_template: > + {% if enable_persistent is defined %} + {% if enable_persistent | int == 1 %} + true + {% else %} + false + {% endif %} + {% else %} + false + {% endif %} + + - service: persistent_notification.create + data_template: + title: "{{ title }}" + message: "{{ message }}" + +notify_text: + alias: Notifiche testuali + sequence: + - condition: state + entity_id: input_boolean.text_notifications + state: 'on' + + - service: script.notify_text_internal + data_template: + title: >- + {# Check Null Input #} + {% if title | length == 0 %} + {% set title = 'Home Assistant' %} + {% endif %} + {{ title }} + message: "{{ message }}" + enable_persistent: "{{ enable_persistent }}" + +###################################################################### +# Script: Volume Manager +# Input: +# - media_player +# - volume_level +# +# Operations: +# - media_player.volume_set +###################################################################### + +volume_manager: + alias: Gestione Volume + sequence: + - service: media_player.volume_set + data_template: + entity_id: >- + {# Check Null Input #} + {% if media_player | length == 0 %} + {% set media_player = 'media_player.google_home' %} + {% endif %} + {{ media_player }} + volume_level: >- + {# Default Values #} + {% set defaultVolume = 0.30 %} + {% set maxDayVolume = 0.60 %} + {% set maxNightVolume = 0.20 %} + + {# Check Null Input #} + {% if volume_level | length == 0 %} + {% set volume_level = defaultVolume %} + {% endif %} + + {# Day/Night mode #} + {% if is_state('input_boolean.home_mode_night', 'off') %} + {% if ((volume_level)|float) > ((maxDayVolume)|float) %} + {{ maxDayVolume }} + {% else %} + {{ volume_level }} + {% endif %} + {% else %} + {% if ((volume_level)|float) > ((maxNightVolume)|float) %} + {{ maxNightVolume }} + {% else %} + {{ volume_level }} + {% endif %} + {% endif %} + +###################################################################### +# Script: Voice Notification +# Input: +# - media_player +# - volume_level +# - language +# - message +# +# Operations: +# - script.notify_volume_manager +# - tts.google_translate_say +###################################################################### + +notify_voice: + alias: Notifiche vocali + sequence: + - condition: state + entity_id: input_boolean.speech_notifications + state: 'on' + + - service: script.volume_manager + data_template: + media_player: "{{ media_player }}" + volume_level: "{{ volume_level }}" + + - service: tts.google_translate_say + data_template: + entity_id: >- + {# Check Null Input #} + {% if media_player | length == 0 %} + {% set media_player = 'media_player.google_home' %} + {% endif %} + {{ media_player }} + language: >- + {# Check Null Input #} + {% if language | length == 0 %} + {% set language = 'it' %} + {% endif %} + {{ language }} + message: "{{ message }}" + +###################################################################### +# Script: Global Notification (Text+Voice) +# Inputs: +# - title +# - media_player +# - volume_level +# _ language +# - message +# - enable_persistent +# +# Operations: +# - notify_text +# - notify_voice +###################################################################### + +notify_all: + alias: Notifiche globali (Testo+Voce) + sequence: + - service: script.notify_text + data_template: + title: "{{ title }}" + message: "{{ message }}" + enable_persistent: "{{ enable_persistent }}" + + - service: script.notify_voice + data_template: + media_player: "{{ media_player }}" + volume_level: "{{ volume_level }}" + language: "{{ language }}" + message: "{{ message }}" diff --git a/sensor/car.yaml b/sensor/car.yaml index ff85d02f..ca3f6a10 100644 --- a/sensor/car.yaml +++ b/sensor/car.yaml @@ -1,215 +1,215 @@ -###################################################################### -# 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 +###################################################################### +# 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