From: Giorgio Ravera Date: Fri, 8 Sep 2023 08:34:26 +0000 (+0200) Subject: Added ZBMINI-L2 (dispensa + veranda) X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=7270e2f750a1e90544e82ef5323d913d3ef72939;p=homeassistant.git Added ZBMINI-L2 (dispensa + veranda) --- diff --git a/.storage/lovelace b/.storage/lovelace index 64fc3bc5..6e8af0aa 100644 --- a/.storage/lovelace +++ b/.storage/lovelace @@ -499,8 +499,14 @@ { "entity": "light.luce_camera" }, + { + "entity": "light.luce_dispensa" + }, { "entity": "light.luce_balcone" + }, + { + "entity": "light.luce_veranda" } ], "cards": [ @@ -537,8 +543,14 @@ { "entity": "light.luce_camera" }, + { + "entity": "light.luce_dispensa" + }, { "entity": "light.luce_balcone" + }, + { + "entity": "light.luce_veranda" } ], "show_header_toggle": false, @@ -615,10 +627,20 @@ } ] }, + { + "entity": "light.luce_dispensa", + "name": "Luce Dispensa", + "type": "tile" + }, { "entity": "light.luce_balcone", "name": "Luce Balcone", "type": "tile" + }, + { + "entity": "light.luce_veranda", + "name": "Luce Veranda", + "type": "tile" } ] }, @@ -1705,6 +1727,9 @@ { "type": "weather-forecast", "entity": "weather.meteo_morgex" + }, + { + "type": "custom:horizon-card" } ] }, diff --git a/.storage/lovelace.lovelace_devices b/.storage/lovelace.lovelace_devices index fc261308..25590e7f 100644 --- a/.storage/lovelace.lovelace_devices +++ b/.storage/lovelace.lovelace_devices @@ -3091,21 +3091,116 @@ ] }, { - "type": "vertical-stack", - "title": "Mappa Dispositivi", - "layout": "vertical", - "cards": [ + "type": "entities", + "show_header_toggle": "off", + "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", + "entities": [ + { + "type": "section", + "label": "Luce Veranda - Sonoff ZBMINIL2" + }, + { + "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": "https://www.zigbee2mqtt.io/images/devices/ZBMINIL2.jpg" + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "light.luce_veranda", + "name": "Stato", + "styles": { + "icon": [ + { + "color": "var(--state-icon-color)" + } + ] + } + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "select.luce_veranda_power_on_behavior", + "name": "Stato al Riavvio" + }, + { + "type": "custom:button-card", + "template": "template_device_firmware", + "entity": "update.luce_veranda", + "name": "Firmware" + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "entities", + "show_header_toggle": "off", + "style": ".card-header {\n padding: 0px 0px 0px 0px !important;\n}\n", + "entities": [ + { + "type": "section", + "label": "Luce Dispensa - Sonoff ZBMINIL2" + }, { - "type": "custom:zigbee2mqtt-networkmap", - "title": "Zigbee2MQTT Network Map", - "entity": "sensor.zigbee2mqtt_networkmap", - "mqtt_base_topic": "zigbee2mqtt", - "force": 3000, - "node_size": 16, - "font_size": 12, - "link_width": 2, - "height": 400, - "css": ":host {\n --zigbee2mqtt-networkmap-node-color: rgba(18, 120, 98, .7);\n --zigbee2mqtt-networkmap-node-fill-color: #dcfaf3;\n --zigbee2mqtt-networkmap-node-pinned-color: rgba(190, 56, 93, .6);\n --zigbee2mqtt-networkmap-link-color: rgba(18, 120, 98, .5);\n --zigbee2mqtt-networkmap-hover-color: #be385d;\n --zigbee2mqtt-networkmap-link-selected-color: rgba(202, 164, 85, .6);\n --zigbee2mqtt-networkmap-label-color: #127862;\n --zigbee2mqtt-networkmap-arrow-color: rgba(18, 120, 98, 0.7);\n --zigbee2mqtt-networkmap-node-coordinator-color: rgba(224, 78, 93, .7);\n --zigbee2mqtt-networkmap-node-router-color: rgba(0, 165, 255, .7);\n }\n" + "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": "https://www.zigbee2mqtt.io/images/devices/ZBMINIL2.jpg" + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "light.luce_dispensa", + "name": "Stato", + "styles": { + "icon": [ + { + "color": "var(--state-icon-color)" + } + ] + } + }, + { + "type": "custom:button-card", + "template": "template_device_generic_state", + "entity": "select.luce_dispensa_power_on_behavior", + "name": "Stato al Riavvio" + }, + { + "type": "custom:button-card", + "template": "template_device_firmware", + "entity": "update.luce_dispensa", + "name": "Firmware" + } + ] + } + ] + } + ] } ] } diff --git a/components/google_assistant/lights.yaml b/components/google_assistant/lights.yaml index 2017a3e6..517432fc 100644 --- a/components/google_assistant/lights.yaml +++ b/components/google_assistant/lights.yaml @@ -26,6 +26,12 @@ light.luce_studio: light.luce_camera: expose: true room: Camera +light.luce_dispensa: + expose: true + room: Dispensa light.luce_balcone: expose: true room: Balcone +light.luce_veranda: + expose: true + room: Veranda diff --git a/light/all.yaml b/light/all.yaml index 2d0ad981..fc169d16 100644 --- a/light/all.yaml +++ b/light/all.yaml @@ -13,4 +13,6 @@ - light.luce_specchio - light.luce_studio - light.luce_camera + - light.luce_dispensa - light.luce_balcone + - light.luce_veranda