From b19ae095ccb701c02cc642eb5161275504ac1af7 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Thu, 12 Dec 2024 21:20:14 +0100 Subject: [PATCH] Updated lovelace --- .storage/lovelace | 149 +------------- .storage/lovelace.lovelace_devices | 300 +++++++---------------------- 2 files changed, 74 insertions(+), 375 deletions(-) diff --git a/.storage/lovelace b/.storage/lovelace index db3328f8..31457d9b 100644 --- a/.storage/lovelace +++ b/.storage/lovelace @@ -176,9 +176,6 @@ { "entity": "cover.tapparella_sala_old" }, - { - "entity": "climate.sala" - }, { "entity": "media_player.sony_kd_55xf8596" } @@ -196,9 +193,6 @@ }, { "entity": "light.luce_specchio_old" - }, - { - "entity": "climate.bagno_piccolo" } ], "entity": "group.lights_bathroom_old", @@ -208,60 +202,6 @@ }, "title": "Bagno" }, - { - "camera_view": "auto", - "type": "picture-glance", - "aspect_ratio": "0%", - "entities": [ - { - "entity": "cover.tapparella_studio_old" - }, - { - "entity": "climate.studio" - } - ], - "image": "/local/images/rooms/studio_off.jpg", - "title": "Studio" - }, - { - "type": "picture-glance", - "aspect_ratio": "0%", - "entities": [ - { - "entity": "light.luce_camera_old" - }, - { - "entity": "cover.tapparella_camera_old" - }, - { - "entity": "climate.camera" - }, - { - "entity": "media_player.tv_camera" - } - ], - "entity": "light.luce_camera_old", - "state_image": { - "off": "/local/images/rooms/camera_off.jpg", - "on": "/local/images/rooms/camera_on.jpg" - }, - "title": "Camera" - }, - { - "type": "picture-glance", - "aspect_ratio": "0%", - "entities": [ - { - "entity": "light.luce_balcone_old" - } - ], - "entity": "light.luce_balcone_old", - "state_image": { - "off": "/local/images/rooms/balcone_off.jpg", - "on": "/local/images/rooms/balcone_on.jpg" - }, - "title": "Balcone" - }, { "type": "custom:clock-weather-card", "entity": "weather.savona" @@ -554,17 +494,6 @@ "action": "toggle" } }, - { - "type": "entity", - "show_name": true, - "show_state": true, - "show_icon": true, - "entity": "light.luce_camera_old", - "color": "", - "tap_action": { - "action": "toggle" - } - }, { "type": "entity", "show_name": true, @@ -576,17 +505,6 @@ "action": "toggle" } }, - { - "type": "entity", - "show_name": true, - "show_state": true, - "show_icon": true, - "entity": "light.luce_balcone_old", - "color": "", - "tap_action": { - "action": "toggle" - } - }, { "type": "entity", "show_name": true, @@ -618,12 +536,6 @@ "light.luce_bagno_old", "light.luce_specchio_old" ] - }, - { - "entity": "light.luce_camera_old" - }, - { - "entity": "light.luce_balcone_old" } ], "show_header_toggle": false, @@ -670,26 +582,11 @@ "name": "Luce Specchio", "type": "tile" }, - { - "features": [ - { - "type": "light-brightness" - } - ], - "entity": "light.luce_camera_old", - "name": "Luce Camera", - "type": "tile" - }, { "entity": "light.luce_dispensa", "name": "Luce Dispensa", "type": "tile" }, - { - "entity": "light.luce_balcone_old", - "name": "Luce Balcone", - "type": "tile" - }, { "entity": "light.luce_veranda", "name": "Luce Veranda", @@ -722,26 +619,6 @@ "color": "", "state_content": "current_position", "name": "Sala" - }, - { - "type": "entity", - "show_name": true, - "show_state": true, - "show_icon": true, - "entity": "cover.tapparella_studio_old", - "color": "", - "state_content": "current_position", - "name": "Studio" - }, - { - "type": "entity", - "show_name": true, - "show_state": true, - "show_icon": true, - "entity": "cover.tapparella_camera_old", - "color": "", - "state_content": "current_position", - "name": "Camera" } ], "cards": [ @@ -766,28 +643,6 @@ } ], "type": "custom:shutter-card" - }, - { - "entities": [ - { - "buttons_position": "left", - "entity": "cover.tapparella_studio_old", - "name": "Tapparella Studio", - "always_percentage": true - } - ], - "type": "custom:shutter-card" - }, - { - "entities": [ - { - "buttons_position": "left", - "entity": "cover.tapparella_camera_old", - "name": "Tapparella Camera", - "always_percentage": true - } - ], - "type": "custom:shutter-card" } ] }, @@ -1986,12 +1841,12 @@ }, { "entity": "sensor.valvola_bagno_piccolo_batteria", - "name": "Bagno", + "name": "Bagno Piccolo", "width": "85%" }, { "entity": "sensor.valvola_bagno_grande_batteria", - "name": "Bagno", + "name": "Bagno Grande", "width": "85%" }, { diff --git a/.storage/lovelace.lovelace_devices b/.storage/lovelace.lovelace_devices index 9ae4d8d8..367cf1d7 100644 --- a/.storage/lovelace.lovelace_devices +++ b/.storage/lovelace.lovelace_devices @@ -2385,8 +2385,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": "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" } ] } @@ -2399,6 +2417,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": [ { @@ -2410,11 +2439,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)" } ] } @@ -2422,10 +2462,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)" } ] } @@ -2433,10 +2485,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)" } ] } @@ -2649,116 +2713,6 @@ } ] }, - { - "type": "entities", - "show_header_toggle": "off", - "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", - "entities": [ - { - "type": "section", - "label": "Shelly 3 - Tapparella Studio" - }, - { - "type": "custom:hui-element", - "card_type": "vertical-stack", - "cards": [ - { - "type": "horizontal-stack", - "cards": [ - { - "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/shelly/shelly25.png", - "tap_action": { - "action": "url", - "url_path": "http://shelly3.giorgioravera.it" - } - }, - { - "type": "vertical-stack", - "cards": [ - { - "type": "custom:button-card", - "template": "template_device_generic_state", - "entity": "cover.tapparella_studio_old", - "name": "Stato" - }, - { - "type": "custom:button-card", - "template": "template_device_firmware", - "entity": "update.tapparella_studio_old_firmware", - "name": "Firmare" - }, - { - "type": "custom:button-card", - "template": "template_device_generic_button", - "entity": "button.tapparella_studio_old_reboot", - "name": "Riavvia Dispositivo", - "icon": "mdi:restart" - } - ] - } - ] - } - ] - } - ] - }, - { - "type": "entities", - "show_header_toggle": "off", - "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", - "entities": [ - { - "type": "section", - "label": "Shelly 4 - Tapparella Camera" - }, - { - "type": "custom:hui-element", - "card_type": "vertical-stack", - "cards": [ - { - "type": "horizontal-stack", - "cards": [ - { - "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/shelly/shelly25.png", - "tap_action": { - "action": "url", - "url_path": "http://shelly4.giorgioravera.it" - } - }, - { - "type": "vertical-stack", - "cards": [ - { - "type": "custom:button-card", - "template": "template_device_generic_state", - "entity": "cover.tapparella_camera_old", - "name": "Stato" - }, - { - "type": "custom:button-card", - "template": "template_device_firmware", - "entity": "update.tapparella_camera_old_firmware", - "name": "Firmare" - }, - { - "type": "custom:button-card", - "template": "template_device_generic_button", - "entity": "button.tapparella_camera_old_reboot", - "name": "Riavvia Dispositivo", - "icon": "mdi:restart" - } - ] - } - ] - } - ] - } - ] - }, { "type": "entities", "show_header_toggle": "off", @@ -2930,116 +2884,6 @@ } ] }, - { - "type": "entities", - "show_header_toggle": "off", - "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", - "entities": [ - { - "type": "section", - "label": "Shelly 10 - Luce Camera" - }, - { - "type": "custom:hui-element", - "card_type": "vertical-stack", - "cards": [ - { - "type": "horizontal-stack", - "cards": [ - { - "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/shelly/shelly_dimmer.png", - "tap_action": { - "action": "url", - "url_path": "http://shelly10.giorgioravera.it" - } - }, - { - "type": "vertical-stack", - "cards": [ - { - "type": "custom:button-card", - "template": "template_device_generic_state", - "entity": "light.luce_camera_old", - "name": "Stato" - }, - { - "type": "custom:button-card", - "template": "template_device_firmware", - "entity": "update.luce_camera_old_firmware", - "name": "Firmare" - }, - { - "type": "custom:button-card", - "template": "template_device_generic_button", - "entity": "button.luce_camera_old_reboot", - "name": "Riavvia Dispositivo", - "icon": "mdi:restart" - } - ] - } - ] - } - ] - } - ] - }, - { - "type": "entities", - "show_header_toggle": "off", - "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", - "entities": [ - { - "type": "section", - "label": "Shelly 11 - Luce Balcone" - }, - { - "type": "custom:hui-element", - "card_type": "vertical-stack", - "cards": [ - { - "type": "horizontal-stack", - "cards": [ - { - "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/shelly/shelly1.png", - "tap_action": { - "action": "url", - "url_path": "http://shelly11.giorgioravera.it" - } - }, - { - "type": "vertical-stack", - "cards": [ - { - "type": "custom:button-card", - "template": "template_device_generic_state", - "entity": "light.luce_balcone_old", - "name": "Stato" - }, - { - "type": "custom:button-card", - "template": "template_device_firmware", - "entity": "update.luce_balcone_old_firmware", - "name": "Firmare" - }, - { - "type": "custom:button-card", - "template": "template_device_generic_button", - "entity": "button.luce_balcone_old_reboot", - "name": "Riavvia Dispositivo", - "icon": "mdi:restart" - } - ] - } - ] - } - ] - } - ] - }, { "type": "entities", "show_header_toggle": "off", -- 2.47.3