"show_name": false,
"show_state": false,
"show_icon": true,
- "entity": "binary_sensor.home_mode",
+ "entity": "sensor.home_mode",
"color": ""
},
{
"badges": [
{
"type": "entity",
- "entity": "binary_sensor.home_mode",
+ "entity": "sensor.home_mode",
"display_type": "minimal"
},
{
+++ /dev/null
-######################################################################
-# Binary Sensor: Home Mode
-######################################################################
-
-- platform: template
- sensors:
- home_mode:
- friendly_name: Modalità Casa
- value_template: >-
- {{ is_state('sensor.home_mode', 'giorno')
- or is_state('sensor.home_mode', 'notte')
- or is_state('sensor.home_mode', 'vacanza') }}
- icon_template: >-
- {% if is_state('sensor.home_mode', 'giorno') %}
- mdi:white-balance-sunny
- {% elif is_state('sensor.home_mode', 'notte') %}
- mdi:weather-night
- {% elif is_state('sensor.home_mode', 'vacanza') %}
- mdi:airplane-takeoff
- {% endif %}
-
-######################################################################
-# Binary Sensor: Text Notification
-######################################################################
-
-- platform: template
- sensors:
- text_notifications:
- friendly_name: Notifiche testuali
- value_template: >-
- {{ is_state('input_boolean.text_notifications', 'on') }}
- icon_template: >-
- {% if is_state('input_boolean.text_notifications', 'on') %}
- mdi:message-bulleted
- {% else %}
- mdi:message-bulleted-off
- {% endif %}
-
-######################################################################
-# Binary Sensor: Speech Notification
-######################################################################
-
-- platform: template
- sensors:
- speech_notifications:
- friendly_name: Notifiche vocali
- value_template: >-
- {{ is_state('input_boolean.speech_notifications', 'on') }}
- icon_template: >-
- {% if is_state('input_boolean.speech_notifications', 'on') %}
- mdi:speaker-wireless
- {% else %}
- mdi:speaker-off
- {% endif %}
# Customization: Home Assistant
######################################################################
+sensor.home_mode:
+ friendly_name: "Modalità Casa"
+ device_class: enum
+
+binary_sensor.text_notifications:
+ friendly_name: "Notifiche testuali"
+
+binary_sensor.speech_notifications:
+ friendly_name: "Notifiche vocali"
+
script.homeassistant_restart:
icon: mdi:restart
package.bticino_300eos:
customize: &customize
package: 'bticino_300eos'
- version: 1.0.0
+ version: 1.1.0
######################################################################
# BTcino Classe 300eos with Netatmo Package - Customizations - Entities
input_boolean.portone:
<<: *customize
switch.portone:
+ friendly_name: "Portone"
<<: *customize
######################################################################
icon: mdi:door
######################################################################
-# BTcino Classe 300eos with Netatmo Package - Switch
+# BTcino Classe 300eos with Netatmo Package - Switches
######################################################################
-switch:
- - platform: template
- switches:
- portone:
- value_template: "{{ is_state('input_boolean.portone', 'on') }}"
- icon_template: mdi:door
+template:
+ - switch:
+ - name: "portone"
+ unique_id: portone
+ state: "{{ is_state('input_boolean.portone', 'on') }}"
+ icon: mdi:door
turn_on:
- action: input_boolean.turn_on
target:
entity_id: input_boolean.portone
- - delay: 1
+ - delay: "00:00:01"
- action: input_boolean.turn_off
target:
entity_id: input_boolean.portone
turn_off:
- action: input_boolean.turn_off
- target:
- entity_id: input_boolean.portone
+ - action: input_boolean.turn_off
+ target:
+ entity_id: input_boolean.portone
######################################################################
# BTcino Classe 300eos with Netatmo Package - Lock
######################################################################
-#lock:
-# - platform: template
-# name: Portone
-# value_template: "{{ is_state('input_boolean.portone', 'off') }}"
-# lock:
-# action: input_boolean.turn_off
-# target:
-# entity_id: input_boolean.portone
-# unlock:
-# - action: input_boolean.turn_on
-# target:
-# entity_id: input_boolean.portone
-# - delay: 1
-# - action: input_boolean.turn_off
-# target:
-# entity_id: input_boolean.portone
+#template:
+# - lock:
+# - name: "Portone"
+# unique_id: portone
+# state: "{{ is_state('input_boolean.portone', 'off') }}"
+# lock:
+# - action: input_boolean.turn_off
+# target:
+# entity_id: input_boolean.portone
+# unlock:
+# - action: input_boolean.turn_on
+# target:
+# entity_id: input_boolean.portone
+# - delay: "00:00:01"
+# - action: input_boolean.turn_off
+# target:
+# entity_id: input_boolean.portone
######################################################################
# BTcino Classe 300eos with Netatmo Package - Google Assistant
homeassistant:
customize:
+
+ ######################################################################
+ # Covers
+ ######################################################################
+
# BTI-NT4027C - Tapparella Cucina Grande (0x00047400015ada4b)
cover.tapparella_cucina_grande:
supported_features: 15
switch.tapparella_camera_led_in_dark:
friendly_name: "LED se spento"
+ ######################################################################
+ # Lights
+ ######################################################################
+
# BTI-4411C - Luce Sala (0x00047400002bd3ad)
#light.luce_sala:
# supported_color_modes: null
######################################################################
script:
+
######################################################################
# BTicino: Update
######################################################################
target:
entity_id: '{{ pending_update_list }}'
+######################################################################
+# BTicino Package - Operations Automations
+######################################################################
+
automation:
+
######################################################################
# BTicino: Update Notification
######################################################################
# Alarm Package - Alarm Engine - Binary Sensors
######################################################################
-binary_sensor:
- # Generic Alarms
- - platform: template
- sensors:
- alarms:
- friendly_name: Allarmi
- value_template: >-
- {{ is_state('group.alarms', 'on') }}
- icon_template: >-
+template:
+ - binary_sensor:
+ - name: "alarms"
+ unique_id: alarms
+ state: "{{ is_state('group.alarms', 'on') }}"
+ device_class: safety
+ icon: >
{% if is_state('group.alarms', 'on') %}
- mdi:alarm-light
+ mdi:alarm-light
{% else %}
- mdi:alarm-light-outline
+ mdi:alarm-light-outline
{% endif %}
######################################################################
######################################################################
automation:
+
######################################################################
# Alarm Automation: Aknowledge Alarms
#
######################################################################
-# Mercedes Package - Google Assistant
+# Alarm Package - Google Assistant
######################################################################
google_assistant:
--- /dev/null
+######################################################################
+# Alarm Package - Main
+######################################################################
+
+homeassistant:
+ customize:
+
+ ######################################################################
+ # Alarm Package - Main - General Package Settings
+ ######################################################################
+
+ package.alarm:
+ customize: &customize
+ package: 'alarm'
+ version: 1.1.0
+
+ ######################################################################
+ # Alarm Package - Main - Entities
+ ######################################################################
+
+ group.alarms:
+ <<: *customize
+ binary_sensor.alarms:
+ friendly_name: "Allarmi"
+ <<: *customize
+ input_boolean.generic_alarm:
+ device_class: safety
+ <<: *customize
+ input_boolean.door_alarm:
+ device_class: safety
+ <<: *customize
+ input_boolean.water_alarm:
+ device_class: safety
+ <<: *customize
+ input_boolean.car_alarm:
+ device_class: safety
+ <<: *customize
######################################################################
script:
+
######################################################################
# Alarm: Start Alarm Sound
#
######################################################################
automation:
+
######################################################################
# Alarm Door
#
######################################################################
binary_sensor.central_heating:
+ friendly_name: "Riscaldamento Centralizzato"
<<: *customize
input_boolean.central_heating:
<<: *customize
# Central Heating Package - Binary Sensor
######################################################################
-binary_sensor:
- - platform: template
- sensors:
- central_heating:
- friendly_name: Riscaldamento Centralizzato
- value_template: >-
- {{ is_state('input_boolean.central_heating', 'on') }}
- icon_template: >-
+template:
+ - binary_sensor:
+ - name: "central_heating"
+ unique_id: central_heating
+ state: "{{ is_state('input_boolean.central_heating', 'on') }}"
+ device_class: heat
+ icon: >
{% if is_state('input_boolean.central_heating', 'on') %}
- mdi:radiator
+ mdi:radiator
{% else %}
- mdi:radiator-disabled
+ mdi:radiator-disabled
{% endif %}
######################################################################
homeassistant:
customize:
+
+ ######################################################################
# Hoven Electrolyx EOB9S21WX
+ ######################################################################
+
binary_sensor.electrolux_forno_doorstate:
friendly_name: "Porta forno"
button.electrolux_forno_executecommand:
switch.electrolux_forno_cavitylight:
friendly_name: "Luce forno"
+ ######################################################################
# Refrigerator AEG NSC7P751DS
+ ######################################################################
+
binary_sensor.aeg_frigo_freezer_doorstate:
friendly_name: "Porta Freezer"
binary_sensor.aeg_frigo_fridge_doorstate:
logbook:
exclude:
entities:
+ ######################################################################
# Hoven Electrolyx EOB9S21WX
+ ######################################################################
- select.electrolux_forno_program
- sensor.electrolux_forno_connectivitystate
- sensor.electrolux_forno_alerts
- sensor.electrolux_forno_watertankempty
- sensor.electrolux_forno_watertrayinsertionstate
+ ######################################################################
# Refrigerator AEG NSC7P751DS
+ ######################################################################
- binary_sensor.aeg_frigo_freezer_doorstate
- binary_sensor.aeg_frigo_fridge_doorstate
- button.aeg_frigo_airfilterstatereset
package.netatmo:
customize: &customize
package: 'electrolux'
- version: 1.0.1
+ version: 1.1.0
######################################################################
binary_sensor.home_assistant_error:
+ friendly_name: "Errore Generale"
<<: *customize
input_boolean.home_assistant_error:
<<: *customize
# Errors Package - Binary Sensor
######################################################################
-binary_sensor:
- - platform: template
- sensors:
- home_assistant_error:
- friendly_name: Errore Generale
- value_template: >-
- {{ is_state('input_boolean.home_assistant_error', 'on') }}
- icon_template: >-
+template:
+ - binary_sensor:
+ - name: "home_assistant_error"
+ unique_id: home_assistant_error
+ state: "{{ is_state('input_boolean.home_assistant_error', 'on') }}"
+ device_class: problem
+ icon: >
{% if is_state('input_boolean.home_assistant_error', 'on') %}
- mdi:alert-circle-outline
+ mdi:alert-circle-outline
{% else %}
- mdi:alert-circle-check-outline
+ mdi:alert-circle-check-outline
{% endif %}
######################################################################
######################################################################
automation:
+
######################################################################
# Error generation
# - input_boolean.turn_on
package.guard_mode:
customize: &customize
package: 'guard_mode'
- version: 1.0.0
+ version: 1.1.0
######################################################################
# Guard Mode Package - Customizations - Entities
######################################################################
binary_sensor.guard_mode:
+ friendly_name: Modalità Guardia
<<: *customize
input_boolean.guard_mode:
<<: *customize
# Guard Mode Package - Binary Sensor
######################################################################
-binary_sensor:
- - platform: template
- sensors:
- guard_mode:
- friendly_name: Modalità Guardia
- value_template: >-
- {{ is_state('input_boolean.guard_mode', 'on') }}
- icon_template: >-
+template:
+ - binary_sensor:
+ - name: "guard_mode"
+ unique_id: guard_mode
+ state: "{{ is_state('input_boolean.guard_mode', 'off') }}"
+ device_class: safety
+ icon: >
{% if is_state('input_boolean.guard_mode', 'on') %}
- mdi:shield-home
+ mdi:shield-home
{% else %}
- mdi:shield-off
+ mdi:shield-off
{% endif %}
######################################################################
######################################################################
automation:
+
######################################################################
# Guard Mode: Enable
######################################################################
binary_sensor.lavatrice_avvio_remoto:
friendly_name: "Avvio Remoto"
-
event.lavatrice_notification:
friendly_name: "Notifiche"
-
event.lavatrice_errore:
friendly_name: "Errori"
-
number.lavatrice_delayed_end:
friendly_name: "Avvio ritardato"
-
sensor.lavatrice_cicli:
friendly_name: "Cicli"
-
sensir.lavatrice_delayed_end:
friendly_name: "Avvio ritardato"
-
sensor.lavatrice_stato_attuale:
friendly_name: "Stato attuale"
-
sensor.lavatrice_tempo_rimanente:
friendly_name: "Tempo rimanente"
-
sensor.lavatrice_total_time:
friendly_name: "Tempo totale"
-
select.lavatrice_operation:
friendly_name: "Programma Lavaggio"
-
switch.lavatrice_power:
friendly_name: "Accensione"
homeassistant:
customize:
+
######################################################################
# Binary Sensors
######################################################################
+
# Liquido Lavacristalli - warningwashwater
binary_sensor.ff590mr_low_wash_water_warning:
friendly_name: Liquido Lavacristalli
######################################################################
# Buttons
######################################################################
+
# Avviare Preriscaldamento Abitacolo
button.ff590mr_preclimate_start:
friendly_name: Avvia Preriscaldamento
######################################################################
# Device Tracker
######################################################################
+
device_tracker.ff590mr_device_tracker:
friendly_name: Mercedes A200d
entity_picture: /local/images/device-trackers/mercedes.jpg
######################################################################
# Locks
######################################################################
+
lock.ff590mr_lock:
friendly_name: Blocco auto
icon: mdi:lock
######################################################################
# Sensors
######################################################################
+
# Blocco Veicolo - lock
sensor.ff590mr_lock:
friendly_name: Veicolo
######################################################################
# Diagnostic Sensors
######################################################################
+
# Sensore Dati connessione
sensor.ff590mr_car:
friendly_name: Messaggi auto
######################################################################
# Switches
######################################################################
+
# Interruttore Riscaldamento Ausiliario
switch.ff590mr_auxiliary_heating:
friendly_name: Riscaldamento Ausiliario
-
switch.ff590mr_pre_entry_climate_control:
friendly_name: Controllo Preriscaldamento abitacolo
# Mercedes Package - Doors Sensors
######################################################################
-binary_sensor:
+template:
+
######################################################################
# Binary Sensor: Doors Lock
#
# 1 -> internal locked (e.g. driving)
# 2 -> external locked (e.g. locked by key)
######################################################################
- - platform: template
- sensors:
- ff590mr_locked:
- friendly_name: Blocco Vettura
- value_template: >-
- {% if is_state('sensor.ff590mr_lock', '0') %}
- true
- {% else %}
- false
- {% endif %}
- icon_template: >-
- {% if not is_state('sensor.ff590mr_lock', '0') %}
- mdi:lock
- {% else %}
- mdi:lock-open
- {% endif %}
- device_class: lock
+ - binary_sensor:
+ - name: ff590mr_locked"
+ unique_id: ff590mr_locked
+ state: >
+ {% if is_state('sensor.ff590mr_lock', '0') %}
+ on
+ {% else %}
+ off
+ {% endif %}
+ device_class: door # oppure safety, connectivity, problem… lock non è supportato
+ icon: >
+ {% if not is_state('sensor.ff590mr_lock', '0') %}
+ mdi:lock
+ {% else %}
+ mdi:lock-open
+ {% endif %}
######################################################################
# Binary Sensor: Doors Closed
# 1 -> closed
# 0 -> opened
######################################################################
- - platform: template
- sensors:
- ff590mr_doors_closed:
- friendly_name: Porte
- value_template: >-
- {{ is_state_attr('sensor.ff590mr_lock', 'doorStatusOverall', '0') }}
- icon_template: >-
+ - binary_sensor:
+ - name: "ff590mr_doors_closed"
+ unique_id: ff590mr_doors_closed
+ state: "{{ is_state_attr('sensor.ff590mr_lock', 'doorStatusOverall', '0') }}"
+ device_class: opening
+ icon: >
{% if is_state('sensor.ff590mr_lock', '2') %}
mdi:car-door-lock
+ {% elif is_state_attr('sensor.ff590mr_lock', 'doorStatusOverall', '1') %}
+ mdi:car-door
{% else %}
- {% if is_state_attr('sensor.ff590mr_lock', 'doorStatusOverall', '1') %}
- mdi:car-door
- {% else %}
- mdi:car-door
- {% endif %}
+ mdi:car-door
{% endif %}
- device_class: opening
######################################################################
# Binary Sensor: Door Front Left
######################################################################
- - platform: template
- sensors:
- ff590mr_door_front_left:
- friendly_name: Anteriore Sinistra
- value_template: >-
- {{ is_state_attr('sensor.ff590mr_lock', 'doorstatusfrontleft', true) }}
- icon_template: >-
- {% if is_state('sensor.ff590mr_lock', '2',) %}
+ - binary_sensor:
+ - name: "ff590mr_door_front_left"
+ unique_id: ff590mr_door_front_left
+ state: "{{ is_state_attr('sensor.ff590mr_lock', 'doorstatusfrontleft', true) }}"
+ device_class: opening
+ icon: >
+ {% if is_state('sensor.ff590mr_lock', '2') %}
mdi:car-door-lock
+ {% elif not is_state_attr('sensor.ff590mr_lock', 'doorstatusfrontleft', true) %}
+ mdi:car-door
{% else %}
- {% if not is_state_attr('sensor.ff590mr_lock', 'doorstatusfrontleft', true) %}
- mdi:car-door
- {% else %}
- mdi:car-door
- {% endif %}
+ mdi:car-door
{% endif %}
- device_class: opening
######################################################################
# Binary Sensor: Door Front Right
######################################################################
- - platform: template
- sensors:
- ff590mr_door_front_right:
- friendly_name: Anteriore Destra
- value_template: >-
- {{ is_state_attr('sensor.ff590mr_lock', 'doorstatusfrontright', true) }}
- icon_template: >-
- {% if is_state('sensor.ff590mr_lock', '2',) %}
+ - binary_sensor:
+ - name: "ff590mr_door_front_right"
+ unique_id: ff590mr_door_front_right
+ state: "{{ is_state_attr('sensor.ff590mr_lock', 'doorstatusfrontright', true) }}"
+ device_class: opening
+ icon: >
+ {% if is_state('sensor.ff590mr_lock', '2') %}
mdi:car-door-lock
+ {% elif not is_state_attr('sensor.ff590mr_lock', 'doorstatusfrontright', true) %}
+ mdi:car-door
{% else %}
- {% if not is_state_attr('sensor.ff590mr_lock', 'doorstatusfrontright', true) %}
- mdi:car-door
- {% else %}
- mdi:car-door
- {% endif %}
+ mdi:car-door
{% endif %}
- device_class: opening
######################################################################
# Binary Sensor: Door Rear Left
######################################################################
- - platform: template
- sensors:
- ff590mr_door_rear_left:
- friendly_name: Posteriore Sinistra
- value_template: >-
- {{ is_state_attr('sensor.ff590mr_lock', 'doorstatusrearleft', true) }}
- icon_template: >-
- {% if is_state('sensor.ff590mr_lock', '2',) %}
+ - binary_sensor:
+ - name: "ff590mr_door_rear_left"
+ unique_id: ff590mr_door_rear_left
+ state: "{{ is_state_attr('sensor.ff590mr_lock', 'doorstatusrearleft', true) }}"
+ device_class: opening
+ icon: >
+ {% if is_state('sensor.ff590mr_lock', '2') %}
mdi:car-door-lock
+ {% elif not is_state_attr('sensor.ff590mr_lock', 'doorstatusrearleft', true) %}
+ mdi:car-door
{% else %}
- {% if not is_state_attr('sensor.ff590mr_lock', 'doorstatusrearleft', true) %}
- mdi:car-door
- {% else %}
- mdi:car-door
- {% endif %}
+ mdi:car-door
{% endif %}
- device_class: opening
######################################################################
# Binary Sensor: Door Rear Right
######################################################################
- - platform: template
- sensors:
- ff590mr_door_rear_right:
- friendly_name: Posteriore Destra
- value_template: >-
- {{ is_state_attr('sensor.ff590mr_lock', 'doorstatusrearright', true) }}
- icon_template: >-
- {% if is_state('sensor.ff590mr_lock', '2',) %}
+ - binary_sensor:
+ - name: "ff590mr_door_rear_right"
+ unique_id: ff590mr_door_rear_right
+ state: "{{ is_state_attr('sensor.ff590mr_lock', 'doorstatusrearright', true) }}"
+ device_class: opening
+ icon: >
+ {% if is_state('sensor.ff590mr_lock', '2') %}
mdi:car-door-lock
+ {% elif not is_state_attr('sensor.ff590mr_lock', 'doorstatusrearright', true) %}
+ mdi:car-door
{% else %}
- {% if not is_state_attr('sensor.ff590mr_lock', 'doorstatusrearright', true) %}
- mdi:car-door
- {% else %}
- mdi:car-door
- {% endif %}
+ mdi:car-door
{% endif %}
- device_class: opening
######################################################################
# Binary Sensor: Decklid
######################################################################
- - platform: template
- sensors:
- ff590mr_decklid:
- friendly_name: Bagagliaio
- value_template: >-
- {{ is_state_attr('sensor.ff590mr_lock', 'decklidstatus', true) }}
- icon_template: >-
- {% if is_state('sensor.ff590mr_lock', '2',) %}
+ - binary_sensor:
+ - name: "ff590mr_decklid"
+ unique_id: ff590mr_decklid
+ state: "{{ is_state_attr('sensor.ff590mr_lock', 'decklidstatus', true) }}"
+ device_class: opening
+ icon: >
+ {% if is_state('sensor.ff590mr_lock', '2') %}
mdi:car-door-lock
+ {% elif not is_state_attr('sensor.ff590mr_lock', 'decklidstatus', true) %}
+ mdi:car-door
{% else %}
- {% if not is_state_attr('sensor.ff590mr_lock', 'decklidstatus', true) %}
- mdi:car-door
- {% else %}
- mdi:car-door
- {% endif %}
+ mdi:car-door
{% endif %}
- device_class: opening
# Mercedes Package - Switch
######################################################################
-#switch:
-# - platform: template
-# switches:
-# ff590mr_lock:
-# friendly_name: Blocco Auto
-# value_template: "{{ is_state('binary_sensor.ff590mr_locked', 'off') }}"
+#template:
+# - switch:
+# - name: ff590mr_lock
+# unique_id: ff590mr_lock
+# state: "{{ is_state('binary_sensor.ff590mr_locked', 'off') }}"
# turn_on:
# - action: mbapi2020.doors_lock
# data:
# - action: mbapi2020.doors_unlock
# data:
# vin: !secret mb_vin
-# icon_template: >-
+# icon: >-
# {% if is_state('binary_sensor.ff590mr_locked', 'off') %}
# mdi:lock
# {% else %}
# mdi:lock-open
# {% endif %}
-lock:
- - platform: template
- name: ff590mr_lock_no_pin
- value_template: "{{ is_state('binary_sensor.ff590mr_locked', 'off') }}"
- optimistic: true
- lock:
- - action: mbapi2020.doors_lock
- data:
- vin: !secret mb_vin
- unlock:
- - action: mbapi2020.doors_unlock
- data:
- vin: !secret mb_vin
+######################################################################
+# Mercedes Package - Lock
+######################################################################
+
+template:
+ - lock:
+ - name: "ff590mr_lock_no_pin"
+ unique_id: ff590mr_lock_no_pin
+ state: "{{ is_state('binary_sensor.ff590mr_locked', 'off') }}"
+ optimistic: true
+ lock:
+ - action: mbapi2020.doors_lock
+ data:
+ vin: !secret mb_vin
+ unlock:
+ - action: mbapi2020.doors_unlock
+ data:
+ vin: !secret mb_vin
package.netatmo:
customize: &customize
package: 'mercedes'
- version: 1.1.0
+ version: 1.2.0
######################################################################
# Mercedes Package - Main - Entities
group.car_alarm:
<<: *customize
binary_sensor.ff590mr_locked:
+ friendly_name: "Blocco Vettura"
<<: *customize
binary_sensor.ff590mr_doors_closed:
+ friendly_name: "Porte"
<<: *customize
binary_sensor.ff590mr_door_front_left:
+ friendly_name: "Anteriore Sinistra"
<<: *customize
binary_sensor.ff590mr_door_front_right:
+ friendly_name: "Anteriore Destra"
<<: *customize
binary_sensor.ff590mr_door_rear_left:
+ friendly_name: "Posteriore Sinistra"
<<: *customize
binary_sensor.ff590mr_door_rear_right:
+ friendly_name: "Posteriore Sestra"
<<: *customize
binary_sensor.ff590mr_decklid:
+ friendly_name: "Bagagliaio"
<<: *customize
+ #lock.ff590mr_lock:
+ # <<: *customize
+ # friendly_name: "Blocco Auto"
+ # icon: mdi:lock
lock.ff590mr_lock_no_pin:
<<: *customize
- friendly_name: Blocco Auto
+ friendly_name: "Blocco Auto"
icon: mdi:lock
+ #sensor.ff590mr_distance_since_reset:
+ # friendly_name: "Distanza dal reset"
+ # <<: *customize
+ #sensor.ff590mr_distance_since_start:
+ # friendly_name: "Distanza dalla partenza"
+ # <<: *customize
+ #sensor.ff590mr_liquid_consumption_start:
+ # friendly_name: "Consumo dalla partenza"
+ # <<: *customize
+ #sensor.ff590mr_liquid_consumption_reset:
+ # friendly_name: "Consumo dal reset"
+ # <<: *customize
sensor.ff590mr_service_interval_days:
+ friendly_name: "Prossimo Tagliando"
<<: *customize
binary_sensor.ff590mr_windows_closed_2:
+ friendly_name: "Finestrini"
<<: *customize
binary_sensor.ff590mr_window_front_left:
+ friendly_name: "Anteriore Sinistro"
<<: *customize
binary_sensor.ff590mr_window_front_right:
+ friendly_name: "Anteriore Destro"
<<: *customize
binary_sensor.ff590mr_window_rear_left:
+ friendly_name: "Posteriore Sinistro"
<<: *customize
binary_sensor.ff590mr_window_rear_right:
+ friendly_name: "Posteriore Destro"
<<: *customize
# Mercedes Package - Odometer Sensor
######################################################################
-sensor:
+template:
+
######################################################################
# Sensor: Distance from Reset
######################################################################
- #- platform: template
- # sensors:
- # ff590mr_distance_since_reset:
- # friendly_name: Distanza dal reset
+ #- sensors:
+ # - name: "ff590mr_distance_since_reset"
+ # unique_id: ff590mr_distance_since_reset
# unit_of_measurement: 'Km'
- # value_template: "{{ state_attr('sensor.ff590mr_odometer', 'distanceReset') }}"
- # icon_template: mdi:map-marker-distance
+ # state: "{{ state_attr('sensor.ff590mr_odometer', 'distanceReset') }}"
+ # icon: mdi:map-marker-distance
######################################################################
# Sensor: Distance from Start
######################################################################
- #- platform: template
- # sensors:
- # ff590mr_distance_since_start:
- # friendly_name: Distanza dalla partenza
+ #- sensors:
+ # - name: "ff590mr_distance_since_start"
+ # unique_id: ff590mr_distance_since_start
# unit_of_measurement: 'Km'
- # value_template: "{{ state_attr('sensor.ff590mr_odometer', 'distanceStart') }}"
- # icon_template: mdi:map-marker-distance
+ # state: "{{ state_attr('sensor.ff590mr_odometer', 'distanceStart') }}"
+ # icon: mdi:map-marker-distance
######################################################################
# Sensor: Liquid Consumption from Start
######################################################################
- #- platform: template
- # sensors:
- # ff590mr_liquid_consumption_start:
- # friendly_name: Consumo dalla partenza
+ #- sensors:
+ # - name: "ff590mr_liquid_consumption_start"
+ # unique_id: ff590mr_liquid_consumption_start
# unit_of_measurement: 'l/100Km'
- # value_template: "{{ state_attr('sensor.ff590mr_odometer', 'liquidconsumptionstart') }}"
- # icon_template: mdi:fuel
+ # state: "{{ state_attr('sensor.ff590mr_odometer', 'liquidconsumptionstart') }}"
+ # icon: mdi:fuel
######################################################################
# Sensor: Liquid Consumption from Reset
######################################################################
- #- platform: template
- # sensors:
- # ff590mr_liquid_consumption_reset:
- # friendly_name: Consumo dal reset
+ #- sensors:
+ # - name: "ff590mr_liquid_consumption_reset"
+ # unique_id: ff590mr_liquid_consumption_reset
# unit_of_measurement: 'l/100Km'
- # value_template: "{{ state_attr('sensor.ff590mr_odometer', 'liquidconsumptionreset') }}"
- # icon_template: mdi:gas-station
+ # state: "{{ state_attr('sensor.ff590mr_odometer', 'liquidconsumptionreset') }}"
+ # icon: mdi:gas-station
######################################################################
# Sensor: Service Interval Days
######################################################################
- - platform: template
- sensors:
- ff590mr_service_interval_days:
- friendly_name: Prossimo Tagliando
- unit_of_measurement: 'giorni'
- value_template: "{{ state_attr('sensor.ff590mr_odometer', 'serviceintervaldays') }}"
- icon_template: mdi:wrench
+ - sensor:
+ - name: "ff590mr_service_interval_days"
+ unique_id: ff590mr_service_interval_days
+ unit_of_measurement: "giorni"
+ state: "{{ state_attr('sensor.ff590mr_odometer', 'serviceintervaldays') }}"
+ icon: mdi:wrench
# Mercedes Package - Windows Sensors
######################################################################
-binary_sensor:
+template:
+
######################################################################
# Binary Sensor: Windows Closed
######################################################################
- - platform: template
- sensors:
- ff590mr_windows_closed_2:
- friendly_name: Finestrini
- value_template: >-
- {{ is_state('binary_sensor.ff590mr_windows_closed', 'true') }}
- icon_template: >-
- {% if not is_state('binary_sensor.ff590mr_windows_closed', '2') %}
+ - binary_sensor:
+ - name: "ff590mr_windows_closed_2"
+ unique_id: ff590mr_windows_closed_2
+ state: "{{ is_state('binary_sensor.ff590mr_windows_closed', 'off') }}"
+ device_class: opening
+ icon: >
+ {% if not is_state('binary_sensor.ff590mr_windows_closed', 'off') %}
mdi:window-closed
{% else %}
mdi:window-open
{% endif %}
- device_class: opening
######################################################################
# Binary Sensor: Window Front Left
######################################################################
- - platform: template
- sensors:
- ff590mr_window_front_left:
- friendly_name: Anteriore Sinistro
- value_template: >-
- {% if is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusfrontleft', '2') %}
- false
- {% else %}
- true
- {% endif %}
- icon_template: >-
- {% if is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusfrontleft', '2') %}
+ - binary_sensor:
+ - name: "ff590mr_window_front_left"
+ unique_id: ff590mr_window_front_left
+ state: "{{ is_state('binary_sensor.windowstatusfrontleft', 'on') }}"
+ device_class: opening
+ icon: >
+ {% if is_state('binary_sensor.windowstatusfrontleft', 'on') %}
mdi:window-closed
{% else %}
mdi:window-open
{% endif %}
- device_class: opening
######################################################################
# Binary Sensor: Window Front Right
######################################################################
- - platform: template
- sensors:
- ff590mr_window_front_right:
- friendly_name: Anteriore Destro
- value_template: >-
- {% if is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusfrontright', '2') %}
- false
- {% else %}
- true
- {% endif %}
- icon_template: >-
- {% if is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusfrontright', '2') %}
+ - binary_sensor:
+ - name: "ff590mr_window_front_right"
+ unique_id: ff590mr_window_front_right
+ state: "{{ is_state('binary_sensor.windowstatusfrontright', 'on') }}"
+ device_class: opening
+ icon: >
+ {% if is_state('binary_sensor.windowstatusfrontright', 'on') %}
mdi:window-closed
{% else %}
mdi:window-open
{% endif %}
- device_class: opening
######################################################################
# Binary Sensor: Window Rear Left
######################################################################
- - platform: template
- sensors:
- ff590mr_window_rear_left:
- friendly_name: Posteriore Sinistro
- value_template: >-
- {% if is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusrearleft', '2') %}
- false
- {% else %}
- true
- {% endif %}
- icon_template: >-
- {% if is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusrearleft', '2') %}
+ - binary_sensor:
+ - name: "ff590mr_window_rear_left"
+ unique_id: ff590mr_window_rear_left
+ state: "{{ is_state('binary_sensor.windowstatusrearleft', 'on') }}"
+ device_class: opening
+ icon: >
+ {% if is_state('binary_sensor.windowstatusrearleft', 'on') %}
mdi:window-closed
{% else %}
mdi:window-open
{% endif %}
- device_class: opening
######################################################################
# Binary Sensor: Window Rear Right
######################################################################
- - platform: template
- sensors:
- ff590mr_window_rear_right:
- friendly_name: Posteriore Destro
- value_template: >-
- {% if is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusrearright', '2') %}
- false
- {% else %}
- true
- {% endif %}
- icon_template: >-
- {% if is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusrearright', '2') %}
+ - binary_sensor:
+ - name: "ff590mr_window_rear_right"
+ unique_id: ff590mr_window_rear_right
+ state: "{{ is_state('binary_sensor.windowstatusrearright', 'on') }}"
+ device_class: opening
+ icon: >
+ {% if is_state('binary_sensor.windowstatusrearright', 'on') %}
mdi:window-closed
{% else %}
mdi:window-open
{% endif %}
- device_class: opening
homeassistant:
customize:
+
+ # Valves
climate.zona_giorno:
friendly_name: Valvola Zona Giorno
climate.cucina:
friendly_name: Valvola Bagno Grande
climate.camera:
friendly_name: Valvola Camera
+
+ # Select
select.netatmo_casa_ravera_testa:
friendly_name: Programmazione Valvole
+
+ # Batteries
sensor.valvola_zona_giorno_batteria:
friendly_name: Batteria Valvola Zona Giorno
sensor.valvola_cucina_batteria:
package.netatmo:
customize: &customize
package: 'netatmo'
- version: 1.3.0
+ version: 1.4.0
######################################################################
# Netatmo Package - Main - Entities
group.climate:
<<: *customize
sensor.valvola_zona_giorno_temperature:
+ friendly_name: "Temperatura Zona Giorno"
<<: *customize
sensor.valvola_cucina_temperature:
+ friendly_name: "Temperatura Cucina"
<<: *customize
sensor.valvola_sala_temperature:
+ friendly_name: "Temperatura Sala"
<<: *customize
sensor.valvola_studio_temperature:
+ friendly_name: "Temperatura Studio"
<<: *customize
sensor.valvola_bagno_piccolo_temperature:
+ friendly_name: "Temperatura Bagno Piccolo"
<<: *customize
sensor.valvola_bagno_grande_temperature:
+ friendly_name: "Temperatura Bagno Grande"
<<: *customize
sensor.valvola_camera_temperature:
+ friendly_name: "Temperatura Camera"
<<: *customize
sensor.valvola_zona_giorno_state:
+ friendly_name: "Stato Valvola Zona Giorno"
<<: *customize
sensor.valvola_cucina_state:
+ friendly_name: "Stato Valvola Cucina"
<<: *customize
sensor.valvola_sala_state:
+ friendly_name: "Stato Valvola Saòa"
<<: *customize
sensor.valvola_studio_state:
+ friendly_name: "Stato Valvola Studio"
<<: *customize
sensor.valvola_bagno_piccolo_state:
+ friendly_name: "Stato Valvola Bagno Piccolo"
<<: *customize
sensor.valvola_bagno_grande_state:
+ friendly_name: "Stato Valvola Bagno Grande"
<<: *customize
sensor.valvola_camera_state:
+ friendly_name: "Stato Valvola Camera"
<<: *customize
input_boolean.valvola_zona_giorno:
<<: *customize
######################################################################
automation:
+
######################################################################
# Switch On Valve
######################################################################
######################################################################
automation:
- # Notification when a device becomes unavailable
+
+ ######################################################################
+ # Netatmo: Notification when a device becomes unavailable
+ ######################################################################
- alias: "Netatmo: Notifica disconnessione"
id: "netatmo_notifica_disconnessione"
# Netatmo Package - Sensor
######################################################################
-sensor:
+template:
+
######################################################################
# Sensor: Temperature from Radiator Valve
######################################################################
- - platform: template
- sensors:
- valvola_zona_giorno_temperature:
- friendly_name: "Temperatura Zona Giorno"
- value_template: "{{ state_attr('climate.zona_giorno', 'current_temperature') }}"
- unit_of_measurement: '°C'
+ - sensor:
+ - name: "valvola_zona_giorno_temperature"
+ unique_id: valvola_zona_giorno_temperature
+ state: "{{ state_attr('climate.zona_giorno', 'current_temperature') }}"
+ unit_of_measurement: "°C"
device_class: temperature
- - platform: template
- sensors:
- valvola_cucina_temperature:
- friendly_name: "Temperatura Cucina"
- value_template: "{{ state_attr('climate.cucina', 'current_temperature') }}"
- unit_of_measurement: '°C'
+ - sensor:
+ - name: "valvola_cucina_temperature"
+ unique_id: valvola_cucina_temperature
+ state: "{{ state_attr('climate.cucina', 'current_temperature') }}"
+ unit_of_measurement: "°C"
device_class: temperature
- - platform: template
- sensors:
- valvola_sala_temperature:
- friendly_name: "Temperatura Sala"
- value_template: "{{ state_attr('climate.sala', 'current_temperature') }}"
- unit_of_measurement: '°C'
+ - sensor:
+ - name: "valvola_sala_temperature"
+ unique_id: valvola_sala_temperature
+ state: "{{ state_attr('climate.sala', 'current_temperature') }}"
+ unit_of_measurement: "°C"
device_class: temperature
- - platform: template
- sensors:
- valvola_studio_temperature:
- friendly_name: "Temperatura Studio"
- value_template: "{{ state_attr('climate.studio', 'current_temperature') }}"
- unit_of_measurement: '°C'
+ - sensor:
+ - name: "valvola_studio_temperature"
+ unique_id: valvola_studio_temperature
+ state: "{{ state_attr('climate.studio', 'current_temperature') }}"
+ unit_of_measurement: "°C"
device_class: temperature
- - platform: template
- sensors:
- valvola_bagno_piccolo_temperature:
- friendly_name: "Temperatura Bagno Piccolo"
- value_template: "{{ state_attr('climate.bagno_piccolo', 'current_temperature') }}"
- unit_of_measurement: '°C'
+ - sensor:
+ - name: "valvola_bagno_piccolo_temperature"
+ unique_id: valvola_bagno_piccolo_temperature
+ state: "{{ state_attr('climate.bagno_piccolo', 'current_temperature') }}"
+ unit_of_measurement: "°C"
device_class: temperature
- - platform: template
- sensors:
- valvola_bagno_grande_temperature:
- friendly_name: "Temperatura Bagno Grande"
- value_template: "{{ state_attr('climate.bagno_grande', 'current_temperature') }}"
- unit_of_measurement: '°C'
+ - sensor:
+ - name: "valvola_bagno_grande_temperature"
+ unique_id: valvola_bagno_grande_temperature
+ state: "{{ state_attr('climate.bagno_grande', 'current_temperature') }}"
+ unit_of_measurement: "°C"
device_class: temperature
- - platform: template
- sensors:
- valvola_camera_temperature:
- friendly_name: "Temperatura Camera"
- value_template: "{{ state_attr('climate.camera', 'current_temperature') }}"
- unit_of_measurement: '°C'
+ - sensor:
+ - name: "valvola_camera_temperature"
+ unique_id: valvola_camera_temperature
+ state: "{{ state_attr('climate.camera', 'current_temperature') }}"
+ unit_of_measurement: "°C"
device_class: temperature
######################################################################
# Sensor: State from Radiator Valve
######################################################################
- - platform: template
- sensors:
- valvola_zona_giorno_state:
- friendly_name: "Stato Valvola Zona Giorno"
- value_template: "{{ state_attr('climate.zona_giorno', 'hvac_action') }}"
- icon_template: >-
+ - sensor:
+ - name: "valvola_zona_giorno_state"
+ unique_id: valvola_zona_giorno_state
+ state: "{{ state_attr('climate.zona_giorno', 'hvac_action') }}"
+ icon: >
{% if is_state_attr('climate.zona_giorno', 'hvac_action', 'idle') %}
mdi:radiator-disabled
{% else %}
mdi:radiator
{% endif %}
- - platform: template
- sensors:
- valvola_cucina_state:
- friendly_name: "Stato Valvola Cucina"
- value_template: "{{ state_attr('climate.cucina', 'hvac_action') }}"
- icon_template: >-
+ - sensor:
+ - name: "valvola_cucina_state"
+ unique_id: valvola_cucina_state
+ state: "{{ state_attr('climate.cucina', 'hvac_action') }}"
+ icon: >
{% if is_state_attr('climate.cucina', 'hvac_action', 'idle') %}
mdi:radiator-disabled
{% else %}
mdi:radiator
{% endif %}
- - platform: template
- sensors:
- valvola_sala_state:
- friendly_name: "Stato Valvola Sala"
- value_template: "{{ state_attr('climate.sala', 'hvac_action') }}"
- icon_template: >-
+ - sensor:
+ - name: "valvola_sala_state"
+ unique_id: valvola_sala_state
+ state: "{{ state_attr('climate.sala', 'hvac_action') }}"
+ icon: >
{% if is_state_attr('climate.sala', 'hvac_action', 'idle') %}
mdi:radiator-disabled
{% else %}
mdi:radiator
{% endif %}
- - platform: template
- sensors:
- valvola_studio_state:
- friendly_name: "Stato Valvola Studio"
- value_template: "{{ state_attr('climate.studio', 'hvac_action') }}"
- icon_template: >-
+ - sensor:
+ - name: "valvola_studio_state"
+ unique_id: valvola_studio_state
+ state: "{{ state_attr('climate.studio', 'hvac_action') }}"
+ icon: >
{% if is_state_attr('climate.studio', 'hvac_action', 'idle') %}
mdi:radiator-disabled
{% else %}
mdi:radiator
{% endif %}
- - platform: template
- sensors:
- valvola_bagno_piccolo_state:
- friendly_name: "Stato Valvola Bagno Piccolo"
- value_template: "{{ state_attr('climate.bagno_piccolo', 'hvac_action') }}"
- icon_template: >-
+ - sensor:
+ - name: "valvola_bagno_piccolo_state"
+ unique_id: valvola_bagno_piccolo_state
+ state: "{{ state_attr('climate.bagno_piccolo', 'hvac_action') }}"
+ icon: >
{% if is_state_attr('climate.bagno_piccolo', 'hvac_action', 'idle') %}
mdi:radiator-disabled
{% else %}
mdi:radiator
{% endif %}
- - platform: template
- sensors:
- valvola_bagno_grande_state:
- friendly_name: "Stato Valvola Bagno Grande"
- value_template: "{{ state_attr('climate.bagno_grande', 'hvac_action') }}"
- icon_template: >-
+ - sensor:
+ - name: "valvola_bagno_grande_state"
+ unique_id: valvola_bagno_grande_state
+ state: "{{ state_attr('climate.bagno_grande', 'hvac_action') }}"
+ icon: >
{% if is_state_attr('climate.bagno_grande', 'hvac_action', 'idle') %}
mdi:radiator-disabled
{% else %}
mdi:radiator
{% endif %}
- - platform: template
- sensors:
- valvola_camera_state:
- friendly_name: "Stato Valvola Camera"
- value_template: "{{ state_attr('climate.camera', 'hvac_action') }}"
- icon_template: >-
+ - sensor:
+ - name: "valvola_camera_state"
+ unique_id: valvola_camera_state
+ state: "{{ state_attr('climate.camera', 'hvac_action') }}"
+ icon: >
{% if is_state_attr('climate.camera', 'hvac_action', 'idle') %}
mdi:radiator-disabled
{% else %}
######################################################################
script:
+
######################################################################
# Shelly: Update
######################################################################
+++ /dev/null
-######################################################################
-# Sensor: Home Mode
-######################################################################
-
-- platform: template
- sensors:
- home_mode:
- friendly_name: Modalità Casa
- value_template: >-
- {% if is_state('input_boolean.home_mode_day', 'on') %}
- giorno
- {% elif is_state('input_boolean.home_mode_night', 'on') %}
- notte
- {% elif is_state('input_boolean.home_mode_away', 'on') %}
- vacanza
- {% endif %}
- icon_template: >-
- {% if is_state('input_boolean.home_mode_day', 'on') %}
- mdi:white-balance-sunny
- {% elif is_state('input_boolean.home_mode_night', 'on') %}
- mdi:weather-night
- {% elif is_state('input_boolean.home_mode_away', 'on') %}
- mdi:airplane-takeoff
- {% endif %}
--- /dev/null
+######################################################################
+# Sensor: Home Mode
+######################################################################
+
+- sensor:
+ - name: "home_mode"
+ unique_id: home_mode
+ state: >
+ {% if is_state('input_boolean.home_mode_day', 'on') %}
+ giorno
+ {% elif is_state('input_boolean.home_mode_night', 'on') %}
+ notte
+ {% elif is_state('input_boolean.home_mode_away', 'on') %}
+ vacanza
+ {% endif %}
+ icon: >
+ {% if is_state('input_boolean.home_mode_day', 'on') %}
+ mdi:white-balance-sunny
+ {% elif is_state('input_boolean.home_mode_night', 'on') %}
+ mdi:weather-night
+ {% elif is_state('input_boolean.home_mode_away', 'on') %}
+ mdi:airplane-takeoff
+ {% endif %}
+
+######################################################################
+# Binary Sensor: Text Notification
+######################################################################
+
+- binary_sensor:
+ - name: "text_notifications"
+ unique_id: text_notifications
+ state: "{{ is_state('input_boolean.text_notifications', 'on') }}"
+ icon: >
+ {% if is_state('input_boolean.text_notifications', 'on') %}
+ mdi:message-bulleted
+ {% else %}
+ mdi:message-bulleted-off
+ {% endif %}
+
+######################################################################
+# Binary Sensor: Speech Notification
+######################################################################
+
+- binary_sensor:
+ - name: "speech_notifications"
+ unique_id: speech_notifications
+ state: "{{ is_state('input_boolean.speech_notifications', 'on') }}"
+ icon: >
+ {% if is_state('input_boolean.speech_notifications', 'on') %}
+ mdi:speaker-wireless
+ {% else %}
+ mdi:speaker-off
+ {% endif %}