]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Replaced energy graph with plotly-graph
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Tue, 26 Apr 2022 21:20:26 +0000 (23:20 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Tue, 26 Apr 2022 21:20:26 +0000 (23:20 +0200)
.storage/lovelace

index 00a97c882c79150be42b5e4f1cd0b846741c3cc7..7dae8a0117456e701b888045b6f7f230cabc66a2 100644 (file)
                                 "position": "sidebar"
                             }
                         },
+                        {
+                            "type": "custom:plotly-graph",
+                            "entities": [
+                                "sensor.shelly_em_channel_1_power"
+                            ],
+                            "hours_to_show": 24,
+                            "refresh_interval": 0,
+                            "title": "Consumo Eenergetico",
+                            "layout": {
+                                "height": 500,
+                                "xaxis": {
+                                    "rangeselector": {
+                                        "buttons": [
+                                            {
+                                                "count": 1,
+                                                "step": "hour"
+                                            },
+                                            {
+                                                "count": 6,
+                                                "step": "hour"
+                                            },
+                                            {
+                                                "count": 12,
+                                                "step": "hour"
+                                            },
+                                            {
+                                                "count": 1,
+                                                "step": "day"
+                                            },
+                                            {
+                                                "count": 2,
+                                                "step": "day"
+                                            },
+                                            {
+                                                "count": 7,
+                                                "step": "day"
+                                            }
+                                        ]
+                                    }
+                                }
+                            },
+                            "config": {
+                                "scrollZoom": true,
+                                "displayModeBar": false,
+                                "displaylogo": false
+                            }
+                        },
                         {
                             "entities": [
                                 {
                             "title": "Consumi",
                             "type": "entities",
                             "view_layout": {
-                                "position": "sidebar"
+                                "position": "main"
                             }
-                        },
-                        {
-                            "type": "history-graph",
-                            "entities": [
-                                {
-                                    "entity": "sensor.shelly_em_channel_1_power"
-                                }
-                            ],
-                            "hours_to_show": 24,
-                            "refresh_interval": 0,
-                            "title": "Consumo Eenergetico"
                         }
                     ]
                 },