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

Filter stateful scenes by label #179

Closed
teetow opened this issue Jan 6, 2025 · 1 comment
Closed

Filter stateful scenes by label #179

teetow opened this issue Jan 6, 2025 · 1 comment

Comments

@teetow
Copy link

teetow commented Jan 6, 2025

As far as I can tell, a stateful scene switch can be assigned a label in the UI, but the data doesn't seem to show up, nor does it seem possible to filter on label in cards like auto-entities. Would be helpful if it could.

@hugobloem
Copy link
Owner

hugobloem commented Jan 25, 2025

Hi, this does seem to work for me. Either label the device or the switch entity, and then use the following auto-entities configuration:

type: custom:auto-entities
card:
  type: grid
  square: false
  columns: 2
card_param: cards
filter:
  include:
    - label: Stateful Scene
      options:
        type: tile
        tap_action:
          action: toggle
  exclude:
    - entity_category: config
    - entity_category: diagnostic
sort:
  method: last_changed
  reverse: true
  numeric: true
  count: 6

You might need to reload your browser cache (ctrl+F5) or restart Home Assistant.

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

No branches or pull requests

2 participants