]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Added option to show all automations
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Sat, 5 Feb 2022 13:39:51 +0000 (14:39 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Mon, 21 Feb 2022 20:53:25 +0000 (21:53 +0100)
.storage/lovelace.lovelace_settings
input_select/automation_selector.yaml

index 8daa19f6439927ef75036e958bbcd76bdee4eaa5..4d5229b8303cbcd0eb8d5e27c8887701f16d8d64 100644 (file)
                                 {
                                     "type": "vertical-stack",
                                     "cards": [
+                                        {
+                                            "type": "custom:button-card",
+                                            "template": "generic_themed_input_select",
+                                            "entity": "input_select.automation_selector",
+                                            "variables": {
+                                                "value_select": "Tutte"
+                                            },
+                                            "icon": "mdi:cog"
+                                        },
                                         {
                                             "type": "custom:button-card",
                                             "template": "generic_themed_input_select",
                                         "state_color": true
                                     },
                                     "filter": {
-                                        "template": "[ {% for auto in states.automation %}\n    {% if states['input_select.automation_selector'].state.upper().replace(\" \",\"_\") in auto.entity_id.upper() %}\n      {'entity': '{{ auto.entity_id }}', 'secondary_info': 'last-triggered'},\n    {% endif %}\n  {% endfor %} ]\n"
+                                        "template": "[ {% for auto in states.automation %}\n    {% if states['input_select.automation_selector'].state.upper().replace(\" \",\"_\") in auto.entity_id.upper() or \n          states['input_select.automation_selector'].state == \"Tutte\" %}\n      {'entity': '{{ auto.entity_id }}', 'secondary_info': 'last-triggered'},\n    {% endif %}\n  {% endfor %} ]\n"
                                     },
                                     "sort": {
                                         "method": "name",
index 2b5ea19c2d862b9e9d222b8790ce5032993c0ef5..e25f279cf94408abf124e92c4f14a137ccde126a 100644 (file)
@@ -5,6 +5,7 @@
 automation_selector:
   name: Selettore Automazioni
   options:
+    - Tutte
     - Allarmi
     - Luci
     - Guardia
@@ -13,5 +14,5 @@ automation_selector:
     - Shelly
     - Vacanza
     - Zigbee2MQTT
-  initial: Luci
+  initial: Tutte
   icon: mdi:cogs