From: Giorgio Ravera Date: Sat, 5 Feb 2022 13:39:51 +0000 (+0100) Subject: Added option to show all automations X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=28ed160ff5281f8b69f6e540968720081d86fb54;p=homeassistant.git Added option to show all automations --- diff --git a/.storage/lovelace.lovelace_settings b/.storage/lovelace.lovelace_settings index 8daa19f6..4d5229b8 100644 --- a/.storage/lovelace.lovelace_settings +++ b/.storage/lovelace.lovelace_settings @@ -353,6 +353,15 @@ { "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", @@ -437,7 +446,7 @@ "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", diff --git a/input_select/automation_selector.yaml b/input_select/automation_selector.yaml index 2b5ea19c..e25f279c 100644 --- a/input_select/automation_selector.yaml +++ b/input_select/automation_selector.yaml @@ -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