I’m pleased to share today a project that I’m working on for few weeks : Streamline Card!
For a long time, I was using decluttering-card in my configuration, but unfortunately, the project looks unmaintained anymore.
Even if I’m willing to contribute to some projects, like I did with Bubble-Card, and with the questions left without answer, I decided to make my own version of this, with few other goodies:
A template system to ease the reusability of your components (like decluttering-card)
The support of the visibility option (new)
The support of the new section layout (new)
The support of javascript templates (new)
An UI editor! (new)
The project is still a pre-release version, so there might be some bugs left, but if you are willing to help and test, please provide me any feedback you could have.
Also, it hasn’t been accepted in HACS yet: you’ll need to make a manual install for now. The PR on HACS is here if you want to upvote!
just leaving a comment here to bump it up and giving it a bit more traction, have just replaced all my decluttering-templates with streamline-templates… which was ridiculously easy, just replace all “decluttering” with “streamline” lol
Amazing work! Would it be possible to “convert” all decluttering cards and templates to streamline by simply changing decluttering to streamline in all my codes? It seems to use identical variables.
So I replaced all lines from decluttering to streamline (was easy using ChatGPT changing like 30 YAMLs in 30 seconds :)) But I noticed performance is a lot slower and it doesn’t seem to play nicely with swipe card. Then I tested smaller by only using one streamline template and declaring that one only in my dashboard yaml.
This is a custom header I created. But even only this takes a serious performance hit compared to decluttering card. Where decluttering shows all cards instantly, streamline takes like 0,5-1 seconds. Also switching to other tabs (using navigation service calls, created my own navigation bar) it’s definitely slower switching to other tabs.
Not sure if you this feedback helps you, but in my testing, it’s sadly not up to par with decluttering performance wise right now. Perhaps it doesn’t play nicely with other cards that I used in my template (custom:button-card). Also it doesn’t play nicely with swipe card.
There is indeed a problem with swipe-card, which is going to be fixed in a next version.
For the performance issues, there is also some improvements coming, but I can’t tell if it’s going to solve you problems. I was about the same between decluttering and streamline before -so no seconds to wait like you, but next it will be about 30x faster!
I would love your smartphone_markdown_statusbar template to ensure that the gain is also here for button-card.
In any case, do not hesitate to open an issue on GitHub with the maximum info so I can try to reproduce and fix your issues!
Edit: the performance gain is available in the version 0.0.12
Thanks for this cool card.
Unfortunately I seem to have a rather odd issue.
I made this card with all kinds of mods, and it was working perfectly fine. Then I switched it over to streamline-card and I seem to have some kind of timing issue now.
The card usually looks like this:
But if I go to the edit mode and press done, it looks like this until I press F5:
I could live with the edit mode issue, but unfortunately this happens on my phone if I go to the page a second time. I can’t get it back to normal until I kill the app and start it again. Even then it will only work once.
I 've created this template and it seems to be resource hungry. My browser for home assistant page would be unresponsive and I can hear my pc fan run faster. Other browser page does not seem to be affected. Maybe the code has error but seems to be running fine. The reason I say this is because, when there is a syntax error and you refresh the frontend page, you will get an error of this block. I can see a flash error on the screen when I refresh this page. But the page loads.
Possibly this is not the most efficient way of going about it??