question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature]: Add repeated card based on wildcards

See original GitHub issue

Is your feature request related to a problem?

My problem is that I add a lot of the same kind of card, e.g. lots of light cards, that require a lot of repetitive work.

Describe the solution you’d like

I want to be able to pick one card type, e.g. light or template, enter some wild card criterias to filter out entities (e.g. light.downstair_*) and generate one card for each of the entities from the filter. I imagine the output would correspond to a table view, so number of columns should be configurable. Information about each entity must be available via a variable (so the selected card can be customizable based on each filtered entity).

Describe alternatives you’ve considered

Manually add cards for each entity or copy paste yaml code. Both solutions are cumbersome and error prone.

Additional context

An improvement would be to treat this card as a vertical stack, allowing multiple cards to be selected (with individual filters for each card) and allowing global sorting of all generated cards. This would make it possible to filter out things like all lights, switches and vacuums and display them “in order” without introducing potential empty spaces like would happen if multiple cards (of this type) are added.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
postlundcommented, Aug 22, 2022

@fanuch Yes, sorry, I will close this issue. Seems to work pretty good with auto-entities 👍 Maybe something to add as an example.

0reactions
fanuchcommented, Aug 22, 2022

issues: sometimes the combination fails to load

Would be better to open it’s own issue rather than comment here to keep the conversation focused @mag1024.

@postlund can you close if your question has been answered?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Examples of wildcard characters - Microsoft Support
Wildcards are special characters that can stand in for unknown characters in a text value and are handy for locating multiple items with...
Read more >
Pattern matching and wildcards | Trello - Atlassian Support
Using wildcards in command triggers · {*}: this wildcard will match any text with blank spaces. Typically, it is used to match the...
Read more >
Wildcard Pattern Matching - GeeksforGeeks
Given a text and a wildcard pattern, implement wildcard pattern matching algorithm that finds if wildcard pattern is matched with text.
Read more >
6 Ways to Use Wildcards Efficiently in AutoCAD
Application of wildcard characters with different tools and commands in AutoCAD.
Read more >
Excel Wildcard Characters - Why Aren't You Using These?
Wildcards are special characters that can take any place of any character (hence the name – wildcard). There are three wildcard characters in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found