thomasloven / lovelace-auto-entities

🔹Automatically populate the entities-list of lovelace cards
MIT License
1.24k stars 113 forks source link

Is the integration: Times of the day (tod) - supported? #261

Closed cinghialino closed 2 years ago

cinghialino commented 2 years ago

Hello, I have a few binary_sensors made with the integration tod https://www.home-assistant.io/integrations/tod/

but when I'm using the auto-entities card set up as example, it doesn't seem to find any sensor on

type: custom:auto-entities
filter:
  include:
    - integration: tod
  exclude: []
show_empty: true
sort:
  method: last_changed
card:
  show_name: true
  show_icon: true
  show_state: true
  type: glance
  title: Times of the Day

is this integration supported?

ildar170975 commented 2 years ago

Try using this:

    filter:
      template: '{{integration_entities("tod") }}'
cinghialino commented 2 years ago

This worked, thank you. Still wondering about the other way.

type: custom:auto-entities
filter:
  template: '{{integration_entities("tod") }}'
  exclude: 
    - state: off
show_empty: true
sort:
  method: last_changed
card:
  show_name: true
  show_icon: true
  show_state: true
  type: glance
  title: Times of the Day 
ildar170975 commented 2 years ago

Well, the "sun" integration does not work even with the "integration_entities" way. Probably some integrations are "special"...

thomasloven commented 2 years ago

The integration filter only works for entities that are in the entity registry - which is mainly used by integrations configured through the GUI. That's a limitation in Home Assistant at this point, unfortunately.