Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add device subviews #155

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mwasilak
Copy link

Add support for device subviews. User can add subviews for selected devices by specifying them in configuration. For such devices only specified entity cards are displayed in Area subview, other cards are accessible on newly added device subview.

Motivation:

  • avoiding clutter on area subviews
  • hiding rarely used functionalities (z-wave pings, obscure options, power meters)

Add support for device subviews. User can add subviews for selected devices by specifying them in configuration.
For such devices only specified entity cards are displayed in Area subview, other cards are accessible on newly added
device subview.

Motivation:
- avoiding clutter on area subviews
- hiding rarely used functionalities (z-wave pings, obscure options, power meters)
@AalianKhan AalianKhan requested a review from DigiLive February 16, 2025 17:27
Copy link
Owner

@AalianKhan AalianKhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your contribution! It really improves the readability of the overall Dashboard.

To keep the auto theme going. Should devices with more than 4 or so entities be automatically turned into devices with subview? and have an option if the user wants it to be seperate? What do you think @DigiLive?

@@ -70,6 +72,26 @@ class MushroomStrategy extends HTMLTemplateElement {
}
}

// Create subviews for each device with config in devices section.
const devicesWithSubviews = Helper.strategyOptions.devices ?? {};
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Card Options allows you to list device ids for card configuration. Instead of creating a new option, it is better to extend CustomCardConfig and add the deviceSubView option to it.

@DigiLive
Copy link
Collaborator

I didn't had the opportunity to look into this PR.

However, since it conflicts with the main branch, I'd suggest to put it on hold until #164 and #176 are closed.
Then update this branch to resolve the conflicts with the main branch and from there start evaluating this PR.

@DigiLive DigiLive added this to the Release v2.3.0 milestone Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants