Compare commits

...

3 Commits

Author SHA1 Message Date
renovate[bot]
b6776336af Update Node.js to v24 2025-11-12 01:01:14 +00:00
Petar Petrov
41fbc5e44b Increase ZHA reconfiguration dialog width for details view (#27909) 2025-11-11 20:07:10 +01:00
Tobias Bieniek
3fea41eb0e Add scenes category to home dashboard area views (#27712)
This is similar to the "Automations" category that was added in 52eb3d8, but for "Scenes" this time. It is positioned after the other summary sections.
2025-11-11 11:19:02 +02:00
5 changed files with 31 additions and 3 deletions

2
.nvmrc
View File

@@ -1 +1 @@
22.21.1 24.11.1

View File

@@ -237,6 +237,6 @@
}, },
"packageManager": "yarn@4.10.3", "packageManager": "yarn@4.10.3",
"volta": { "volta": {
"node": "22.21.1" "node": "24.11.0"
} }
} }

View File

@@ -426,6 +426,10 @@ class DialogZHAReconfigureDevice extends LitElement {
return [ return [
haStyleDialog, haStyleDialog,
css` css`
ha-dialog {
--mdc-dialog-max-width: 800px;
}
.wrapper { .wrapper {
display: grid; display: grid;
grid-template-columns: 3fr 1fr 2fr; grid-template-columns: 3fr 1fr 2fr;

View File

@@ -168,6 +168,27 @@ export class HomeAreaViewStrategy extends ReactiveElement {
const summaryEntities = Object.values(entitiesBySummary).flat(); const summaryEntities = Object.values(entitiesBySummary).flat();
// Scenes section
const sceneFilter = generateEntityFilter(hass, {
domain: "scene",
entity_category: "none",
});
const scenes = areaEntities.filter(sceneFilter);
if (scenes.length > 0) {
sections.push({
type: "grid",
cards: [
computeHeadingCard(
hass.localize("ui.panel.lovelace.strategy.home.scenes"),
"mdi:palette",
"/config/scene/dashboard"
),
...scenes.map(computeTileCard),
],
});
}
// Automations section // Automations section
const automationFilter = generateEntityFilter(hass, { const automationFilter = generateEntityFilter(hass, {
domain: "automation", domain: "automation",
@@ -178,7 +199,9 @@ export class HomeAreaViewStrategy extends ReactiveElement {
// Rest of entities grouped by device // Rest of entities grouped by device
const otherEntities = areaEntities.filter( const otherEntities = areaEntities.filter(
(entityId) => (entityId) =>
!summaryEntities.includes(entityId) && !automations.includes(entityId) !summaryEntities.includes(entityId) &&
!scenes.includes(entityId) &&
!automations.includes(entityId)
); );
const entitiesByDevice: Record<string, string[]> = {}; const entitiesByDevice: Record<string, string[]> = {};

View File

@@ -6983,6 +6983,7 @@
"other_areas": "Other areas", "other_areas": "Other areas",
"unamed_device": "Unnamed device", "unamed_device": "Unnamed device",
"others": "Others", "others": "Others",
"scenes": "Scenes",
"automations": "Automations" "automations": "Automations"
}, },
"common_controls": { "common_controls": {