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

nested call #454

Open
NYFB8888 opened this issue Jul 4, 2024 · 1 comment
Open

nested call #454

NYFB8888 opened this issue Jul 4, 2024 · 1 comment

Comments

@NYFB8888
Copy link

NYFB8888 commented Jul 4, 2024

I wonder is it possible to use auto-entities inside auto-entities?

`type: custom:auto-entities
card:
type: custom:auto-entities
card:
type: entities
title: Printer Toner Usage
filter:
include:
- name: 'toner'
exclude: null
sort:
method: friendly_name
show_empty: true

title:Printer Statistic
filter:
include:
- device: 'MFC-L3750CDW'
exclude: null
sort:
method: friendly_name
show_empty: true
`
I want to show sensor info associated with toner, drum etc. usage and I thought to use your concept but without success. After implementing the code above, I got information from all the printer's sensors.
Can you suggest a solution to my request?

@ildar170975
Copy link

ildar170975 commented Jul 10, 2024

  1. The code you posted is unformatted & cannot be analysed. Can't you see it?
  2. A simple example of "nested" cards:
type: custom:auto-entities
card:
  type: entities
filter:
  include:
    - domain: group
      options:
        type: custom:auto-entities
        card:
          type: entities
        filter:
          include:
            - group: this.entity_id
  1. Since this is not a bug report or FR - suggest to close the issue & then ask similar questions in a dedicated Community thread.

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