From: Giorgio Ravera Date: Sun, 31 Jan 2021 16:07:11 +0000 (+0100) Subject: Updated mercedes me integration (v0.4.0) X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=c8edd04acd6d2db8a4ca7e4d8a21691e307d2944;p=homeassistant.git Updated mercedes me integration (v0.4.0) --- diff --git a/.storage/lovelace b/.storage/lovelace index 1312e27a..1460738a 100644 --- a/.storage/lovelace +++ b/.storage/lovelace @@ -564,6 +564,45 @@ } ] }, + { + "type": "custom:bar-card", + "entities": [ + { + "entity": "sensor.valve_cucina_battery", + "name": "Cucina", + "width": "85%" + }, + { + "entity": "sensor.valve_sala_battery", + "name": "Sala", + "width": "85%" + }, + { + "entity": "sensor.valve_studio_battery", + "name": "Studio", + "width": "85%" + }, + { + "entity": "sensor.valve_bagno_battery", + "name": "Bagno", + "width": "85%" + }, + { + "entity": "sensor.valve_camera_da_letto_battery", + "name": "Camera", + "width": "85%" + } + ], + "title": "Batteria Valvole Netatmo", + "show_header_toggle": false, + "state_color": false, + "positions": { + "icon": "off", + "indicator": "off", + "name": "outside", + "value": "outside" + } + }, { "type": "history-graph", "entities": [ @@ -896,7 +935,7 @@ "type": "state-icon" }, { - "entity": "binary_sensor.ff590mr_locked", + "entity": "lock.ff590mr_lock", "prefix": "", "style": { "color": "#FFFFFF", diff --git a/packages/mercedes/mercedes_lock.yaml b/packages/mercedes/mercedes_lock.yaml deleted file mode 100644 index 62b35a51..00000000 --- a/packages/mercedes/mercedes_lock.yaml +++ /dev/null @@ -1,38 +0,0 @@ -###################################################################### -# Mercedes Package - Switch -###################################################################### - -switch: - - platform: template - switches: - ff590mr_lock: - friendly_name: Blocco Auto - value_template: "{{ is_state('binary_sensor.ff590mr_locked', 'off') }}" - turn_on: - - service: mbapi2020.doors_lock - data: - vin: !secret mb_vin - turn_off: - - service: mbapi2020.doors_unlock - data: - vin: !secret mb_vin - icon_template: >- - {% if is_state('binary_sensor.ff590mr_locked', 'off') %} - mdi:lock - {% else %} - mdi:lock-open - {% endif %} - -lock: - - platform: template - name: ff590mr_lock - value_template: "{{ is_state('binary_sensor.ff590mr_locked', 'off') }}" - optimistic: true - lock: - - service: mbapi2020.doors_lock - data: - vin: !secret mb_vin - unlock: - - service: mbapi2020.doors_unlock - data: - vin: !secret mb_vin diff --git a/packages/mercedes/mercedes_lock.yaml.disabled b/packages/mercedes/mercedes_lock.yaml.disabled new file mode 100644 index 00000000..62b35a51 --- /dev/null +++ b/packages/mercedes/mercedes_lock.yaml.disabled @@ -0,0 +1,38 @@ +###################################################################### +# Mercedes Package - Switch +###################################################################### + +switch: + - platform: template + switches: + ff590mr_lock: + friendly_name: Blocco Auto + value_template: "{{ is_state('binary_sensor.ff590mr_locked', 'off') }}" + turn_on: + - service: mbapi2020.doors_lock + data: + vin: !secret mb_vin + turn_off: + - service: mbapi2020.doors_unlock + data: + vin: !secret mb_vin + icon_template: >- + {% if is_state('binary_sensor.ff590mr_locked', 'off') %} + mdi:lock + {% else %} + mdi:lock-open + {% endif %} + +lock: + - platform: template + name: ff590mr_lock + value_template: "{{ is_state('binary_sensor.ff590mr_locked', 'off') }}" + optimistic: true + lock: + - service: mbapi2020.doors_lock + data: + vin: !secret mb_vin + unlock: + - service: mbapi2020.doors_unlock + data: + vin: !secret mb_vin