]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Review network lovelace view
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 4 Dec 2020 10:12:32 +0000 (11:12 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 4 Dec 2020 10:12:32 +0000 (11:12 +0100)
.storage/lovelace.lovelace_settings

index e143fc5461402ff4154f274e4ebd1cdf82bc170e..c99fa83e716050fb4443e821f30004efb9f5eabb 100644 (file)
                     "badges": [],
                     "cards": [
                         {
+                            "entities": [
+                                "sensor.ip_1",
+                                "sensor.ip_2"
+                            ],
+                            "title": "External IP",
+                            "type": "glance"
+                        },
+                        {
+                            "type": "vertical-stack",
                             "cards": [
                                 {
+                                    "type": "glance",
                                     "entities": [
-                                        "sensor.ip_1",
-                                        "sensor.ip_2"
+                                        {
+                                            "entity": "sensor.speedtest_ping"
+                                        },
+                                        {
+                                            "entity": "sensor.speedtest_download"
+                                        },
+                                        {
+                                            "entity": "sensor.speedtest_upload"
+                                        }
                                     ],
-                                    "title": "External IP",
-                                    "type": "glance"
+                                    "title": "Speed Test"
                                 },
                                 {
-                                    "entities": [
-                                        "sensor.speedtest_ping",
-                                        "sensor.speedtest_download",
-                                        "sensor.speedtest_upload"
-                                    ],
-                                    "title": "Speed Test",
-                                    "type": "glance"
+                                    "type": "button",
+                                    "entity": "sensor.speedtest_download",
+                                    "show_icon": true,
+                                    "name": "Aggiorna Valori",
+                                    "icon_height": "25px",
+                                    "tap_action": {
+                                        "action": "call-service",
+                                        "service": "speedtestdotnet.speedtest"
+                                    }
+                                }
+                            ]
+                        },
+                        {
+                            "type": "history-graph",
+                            "entities": [
+                                {
+                                    "entity": "sensor.freebsd_router_kib_s_received"
                                 },
                                 {
-                                    "entities": [
-                                        "sensor.freebsd_router_kib_s_received",
-                                        "sensor.freebsd_router_kib_s_sent"
-                                    ],
-                                    "title": "pfSense",
-                                    "type": "glance"
+                                    "entity": "sensor.freebsd_router_kib_s_sent"
                                 }
                             ],
-                            "type": "vertical-stack"
+                            "title": "pfSense",
+                            "refresh_interval": 0,
+                            "hours_to_show": 2
                         }
                     ],
                     "icon": "mdi:lan",