]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Review lovelace devices panel
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 4 Dec 2020 10:12:17 +0000 (11:12 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 4 Dec 2020 10:12:17 +0000 (11:12 +0100)
.storage/lovelace.lovelace_dispositivi
www/images/devices/canon_tr8550.png [new file with mode: 0644]
www/images/devices/qnap_ts228a.png [new file with mode: 0644]

index c2a79fc421d3908e360401104b6459a38a2ce300..25c57610e39e17c30a03a73e71c6cc4786ada092 100644 (file)
@@ -8,80 +8,94 @@
                     "title": "NAS",
                     "path": "nas",
                     "icon": "mdi:nas",
+                    "panel": true,
                     "badges": [],
                     "cards": [
                         {
+                            "type": "custom:layout-card",
+                            "layout": "vertical",
                             "cards": [
                                 {
-                                    "entities": [
-                                        "switch.nas",
-                                        "script.plex_start",
-                                        "script.plex_stop"
-                                    ],
-                                    "show_header_toggle": false,
+                                    "type": "vertical-stack",
                                     "title": "NAS QNAP TS-228A",
-                                    "type": "entities"
-                                }
-                            ],
-                            "type": "vertical-stack"
-                        }
-                    ]
-                },
-                {
-                    "title": "Stampanti",
-                    "path": "stampanti",
-                    "icon": "mdi:printer",
-                    "panel": false,
-                    "badges": [],
-                    "cards": [
-                        {
-                            "type": "custom:bar-card",
-                            "entities": [
-                                {
-                                    "entity": "sensor.canon_tr8500_series_black_bk",
-                                    "name": "BK",
-                                    "color": "black",
-                                    "width": "85%"
+                                    "cards": [
+                                        {
+                                            "type": "picture",
+                                            "image": "/local/images/devices/qnap_ts228a.png"
+                                        },
+                                        {
+                                            "type": "entities",
+                                            "show_header_toggle": false,
+                                            "entities": [
+                                                "switch.nas",
+                                                "script.plex_start",
+                                                "script.plex_stop"
+                                            ]
+                                        }
+                                    ]
                                 },
+                                "break",
                                 {
-                                    "entity": "sensor.canon_tr8500_series_black_pgbk",
-                                    "name": "PGBK",
-                                    "color": "black",
-                                    "width": "85%"
-                                },
-                                {
-                                    "entity": "sensor.canon_tr8500_series_cyan",
-                                    "name": "C",
-                                    "color": "cyan",
-                                    "width": "85%"
-                                },
-                                {
-                                    "entity": "sensor.canon_tr8500_series_magenta",
-                                    "name": "M",
-                                    "color": "magenta",
-                                    "width": "85%"
-                                },
-                                {
-                                    "entity": "sensor.canon_tr8500_series_yellow",
-                                    "name": "Y",
-                                    "color": "yellow",
-                                    "width": "85%"
+                                    "type": "vertical-stack",
+                                    "title": "Canon PIXMA TR8550",
+                                    "cards": [
+                                        {
+                                            "type": "picture",
+                                            "title": "Canon PIXMA TR8550",
+                                            "image": "/local/images/devices/canon_tr8550.png"
+                                        },
+                                        {
+                                            "type": "entity",
+                                            "entity": "sensor.canon_tr8500_series",
+                                            "name": "Stato"
+                                        },
+                                        {
+                                            "type": "custom:bar-card",
+                                            "entities": [
+                                                {
+                                                    "entity": "sensor.canon_tr8500_series_black_bk",
+                                                    "name": "BK",
+                                                    "color": "black",
+                                                    "width": "85%"
+                                                },
+                                                {
+                                                    "entity": "sensor.canon_tr8500_series_black_pgbk",
+                                                    "name": "PGBK",
+                                                    "color": "black",
+                                                    "width": "85%"
+                                                },
+                                                {
+                                                    "entity": "sensor.canon_tr8500_series_cyan",
+                                                    "name": "C",
+                                                    "color": "cyan",
+                                                    "width": "85%"
+                                                },
+                                                {
+                                                    "entity": "sensor.canon_tr8500_series_magenta",
+                                                    "name": "M",
+                                                    "color": "magenta",
+                                                    "width": "85%"
+                                                },
+                                                {
+                                                    "entity": "sensor.canon_tr8500_series_yellow",
+                                                    "name": "Y",
+                                                    "color": "yellow",
+                                                    "width": "85%"
+                                                }
+                                            ],
+                                            "title": "Livello Inchiostro",
+                                            "show_header_toggle": false,
+                                            "state_color": false,
+                                            "positions": {
+                                                "icon": "off",
+                                                "indicator": "off",
+                                                "name": "outside",
+                                                "value": "outside"
+                                            }
+                                        }
+                                    ]
                                 }
-                            ],
-                            "title": "Canon TR8550: Livello Inchiostro",
-                            "show_header_toggle": false,
-                            "state_color": false,
-                            "positions": {
-                                "icon": "off",
-                                "indicator": "off",
-                                "name": "outside",
-                                "value": "outside"
-                            }
-                        },
-                        {
-                            "type": "entity",
-                            "entity": "sensor.canon_tr8500_series",
-                            "name": "Canon TR8550: Stato"
+                            ]
                         }
                     ]
                 },
diff --git a/www/images/devices/canon_tr8550.png b/www/images/devices/canon_tr8550.png
new file mode 100644 (file)
index 0000000..3833596
Binary files /dev/null and b/www/images/devices/canon_tr8550.png differ
diff --git a/www/images/devices/qnap_ts228a.png b/www/images/devices/qnap_ts228a.png
new file mode 100644 (file)
index 0000000..b7b5739
Binary files /dev/null and b/www/images/devices/qnap_ts228a.png differ