]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Updated mercedes me integration (v0.4.0)
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Sun, 31 Jan 2021 16:07:11 +0000 (17:07 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Sun, 31 Jan 2021 16:07:11 +0000 (17:07 +0100)
.storage/lovelace
packages/mercedes/mercedes_lock.yaml [deleted file]
packages/mercedes/mercedes_lock.yaml.disabled [new file with mode: 0644]

index 1312e27abba623a9096a1bed12c21e4e49ad1191..1460738ac6283a89f0838ab9000636635c6ad16d 100644 (file)
                                 }
                             ]
                         },
+                        {
+                            "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": [
                                             "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 (file)
index 62b35a5..0000000
+++ /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 (file)
index 0000000..62b35a5
--- /dev/null
@@ -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