compare more-info manipulation in custom-ui #98
Replies: 5 comments 34 replies
-
Hi @Mariusthvdb, |
Beta Was this translation helpful? Give feedback.
-
right, now 2023.9 beta has landed my more-info update custom code no longer works. ive separated the code into a dedicated custom card for debugging purposes:
which works as expected in 2023.8.4 I even had hopes changing that constant (dom path) in MoreInfoInfo to
and start from there, but that doesnt work in 2023.8 either. Would have been nicer, and more robust. Im out of my league here, so if you could see what's wrong in this code reaching attributes in the more-info panels on regular entities and groups (because was the challenge before) I'd still be very appreciative ... Didnt test whether Kiosk mode worked ok in 2023.9 beta, because I had to downgrade seeing system blocking issues. |
Beta Was this translation helpful? Give feedback.
-
wow thanks! short: set a customization this was originally introduced in custom-ui, to hide the attribute you can see what is does at https://github.com/Mariusthvdb/custom-ui/blob/master/EXAMPLES.md#hide-attributes
or like I do on all individual entities that get a template:
(this shows the famous icon_color option, which is the other main feature of custom-ui) hope this is clear, if not, please let me know. |
Beta Was this translation helpful? Give feedback.
-
can finally confirm succes in the 2023.9b05 update. all more-info's are nicely updated, and attributes are hidden will update resources hopefully tomorrow! |
Beta Was this translation helpful? Give feedback.
-
might I ping you on an issue I now found:
didnt spot this when testing, and havent yet found a reason/action for it to occur but maybe you understand point blank what this means? opened an issue in the repo myself Mariusthvdb/custom-ui#105 |
Beta Was this translation helpful? Give feedback.
-
HI,
please let me suggest some form of mutual checks ;-)
in custom-ui, we ve been handling the more-info options for a very long time. More specifically, by means of a
hide_attributes
option in customize, and have that change the contents of the more-info attributes list in the dropdown.This was introduced to not only hide specific attributes, but also to hide the template that custom-ui adds to entities.
It has been a challenge to have that code update with the HA Frontend changes, as you are aware....
Since I am not a dev at all, and merely try to keep that JS script alive, I was hoping you could have a look at it, and see if some code could be change, to make it behave better. The dom paths and traversing those to the more-info panels, and group more info panels are of special interest in my custom-ui.
Currently it works nicely. with 1 big caveat and 1 smaller:
the smaller:
one can see the script in action: upon clicking the dropdown, one can see the box be made smaller and hiding the attributes, from an initial bigger dropdown.
the bigger:
if, because of the hide_attributes, no attributes are left to show, the dropdown is still displayed in the more-info, albeit with an empty box. Ive tried to prevent that, by adding some logic to the core attributes filter, but havent been able to manage that.
Ive even had some brief chat with the core frontend devs on this, but I cant make it happen see Mariusthvdb/custom-ui#52
I would appreciate you having a look enormously, and would love to get any feedback you might have.
update
I've separated the function into a dedicated resource here: https://github.com/Mariusthvdb/custom-ui/blob/master/update_more_info.js
Beta Was this translation helpful? Give feedback.
All reactions