Add new design to thermostat card (#18709)

* Add new design for thermostat card

* Add feature to thermostat card

* Fix margin

* Add current

* use big number component

* Add current

* Fix translations

* Add theme and name options

* Reduce margin on small card

* Fix types

* Add hvac mode to default dashboard

* Don't put feature full size

* Full width for features

* Improve design on small screen
This commit is contained in:
Paul Bottein
2023-11-22 14:42:42 +01:00
committed by GitHub
parent 1526209f82
commit c787c920fc
16 changed files with 583 additions and 801 deletions

View File

@@ -141,6 +141,12 @@ export const computeCards = (
const cardConfig: ThermostatCardConfig = {
type: "thermostat",
entity: entityId,
features: [
{
type: "climate-hvac-modes",
hvac_modes: states[entityId]?.attributes?.hvac_modes,
},
],
};
cards.push(cardConfig);
} else if (domain === "humidifier") {