From 9b218a2724c9916bde817f9d919237b3df96f40e Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Wed, 12 Jul 2023 00:13:31 +0200 Subject: [PATCH] Updated netatmo devices lovelace page --- .storage/lovelace | 52 +- ..._dispositivi => lovelace.lovelace_devices} | 620 ++++++++++-------- .storage/lovelace_dashboards | 67 +- 3 files changed, 373 insertions(+), 366 deletions(-) rename .storage/{lovelace.lovelace_dispositivi => lovelace.lovelace_devices} (88%) diff --git a/.storage/lovelace b/.storage/lovelace index 7ed87340..64fc3bc5 100644 --- a/.storage/lovelace +++ b/.storage/lovelace @@ -36,7 +36,6 @@ { "title": "Stanze", "type": "custom:layout-card", - "template": "template_grid_layout", "cards": [ { "type": "picture-glance", @@ -221,7 +220,8 @@ "grid-template-areas": "\"first second\"\n\"third fourth\"\n\"fifth sixth\"\n\"seventh eighth\"\n\"nineth tenth\"\n\"eleventh twelfth\"\n" } } - } + }, + "layout_type": "custom:grid-layout" }, { "type": "custom:layout-card", @@ -1608,6 +1608,13 @@ "view_layout": { "position": "main" } + }, + { + "type": "energy-distribution", + "link_dashboard": true, + "view_layout": { + "position": "sidebar" + } } ] }, @@ -2073,47 +2080,6 @@ ] } ] - }, - { - "title": "Operazioni Pianificate", - "path": "schedule", - "icon": "mdi:clock-outline", - "badges": [], - "cards": [ - { - "type": "custom:scheduler-card", - "title": "Pianificazione Luci", - "include": [ - "light" - ], - "discover_existing": true, - "view_layout": { - "position": "sidebar" - } - }, - { - "type": "custom:scheduler-card", - "title": "Pianificazione Tapparelle", - "include": [ - "cover" - ], - "discover_existing": true, - "view_layout": { - "position": "sidebar" - } - }, - { - "type": "custom:scheduler-card", - "title": "Pianificazione Valvole", - "include": [ - "climate" - ], - "discover_existing": true, - "view_layout": { - "position": "sidebar" - } - } - ] } ] } diff --git a/.storage/lovelace.lovelace_dispositivi b/.storage/lovelace.lovelace_devices similarity index 88% rename from .storage/lovelace.lovelace_dispositivi rename to .storage/lovelace.lovelace_devices index 2b80fad5..12c6369b 100644 --- a/.storage/lovelace.lovelace_dispositivi +++ b/.storage/lovelace.lovelace_devices @@ -1,7 +1,7 @@ { "version": 1, "minor_version": 1, - "key": "lovelace.lovelace_dispositivi", + "key": "lovelace.lovelace_devices", "data": { "config": { "views": [ @@ -2256,382 +2256,422 @@ "title": "Netatmo", "path": "netatmo", "icon": "mdi:alpha-n-box", - "type": "custom:horizontal-layout", + "type": "sidebar", "badges": [], "cards": [ { - "type": "entities", - "entities": [ - { - "entity": "input_boolean.central_heating" - }, - { - "entity": "select.netatmo_casa_ravera_testa" - } - ], - "state_color": false, - "title": "Impostazioni" - }, - { - "type": "entities", - "show_header_toggle": "off", - "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", - "entities": [ - { - "type": "section", - "label": "Valvola 1 - Cucina" - }, + "title": "Valvole", + "type": "custom:layout-card", + "cards": [ { - "type": "custom:hui-element", - "card_type": "vertical-stack", - "cards": [ + "type": "entities", + "show_header_toggle": "off", + "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", + "entities": [ { - "type": "horizontal-stack", + "type": "section", + "label": "Valvola 1 - Cucina" + }, + { + "type": "custom:hui-element", + "card_type": "vertical-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/netatmo_valve.png" - }, - { - "type": "vertical-stack", + "type": "horizontal-stack", "cards": [ { - "type": "custom:button-card", - "template": "template_device_generic_state", - "entity": "climate.cucina", - "name": "Modalità", - "styles": { - "icon": [ - { - "color": "var(--state-icon-color)" - } - ] - } + "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/netatmo_valve.png" }, { - "type": "custom:button-card", - "template": "template_device_generic_state", - "entity": "sensor.valvola_cucina_state", - "name": "Stato", - "styles": { - "icon": [ - { - "color": "var(--state-icon-color)" + "type": "vertical-stack", + "cards": [ + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "climate.cucina", + "name": "Modalità", + "styles": { + "icon": [ + { + "color": "var(--state-icon-color)" + } + ] } - ] - } - }, - { - "type": "custom:button-card", - "template": "template_device_generic_battery_state", - "entity": "sensor.valvola_cucina_battery_percent", - "name": "Batteria", - "styles": { - "icon": [ - { - "color": "var(--state-icon-color)" + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "sensor.valvola_cucina_state", + "name": "Stato", + "styles": { + "icon": [ + { + "color": "var(--state-icon-color)" + } + ] } - ] - } + }, + { + "type": "custom:button-card", + "template": "template_device_generic_battery_state", + "entity": "sensor.valvola_cucina_battery_percent", + "name": "Batteria", + "styles": { + "icon": [ + { + "color": "var(--state-icon-color)" + } + ] + } + } + ] } ] } ] } - ] - } - ] - }, - { - "type": "entities", - "show_header_toggle": "off", - "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", - "entities": [ - { - "type": "section", - "label": "Valvola 2 - Sala" + ], + "view_layout": { + "grid-area": "first" + } }, { - "type": "custom:hui-element", - "card_type": "vertical-stack", - "cards": [ + "type": "entities", + "show_header_toggle": "off", + "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", + "entities": [ { - "type": "horizontal-stack", + "type": "section", + "label": "Valvola 2 - Sala" + }, + { + "type": "custom:hui-element", + "card_type": "vertical-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/netatmo_valve.png" - }, - { - "type": "vertical-stack", + "type": "horizontal-stack", "cards": [ { - "type": "custom:button-card", - "template": "template_device_generic_state", - "entity": "climate.sala", - "name": "Modalità", - "styles": { - "icon": [ - { - "color": "var(--state-icon-color)" - } - ] - } + "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/netatmo_valve.png" }, { - "type": "custom:button-card", - "template": "template_device_generic_state", - "entity": "sensor.valvola_sala_state", - "name": "Stato", - "styles": { - "icon": [ - { - "color": "var(--state-icon-color)" + "type": "vertical-stack", + "cards": [ + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "climate.sala", + "name": "Modalità", + "styles": { + "icon": [ + { + "color": "var(--state-icon-color)" + } + ] } - ] - } - }, - { - "type": "custom:button-card", - "template": "template_device_generic_battery_state", - "entity": "sensor.valvola_sala_battery_percent", - "name": "Batteria", - "styles": { - "icon": [ - { - "color": "var(--state-icon-color)" + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "sensor.valvola_sala_state", + "name": "Stato", + "styles": { + "icon": [ + { + "color": "var(--state-icon-color)" + } + ] } - ] - } + }, + { + "type": "custom:button-card", + "template": "template_device_generic_battery_state", + "entity": "sensor.valvola_sala_battery_percent", + "name": "Batteria", + "styles": { + "icon": [ + { + "color": "var(--state-icon-color)" + } + ] + } + } + ] } ] } ] } - ] - } - ] - }, - { - "type": "entities", - "show_header_toggle": "off", - "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", - "entities": [ - { - "type": "section", - "label": "Valvola 3 - Bagno" + ], + "view_layout": { + "grid-area": "second" + } }, { - "type": "custom:hui-element", - "card_type": "vertical-stack", - "cards": [ + "type": "entities", + "show_header_toggle": "off", + "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", + "entities": [ { - "type": "horizontal-stack", + "type": "section", + "label": "Valvola 3 - Bagno" + }, + { + "type": "custom:hui-element", + "card_type": "vertical-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/netatmo_valve.png" - }, - { - "type": "vertical-stack", + "type": "horizontal-stack", "cards": [ { - "type": "custom:button-card", - "template": "template_device_generic_state", - "entity": "climate.bagno", - "name": "Modalità", - "styles": { - "icon": [ - { - "color": "var(--state-icon-color)" - } - ] - } + "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/netatmo_valve.png" }, { - "type": "custom:button-card", - "template": "template_device_generic_state", - "entity": "sensor.valvola_bagno_state", - "name": "Stato", - "styles": { - "icon": [ - { - "color": "var(--state-icon-color)" + "type": "vertical-stack", + "cards": [ + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "climate.bagno", + "name": "Modalità", + "styles": { + "icon": [ + { + "color": "var(--state-icon-color)" + } + ] } - ] - } - }, - { - "type": "custom:button-card", - "template": "template_device_generic_battery_state", - "entity": "sensor.valvola_bagno_battery_percent", - "name": "Batteria", - "styles": { - "icon": [ - { - "color": "var(--state-icon-color)" + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "sensor.valvola_bagno_state", + "name": "Stato", + "styles": { + "icon": [ + { + "color": "var(--state-icon-color)" + } + ] } - ] - } + }, + { + "type": "custom:button-card", + "template": "template_device_generic_battery_state", + "entity": "sensor.valvola_bagno_battery_percent", + "name": "Batteria", + "styles": { + "icon": [ + { + "color": "var(--state-icon-color)" + } + ] + } + } + ] } ] } ] } - ] - } - ] - }, - { - "type": "entities", - "show_header_toggle": "off", - "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", - "entities": [ - { - "type": "section", - "label": "Valvola 4 - Studio" + ], + "view_layout": { + "grid-area": "third" + } }, { - "type": "custom:hui-element", - "card_type": "vertical-stack", - "cards": [ + "type": "entities", + "show_header_toggle": "off", + "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", + "entities": [ { - "type": "horizontal-stack", + "type": "section", + "label": "Valvola 4 - Studio" + }, + { + "type": "custom:hui-element", + "card_type": "vertical-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/netatmo_valve.png" - }, - { - "type": "vertical-stack", + "type": "horizontal-stack", "cards": [ { - "type": "custom:button-card", - "template": "template_device_generic_state", - "entity": "climate.studio", - "name": "Modalità", - "styles": { - "icon": [ - { - "color": "var(--state-icon-color)" - } - ] - } + "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/netatmo_valve.png" }, { - "type": "custom:button-card", - "template": "template_device_generic_state", - "entity": "sensor.valvola_studio_state", - "name": "Stato", - "styles": { - "icon": [ - { - "color": "var(--state-icon-color)" + "type": "vertical-stack", + "cards": [ + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "climate.studio", + "name": "Modalità", + "styles": { + "icon": [ + { + "color": "var(--state-icon-color)" + } + ] } - ] - } - }, - { - "type": "custom:button-card", - "template": "template_device_generic_battery_state", - "entity": "sensor.valvola_studio_battery_percent", - "name": "Batteria", - "styles": { - "icon": [ - { - "color": "var(--state-icon-color)" + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "sensor.valvola_studio_state", + "name": "Stato", + "styles": { + "icon": [ + { + "color": "var(--state-icon-color)" + } + ] } - ] - } + }, + { + "type": "custom:button-card", + "template": "template_device_generic_battery_state", + "entity": "sensor.valvola_studio_battery_percent", + "name": "Batteria", + "styles": { + "icon": [ + { + "color": "var(--state-icon-color)" + } + ] + } + } + ] } ] } ] } - ] - } - ] - }, - { - "type": "entities", - "show_header_toggle": "off", - "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", - "entities": [ - { - "type": "section", - "label": "Valvola 5 - Camera" + ], + "view_layout": { + "grid-area": "fourth" + } }, { - "type": "custom:hui-element", - "card_type": "vertical-stack", - "cards": [ + "type": "entities", + "show_header_toggle": "off", + "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", + "entities": [ { - "type": "horizontal-stack", + "type": "section", + "label": "Valvola 5 - Camera" + }, + { + "type": "custom:hui-element", + "card_type": "vertical-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/netatmo_valve.png" - }, - { - "type": "vertical-stack", + "type": "horizontal-stack", "cards": [ { - "type": "custom:button-card", - "template": "template_device_generic_state", - "entity": "climate.camera", - "name": "Modalità", - "styles": { - "icon": [ - { - "color": "var(--state-icon-color)" - } - ] - } + "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/netatmo_valve.png" }, { - "type": "custom:button-card", - "template": "template_device_generic_state", - "entity": "sensor.valvola_camera_state", - "name": "Stato", - "styles": { - "icon": [ - { - "color": "var(--state-icon-color)" + "type": "vertical-stack", + "cards": [ + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "climate.camera", + "name": "Modalità", + "styles": { + "icon": [ + { + "color": "var(--state-icon-color)" + } + ] } - ] - } - }, - { - "type": "custom:button-card", - "template": "template_device_generic_battery_state", - "entity": "sensor.valvola_camera_battery_percent", - "name": "Batteria", - "styles": { - "icon": [ - { - "color": "var(--state-icon-color)" + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "sensor.valvola_camera_state", + "name": "Stato", + "styles": { + "icon": [ + { + "color": "var(--state-icon-color)" + } + ] } - ] - } + }, + { + "type": "custom:button-card", + "template": "template_device_generic_battery_state", + "entity": "sensor.valvola_camera_battery_percent", + "name": "Batteria", + "styles": { + "icon": [ + { + "color": "var(--state-icon-color)" + } + ] + } + } + ] } ] } ] } - ] + ], + "view_layout": { + "grid-area": "fifth" + } } - ] + ], + "layout": { + "grid-template-columns": "33% 33% 33%", + "grid-template-rows": "auto", + "grid-template-areas": "\"first second third\"\n\"fourth fifth sixth\"\n\"seventh eighth nineth\"\n\"tenth eleventh twelfth\"\n", + "mediaquery": { + "(max-width: 1350px)": { + "grid-template-columns": "100%", + "grid-template-areas": "\"first\"\n\"second\"\n\"third\"\n\"fourth\"\n\"fifth\" \n\"sixth\"\n\"seventh\"\n\"eighth\"\n\"nineth\"\n\"tenth\"\n\"eleventh\"\n\"twelfth\"\n" + }, + "(max-width: 1750px)": { + "grid-template-columns": "50% 50%", + "grid-template-areas": "\"first second\"\n\"third fourth\"\n\"fifth sixth\"\n\"seventh eighth\"\n\"nineth tenth\"\n\"eleventh twelfth\"\n" + } + } + }, + "layout_type": "custom:grid-layout" + }, + { + "type": "entities", + "entities": [ + { + "entity": "input_boolean.central_heating" + }, + { + "entity": "select.netatmo_casa_ravera_testa" + } + ], + "state_color": false, + "title": "Impostazioni", + "view_layout": { + "position": "sidebar" + } } ] }, { - "title": "test", - "path": "test", + "title": "zigbee", + "path": "zigbee", "icon": "mdi:zigbee", "type": "custom:horizontal-layout", "badges": [], diff --git a/.storage/lovelace_dashboards b/.storage/lovelace_dashboards index 53b870d4..113caeaf 100644 --- a/.storage/lovelace_dashboards +++ b/.storage/lovelace_dashboards @@ -1,35 +1,36 @@ { - "version": 1, - "key": "lovelace_dashboards", - "data": { - "items": [ - { - "icon": "mdi:television", - "id": "lovelace_multimedia", - "mode": "storage", - "require_admin": false, - "show_in_sidebar": true, - "title": "Multimedia", - "url_path": "lovelace-media" - }, - { - "icon": "mdi:cog", - "id": "lovelace_settings", - "mode": "storage", - "require_admin": true, - "show_in_sidebar": true, - "title": "Sistema", - "url_path": "lovelace-test" - }, - { - "require_admin": false, - "show_in_sidebar": true, - "icon": "mdi:devices", - "title": "Dispositivi", - "url_path": "lovelace-dispositivi", - "mode": "storage", - "id": "lovelace_dispositivi" - } - ] - } + "version": 1, + "minor_version": 1, + "key": "lovelace_dashboards", + "data": { + "items": [ + { + "icon": "mdi:television", + "id": "lovelace_multimedia", + "mode": "storage", + "require_admin": false, + "show_in_sidebar": true, + "title": "Multimedia", + "url_path": "lovelace-media" + }, + { + "icon": "mdi:cog", + "id": "lovelace_settings", + "mode": "storage", + "require_admin": true, + "show_in_sidebar": true, + "title": "Sistema", + "url_path": "lovelace-settings" + }, + { + "require_admin": false, + "show_in_sidebar": true, + "icon": "mdi:devices", + "title": "Dispositivi", + "url_path": "lovelace-devices", + "mode": "storage", + "id": "lovelace_devices" + } + ] + } } \ No newline at end of file -- 2.47.3