]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Added ZBMINI-L2 (dispensa + veranda)
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 8 Sep 2023 08:34:26 +0000 (10:34 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 8 Sep 2023 08:34:26 +0000 (10:34 +0200)
.storage/lovelace
.storage/lovelace.lovelace_devices
components/google_assistant/lights.yaml
light/all.yaml

index 64fc3bc523d3a238764e0f3f5cbb61caf328eb3e..6e8af0aab18e9ed227b5eedffa07cd07dbd76c2a 100644 (file)
             {
               "entity": "light.luce_camera"
             },
+            {
+              "entity": "light.luce_dispensa"
+            },
             {
               "entity": "light.luce_balcone"
+            },
+            {
+              "entity": "light.luce_veranda"
             }
           ],
           "cards": [
                 {
                   "entity": "light.luce_camera"
                 },
+                {
+                  "entity": "light.luce_dispensa"
+                },
                 {
                   "entity": "light.luce_balcone"
+                },
+                {
+                  "entity": "light.luce_veranda"
                 }
               ],
               "show_header_toggle": false,
                 }
               ]
             },
+            {
+              "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"
             }
           ]
         },
                 {
                   "type": "weather-forecast",
                   "entity": "weather.meteo_morgex"
+                },
+                {
+                  "type": "custom:horizon-card"
                 }
               ]
             },
index fc261308458bc1b97392494f8dd27d706c576729..25590e7fb989918f165ad93236fff6aa18e3de0e 100644 (file)
               ]
             },
             {
-              "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"
+                            }
+                          ]
+                        }
+                      ]
+                    }
+                  ]
                 }
               ]
             }
index 2017a3e69178069c5abfe59edee603425bf65ec3..517432fc82c76e40e3e45dea39f1b2d4cdb4950d 100644 (file)
@@ -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
index 2d0ad981ac9994bfc53a189ad802502c45c3fa64..fc169d16a6f975e1881da90a895f6638f334ef76 100644 (file)
@@ -13,4 +13,6 @@
     - light.luce_specchio
     - light.luce_studio
     - light.luce_camera
+    - light.luce_dispensa
     - light.luce_balcone
+    - light.luce_veranda