]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Added Home Temperature Panel into lovelace
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Wed, 11 Aug 2021 11:18:29 +0000 (13:18 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Wed, 11 Aug 2021 11:18:29 +0000 (13:18 +0200)
.storage/lovelace

index 0623ac5c230a7a510743064ff87c0ae337808d22..45ff3bc8b5b17b1f563fc770d0ef2b17487ce44a 100644 (file)
                     "title": "Allarmi"
                 },
                 {
-                    "icon": "mdi:weather-sunny",
-                    "id": "meteo",
-                    "title": "Meteo",
-                    "badges": [
-                        {
-                            "entity": "sun.sun"
-                        }
-                    ],
-                    "cards": [
-                        {
-                            "entity": "weather.meteo_savona",
-                            "type": "weather-forecast"
-                        },
-                        {
-                            "entity": "weather.meteo_morgex",
-                            "type": "weather-forecast"
-                        }
-                    ]
-                },
-                {
-                    "title": "test",
-                    "path": "test",
+                    "title": "Temperature",
+                    "path": "temperature",
+                    "icon": "mdi:home-thermometer",
                     "badges": [],
                     "cards": [
                         {
-                            "type": "horizontal-stack",
+                            "type": "vertical-stack",
                             "cards": [
                                 {
-                                    "type": "custom:mini-graph-card",
-                                    "entities": [
-                                        {
-                                            "entity": "sensor.valve_cucina_temperature",
-                                            "name": "Cucina"
-                                        }
-                                    ],
-                                    "name": "Cucina",
-                                    "hours_to_show": 24,
-                                    "points_per_hour": 1,
-                                    "show": {
-                                        "name": true,
-                                        "state": true
+                                    "type": "custom:button-card",
+                                    "name": "Temperatura Interna",
+                                    "label": "Shelly",
+                                    "layout": "name_state",
+                                    "show_state": false,
+                                    "show_name": true,
+                                    "show_label": false,
+                                    "show_icon": false,
+                                    "show_entity_picture": false,
+                                    "styles": {
+                                        "card": [
+                                            {
+                                                "background-color": "transparent"
+                                            },
+                                            {
+                                                "box-shadow": "0px 0px 0px 0px."
+                                            }
+                                        ],
+                                        "entity_picture": [
+                                            {
+                                                "width": "15%"
+                                            }
+                                        ]
                                     },
-                                    "line_width": 5,
-                                    "color_thresholds": [
-                                        {
-                                            "value": 16,
-                                            "color": "#4a90e2"
-                                        },
-                                        {
-                                            "value": 19,
-                                            "color": "#ffbd00"
-                                        },
-                                        {
-                                            "value": 23,
-                                            "color": "#ee7c3a"
-                                        }
-                                    ],
-                                    "hour24": true,
-                                    "decimals": 0
+                                    "view_layout": {
+                                        "grid-area": "header"
+                                    }
                                 },
                                 {
-                                    "type": "custom:mini-graph-card",
-                                    "entities": [
+                                    "type": "horizontal-stack",
+                                    "cards": [
                                         {
-                                            "entity": "sensor.valve_sala_temperature",
-                                            "name": "Sala"
-                                        }
-                                    ],
-                                    "name": "Sala",
-                                    "hours_to_show": 24,
-                                    "points_per_hour": 1,
-                                    "show": {
-                                        "name": true,
-                                        "state": true
-                                    },
-                                    "line_width": 5,
-                                    "color_thresholds": [
-                                        {
-                                            "value": 16,
-                                            "color": "#4a90e2"
-                                        },
-                                        {
-                                            "value": 19,
-                                            "color": "#ffbd00"
+                                            "type": "custom:mini-graph-card",
+                                            "entities": [
+                                                {
+                                                    "entity": "sensor.valve_cucina_temperature",
+                                                    "name": "Cucina"
+                                                }
+                                            ],
+                                            "name": "Cucina",
+                                            "hours_to_show": 24,
+                                            "points_per_hour": 1,
+                                            "show": {
+                                                "name": true,
+                                                "state": true
+                                            },
+                                            "line_width": 5,
+                                            "color_thresholds": [
+                                                {
+                                                    "value": 16,
+                                                    "color": "#4a90e2"
+                                                },
+                                                {
+                                                    "value": 19,
+                                                    "color": "#ffbd00"
+                                                },
+                                                {
+                                                    "value": 23,
+                                                    "color": "#ee7c3a"
+                                                }
+                                            ],
+                                            "hour24": true,
+                                            "decimals": 0
                                         },
                                         {
-                                            "value": 23,
-                                            "color": "#ee7c3a"
+                                            "type": "custom:mini-graph-card",
+                                            "entities": [
+                                                {
+                                                    "entity": "sensor.valve_sala_temperature",
+                                                    "name": "Sala"
+                                                }
+                                            ],
+                                            "name": "Sala",
+                                            "hours_to_show": 24,
+                                            "points_per_hour": 1,
+                                            "show": {
+                                                "name": true,
+                                                "state": true
+                                            },
+                                            "line_width": 5,
+                                            "color_thresholds": [
+                                                {
+                                                    "value": 16,
+                                                    "color": "#4a90e2"
+                                                },
+                                                {
+                                                    "value": 19,
+                                                    "color": "#ffbd00"
+                                                },
+                                                {
+                                                    "value": 23,
+                                                    "color": "#ee7c3a"
+                                                }
+                                            ],
+                                            "hour24": true,
+                                            "decimals": 0
                                         }
-                                    ],
-                                    "hour24": true,
-                                    "decimals": 0
-                                }
-                            ]
-                        },
-                        {
-                            "type": "horizontal-stack",
-                            "cards": [
+                                    ]
+                                },
                                 {
-                                    "type": "custom:mini-graph-card",
-                                    "entities": [
+                                    "type": "horizontal-stack",
+                                    "cards": [
                                         {
-                                            "entity": "sensor.valve_bagno_temperature",
-                                            "name": "Bagno"
-                                        }
-                                    ],
-                                    "name": "Bagno",
-                                    "hours_to_show": 24,
-                                    "points_per_hour": 1,
-                                    "show": {
-                                        "name": true,
-                                        "state": true
-                                    },
-                                    "line_width": 5,
-                                    "color_thresholds": [
-                                        {
-                                            "value": 16,
-                                            "color": "#4a90e2"
+                                            "type": "custom:mini-graph-card",
+                                            "entities": [
+                                                {
+                                                    "entity": "sensor.valve_bagno_temperature",
+                                                    "name": "Bagno"
+                                                }
+                                            ],
+                                            "name": "Bagno",
+                                            "hours_to_show": 24,
+                                            "points_per_hour": 1,
+                                            "show": {
+                                                "name": true,
+                                                "state": true
+                                            },
+                                            "line_width": 5,
+                                            "color_thresholds": [
+                                                {
+                                                    "value": 16,
+                                                    "color": "#4a90e2"
+                                                },
+                                                {
+                                                    "value": 19,
+                                                    "color": "#ffbd00"
+                                                },
+                                                {
+                                                    "value": 23,
+                                                    "color": "#ee7c3a"
+                                                }
+                                            ],
+                                            "hour24": true,
+                                            "decimals": 0
                                         },
                                         {
-                                            "value": 19,
-                                            "color": "#ffbd00"
-                                        },
-                                        {
-                                            "value": 23,
-                                            "color": "#ee7c3a"
+                                            "type": "custom:mini-graph-card",
+                                            "entities": [
+                                                {
+                                                    "entity": "sensor.valve_studio_temperature",
+                                                    "name": "Studio"
+                                                }
+                                            ],
+                                            "name": "Studio",
+                                            "hours_to_show": 24,
+                                            "points_per_hour": 1,
+                                            "show": {
+                                                "name": true,
+                                                "state": true
+                                            },
+                                            "line_width": 5,
+                                            "color_thresholds": [
+                                                {
+                                                    "value": 16,
+                                                    "color": "#4a90e2"
+                                                },
+                                                {
+                                                    "value": 19,
+                                                    "color": "#ffbd00"
+                                                },
+                                                {
+                                                    "value": 23,
+                                                    "color": "#ee7c3a"
+                                                }
+                                            ],
+                                            "hour24": true,
+                                            "decimals": 0
                                         }
-                                    ],
-                                    "hour24": true,
-                                    "decimals": 0
+                                    ]
                                 },
                                 {
-                                    "type": "custom:mini-graph-card",
-                                    "entities": [
-                                        {
-                                            "entity": "sensor.valve_studio_temperature",
-                                            "name": "Studio"
-                                        }
-                                    ],
-                                    "name": "Studio",
-                                    "hours_to_show": 24,
-                                    "points_per_hour": 1,
-                                    "show": {
-                                        "name": true,
-                                        "state": true
-                                    },
-                                    "line_width": 5,
-                                    "color_thresholds": [
-                                        {
-                                            "value": 16,
-                                            "color": "#4a90e2"
-                                        },
-                                        {
-                                            "value": 19,
-                                            "color": "#ffbd00"
-                                        },
+                                    "type": "horizontal-stack",
+                                    "cards": [
                                         {
-                                            "value": 23,
-                                            "color": "#ee7c3a"
+                                            "type": "custom:mini-graph-card",
+                                            "entities": [
+                                                {
+                                                    "entity": "sensor.valve_camera_da_letto_temperature",
+                                                    "name": "Camera"
+                                                }
+                                            ],
+                                            "name": "Camera",
+                                            "hours_to_show": 24,
+                                            "points_per_hour": 1,
+                                            "show": {
+                                                "name": true,
+                                                "state": true
+                                            },
+                                            "line_width": 3,
+                                            "color_thresholds": [
+                                                {
+                                                    "value": 16,
+                                                    "color": "#4a90e2"
+                                                },
+                                                {
+                                                    "value": 19,
+                                                    "color": "#ffbd00"
+                                                },
+                                                {
+                                                    "value": 23,
+                                                    "color": "#ee7c3a"
+                                                }
+                                            ],
+                                            "hour24": true,
+                                            "decimals": 0
                                         }
-                                    ],
-                                    "hour24": true,
-                                    "decimals": 0
+                                    ]
                                 }
                             ]
                         },
                         {
-                            "type": "horizontal-stack",
+                            "type": "vertical-stack",
                             "cards": [
                                 {
-                                    "type": "custom:mini-graph-card",
-                                    "entities": [
-                                        {
-                                            "entity": "sensor.valve_camera_da_letto_temperature",
-                                            "name": "Camera"
-                                        }
-                                    ],
-                                    "name": "Camera",
-                                    "hours_to_show": 24,
-                                    "points_per_hour": 1,
-                                    "show": {
-                                        "name": true,
-                                        "state": true
+                                    "type": "custom:button-card",
+                                    "name": "Temperatura Esterna",
+                                    "label": "Shelly",
+                                    "layout": "name_state",
+                                    "show_state": false,
+                                    "show_name": true,
+                                    "show_label": false,
+                                    "show_icon": false,
+                                    "show_entity_picture": false,
+                                    "styles": {
+                                        "card": [
+                                            {
+                                                "background-color": "transparent"
+                                            },
+                                            {
+                                                "box-shadow": "0px 0px 0px 0px."
+                                            }
+                                        ],
+                                        "entity_picture": [
+                                            {
+                                                "width": "15%"
+                                            }
+                                        ]
                                     },
-                                    "line_width": 3,
-                                    "color_thresholds": [
-                                        {
-                                            "value": 16,
-                                            "color": "#4a90e2"
-                                        },
-                                        {
-                                            "value": 19,
-                                            "color": "#ffbd00"
-                                        },
-                                        {
-                                            "value": 23,
-                                            "color": "#ee7c3a"
-                                        }
-                                    ],
-                                    "hour24": true,
-                                    "decimals": 0
-                                }
-                            ]
-                        },
-                        {
-                            "type": "horizontal-stack",
-                            "cards": [
+                                    "view_layout": {
+                                        "grid-area": "header"
+                                    }
+                                },
                                 {
-                                    "type": "custom:mini-graph-card",
-                                    "entities": [
+                                    "type": "horizontal-stack",
+                                    "cards": [
                                         {
-                                            "entity": "sensor.temperatura_balcone_temperature",
-                                            "name": "Balcone"
-                                        }
-                                    ],
-                                    "name": "Balcone",
-                                    "hours_to_show": 24,
-                                    "points_per_hour": 1,
-                                    "show": {
-                                        "name": true,
-                                        "state": true
-                                    },
-                                    "line_width": 5,
-                                    "color_thresholds": [
-                                        {
-                                            "value": 16,
-                                            "color": "#4a90e2"
-                                        },
-                                        {
-                                            "value": 19,
-                                            "color": "#ffbd00"
+                                            "type": "custom:mini-graph-card",
+                                            "entities": [
+                                                {
+                                                    "entity": "sensor.temperatura_balcone_temperature",
+                                                    "name": "Balcone"
+                                                }
+                                            ],
+                                            "name": "Balcone",
+                                            "hours_to_show": 24,
+                                            "points_per_hour": 1,
+                                            "show": {
+                                                "name": true,
+                                                "state": true
+                                            },
+                                            "line_width": 5,
+                                            "color_thresholds": [
+                                                {
+                                                    "value": 16,
+                                                    "color": "#4a90e2"
+                                                },
+                                                {
+                                                    "value": 19,
+                                                    "color": "#ffbd00"
+                                                },
+                                                {
+                                                    "value": 23,
+                                                    "color": "#ee7c3a"
+                                                }
+                                            ],
+                                            "hour24": true,
+                                            "decimals": 0
                                         },
                                         {
-                                            "value": 23,
-                                            "color": "#ee7c3a"
+                                            "type": "custom:mini-graph-card",
+                                            "entities": [
+                                                {
+                                                    "entity": "sensor.temperatura_veranda_temperature",
+                                                    "name": "Veranda"
+                                                }
+                                            ],
+                                            "name": "Veranda",
+                                            "hours_to_show": 24,
+                                            "points_per_hour": 1,
+                                            "show": {
+                                                "name": true,
+                                                "state": true
+                                            },
+                                            "line_width": 5,
+                                            "color_thresholds": [
+                                                {
+                                                    "value": 16,
+                                                    "color": "#4a90e2"
+                                                },
+                                                {
+                                                    "value": 19,
+                                                    "color": "#ffbd00"
+                                                },
+                                                {
+                                                    "value": 23,
+                                                    "color": "#ee7c3a"
+                                                }
+                                            ],
+                                            "hour24": true,
+                                            "decimals": 0
                                         }
-                                    ],
-                                    "hour24": true,
-                                    "decimals": 0
+                                    ]
+                                },
+                                {
+                                    "type": "custom:button-card",
+                                    "name": "Umidit\u00e0 Esterna",
+                                    "label": "Shelly",
+                                    "layout": "name_state",
+                                    "show_state": false,
+                                    "show_name": true,
+                                    "show_label": false,
+                                    "show_icon": false,
+                                    "show_entity_picture": false,
+                                    "styles": {
+                                        "card": [
+                                            {
+                                                "background-color": "transparent"
+                                            },
+                                            {
+                                                "box-shadow": "0px 0px 0px 0px."
+                                            }
+                                        ],
+                                        "entity_picture": [
+                                            {
+                                                "width": "15%"
+                                            }
+                                        ]
+                                    },
+                                    "view_layout": {
+                                        "grid-area": "header"
+                                    }
                                 },
                                 {
-                                    "type": "custom:mini-graph-card",
-                                    "entities": [
+                                    "type": "horizontal-stack",
+                                    "cards": [
                                         {
-                                            "entity": "sensor.temperatura_veranda_temperature",
-                                            "name": "Veranda"
-                                        }
-                                    ],
-                                    "name": "Veranda",
-                                    "hours_to_show": 24,
-                                    "points_per_hour": 1,
-                                    "show": {
-                                        "name": true,
-                                        "state": true
-                                    },
-                                    "line_width": 5,
-                                    "color_thresholds": [
-                                        {
-                                            "value": 16,
-                                            "color": "#4a90e2"
-                                        },
-                                        {
-                                            "value": 19,
-                                            "color": "#ffbd00"
+                                            "type": "custom:mini-graph-card",
+                                            "entities": [
+                                                {
+                                                    "entity": "sensor.temperatura_balcone_humidity",
+                                                    "name": "Balcone"
+                                                }
+                                            ],
+                                            "name": "Balcone",
+                                            "hours_to_show": 24,
+                                            "points_per_hour": 1,
+                                            "show": {
+                                                "name": true,
+                                                "state": true
+                                            },
+                                            "line_width": 5,
+                                            "color_thresholds": [
+                                                {
+                                                    "value": 40,
+                                                    "color": "#4a90e2"
+                                                },
+                                                {
+                                                    "value": 60,
+                                                    "color": "#ffbd00"
+                                                },
+                                                {
+                                                    "value": 80,
+                                                    "color": "#ee7c3a"
+                                                }
+                                            ],
+                                            "hour24": true,
+                                            "decimals": 0
                                         },
                                         {
-                                            "value": 23,
-                                            "color": "#ee7c3a"
+                                            "type": "custom:mini-graph-card",
+                                            "entities": [
+                                                {
+                                                    "entity": "sensor.temperatura_veranda_humidity",
+                                                    "name": "Veranda"
+                                                }
+                                            ],
+                                            "name": "Veranda",
+                                            "hours_to_show": 24,
+                                            "points_per_hour": 1,
+                                            "show": {
+                                                "name": true,
+                                                "state": true
+                                            },
+                                            "line_width": 5,
+                                            "color_thresholds": [
+                                                {
+                                                    "value": 40,
+                                                    "color": "#4a90e2"
+                                                },
+                                                {
+                                                    "value": 60,
+                                                    "color": "#ffbd00"
+                                                },
+                                                {
+                                                    "value": 80,
+                                                    "color": "#ee7c3a"
+                                                }
+                                            ],
+                                            "hour24": true,
+                                            "decimals": 0
                                         }
-                                    ],
-                                    "hour24": true,
-                                    "decimals": 0
+                                    ]
                                 }
                             ]
                         }
                     ]
+                },
+                {
+                    "icon": "mdi:weather-sunny",
+                    "id": "meteo",
+                    "title": "Meteo",
+                    "badges": [
+                        {
+                            "entity": "sun.sun"
+                        }
+                    ],
+                    "cards": [
+                        {
+                            "entity": "weather.meteo_savona",
+                            "type": "weather-forecast"
+                        },
+                        {
+                            "entity": "weather.meteo_morgex",
+                            "type": "weather-forecast"
+                        }
+                    ]
                 }
             ]
         }