-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Sort with group by? #135
Comments
@MindFreeze I'm thinking of trying to take on this feature and curious if you have input. It would be helpful if the
// Line 228
const boxes: Box[] = section.entities
.filter(entityConf => {
const { min_state } = this.config;
// remove empty entity boxes
if (entityConf.type === 'remaining_parent_state') {
return this.connectionsByChild.get(entityConf)?.some(c => c.state && c.state >= min_state);
}
if (entityConf.type === 'remaining_child_state') {
return this.connectionsByParent.get(entityConf)?.some(c => c.state && c.state >= min_state);
}
const { state } = this._getMemoizedState(entityConf);
return state && state >= min_state;
})
... Still understanding your code a bit, but if you have input on where the parent info could be pulled and assigned to a new field on |
Skip the |
@KidA001 I found it easier to just implement it. It will be part of 1.16.0 |
Hah, I was going to say it sounds like you know exactly what to do. These HA plugins often get hoarded with feature requests so I try to offer my support when I'm making one myself. Thanks for working on this! |
@MindFreeze how do I turn this off? It's completely jacked all my charts - I sort by entity value asc - and its not working correctly. |
This is my breaking change, sir, and a regression as not listed as breaking. Please revert. or provide override. |
Is your feature request related to a problem? Please describe.
I'm using the sort feature and though I do want to sort, it makes it difficult to understand when the lines from a previous parent cross with another. See my screenshot below.
Describe the solution you'd like
It would be great if there was a way to sort and group by the previous parent. For instance in my screenshot above I'd like to sort the Main House and Studio/Garage respectively, so that the lines from the children don't cross.
Describe alternatives you've considered
Maybe there is already a way to do this that I'm not familiar with. Thanks for your work, this is an awesome tool
The text was updated successfully, but these errors were encountered: