From: Giorgio Ravera Date: Mon, 30 Dec 2024 06:24:00 +0000 (+0100) Subject: Minor changes lovelace X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=01a0c68652df9b3e3873a8350d3c2158a9d05bc7;p=homeassistant.git Minor changes lovelace --- diff --git a/.storage/lovelace.lovelace_devices b/.storage/lovelace.lovelace_devices index c7b7ab11..fe88b9df 100644 --- a/.storage/lovelace.lovelace_devices +++ b/.storage/lovelace.lovelace_devices @@ -2537,7 +2537,7 @@ "entities": [ { "type": "section", - "label": "Lavastoviglie Electrolux EES68510L" + "label": "Lavatrice LG F2WV9S8P2E" }, { "type": "custom:hui-element", @@ -2549,10 +2549,10 @@ { "type": "picture", "style": "ha-card { \n --paper-card-background-color: 'rgba(0, 0, 0, 0.0)';\n --ha-card-background: \"rgba(0, 0, 0, 0)\";\n --ha-card-box-shadow: 'none';\n}\n", - "image": "/local/images/devices/kitchen_appliance/EES68510L.png", + "image": "/local/images/devices/kitchen_appliance/F2WV9S8P2E.png", "tap_action": { "action": "url", - "url_path": "https://www.electrolux.it/kitchen/dishwashing/dishwashers/dishwasher-60-cm/ees68510l/" + "url_path": "https://www.lg.com/it/lavatrici/lg-f2wv9s8p2e" } }, { @@ -2561,8 +2561,26 @@ { "type": "custom:button-card", "template": "template_device_generic_state", - "entity": "sensor.shelly_em_channel_1_power", - "name": "Potenza" + "entity": "sensor.lavatrice_current_status", + "name": "Stato" + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "number.lavatrice_delay_ends_in", + "name": "Fine lavaggio in" + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "event.lavatrice_notification", + "name": "Notifica" + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "event.lavatrice_error", + "name": "Errore" } ] } @@ -2575,6 +2593,17 @@ "type": "custom:button-card", "show_name": false, "icon": "mdi:power", + "entity": "select.lavatrice_operation", + "tap_action": { + "action": "call-service", + "service": "select.select_option", + "target": { + "entity_id": "select.lavatrice_operation" + }, + "data": { + "option": "power_off" + } + }, "styles": { "icon": [ { @@ -2586,11 +2615,22 @@ { "type": "custom:button-card", "show_name": false, - "icon": "mdi:power", + "icon": "mdi:play", + "entity": "select.lavatrice_operation", + "tap_action": { + "action": "call-service", + "service": "select.select_option", + "target": { + "entity_id": "select.lavatrice_operation" + }, + "data": { + "option": "start" + } + }, "styles": { "icon": [ { - "color": "green" + "color": "var(--state-icon-color)" } ] } @@ -2598,10 +2638,22 @@ { "type": "custom:button-card", "show_name": false, + "icon": "mdi:play-pause", + "entity": "select.lavatrice_operation", + "tap_action": { + "action": "call-service", + "service": "select.select_option", + "target": { + "entity_id": "select.lavatrice_operation" + }, + "data": { + "option": "wake-up" + } + }, "styles": { - "card": [ + "icon": [ { - "padding": "0%" + "color": "var(--state-icon-color)" } ] } @@ -2609,10 +2661,22 @@ { "type": "custom:button-card", "show_name": false, + "icon": "mdi:stop", + "entity": "select.lavatrice_operation", + "tap_action": { + "action": "call-service", + "service": "select.select_option", + "target": { + "entity_id": "select.lavatrice_operation" + }, + "data": { + "option": "stop" + } + }, "styles": { - "card": [ + "icon": [ { - "padding": "0%" + "color": "var(--state-icon-color)" } ] } @@ -2641,7 +2705,7 @@ "entities": [ { "type": "section", - "label": "Lavatrice LG F2WV9S8P2E" + "label": "Lavastoviglie Electrolux EES68510L" }, { "type": "custom:hui-element", @@ -2653,10 +2717,10 @@ { "type": "picture", "style": "ha-card { \n --paper-card-background-color: 'rgba(0, 0, 0, 0.0)';\n --ha-card-background: \"rgba(0, 0, 0, 0)\";\n --ha-card-box-shadow: 'none';\n}\n", - "image": "/local/images/devices/kitchen_appliance/F2WV9S8P2E.png", + "image": "/local/images/devices/kitchen_appliance/EES68510L.png", "tap_action": { "action": "url", - "url_path": "https://www.lg.com/it/lavatrici/lg-f2wv9s8p2e" + "url_path": "https://www.electrolux.it/kitchen/dishwashing/dishwashers/dishwasher-60-cm/ees68510l/" } }, { @@ -2665,26 +2729,8 @@ { "type": "custom:button-card", "template": "template_device_generic_state", - "entity": "sensor.lavatrice_current_status", - "name": "Stato" - }, - { - "type": "custom:button-card", - "template": "template_device_generic_state", - "entity": "number.lavatrice_delay_ends_in", - "name": "Avvio in" - }, - { - "type": "custom:button-card", - "template": "template_device_generic_state", - "entity": "event.lavatrice_notification", - "name": "Notifica" - }, - { - "type": "custom:button-card", - "template": "template_device_generic_state", - "entity": "event.lavatrice_error", - "name": "Errore" + "entity": "sensor.shelly_em_channel_1_power", + "name": "Potenza" } ] } @@ -2697,17 +2743,6 @@ "type": "custom:button-card", "show_name": false, "icon": "mdi:power", - "entity": "select.lavatrice_operation", - "tap_action": { - "action": "call-service", - "service": "select.select_option", - "target": { - "entity_id": "select.lavatrice_operation" - }, - "data": { - "option": "power_off" - } - }, "styles": { "icon": [ { @@ -2719,22 +2754,11 @@ { "type": "custom:button-card", "show_name": false, - "icon": "mdi:play", - "entity": "select.lavatrice_operation", - "tap_action": { - "action": "call-service", - "service": "select.select_option", - "target": { - "entity_id": "select.lavatrice_operation" - }, - "data": { - "option": "start" - } - }, + "icon": "mdi:power", "styles": { "icon": [ { - "color": "var(--state-icon-color)" + "color": "green" } ] } @@ -2742,22 +2766,10 @@ { "type": "custom:button-card", "show_name": false, - "icon": "mdi:play-pause", - "entity": "select.lavatrice_operation", - "tap_action": { - "action": "call-service", - "service": "select.select_option", - "target": { - "entity_id": "select.lavatrice_operation" - }, - "data": { - "option": "wake-up" - } - }, "styles": { - "icon": [ + "card": [ { - "color": "var(--state-icon-color)" + "padding": "0%" } ] } @@ -2765,22 +2777,10 @@ { "type": "custom:button-card", "show_name": false, - "icon": "mdi:stop", - "entity": "select.lavatrice_operation", - "tap_action": { - "action": "call-service", - "service": "select.select_option", - "target": { - "entity_id": "select.lavatrice_operation" - }, - "data": { - "option": "stop" - } - }, "styles": { - "icon": [ + "card": [ { - "color": "var(--state-icon-color)" + "padding": "0%" } ] }