thomasloven / lovelace-auto-entities

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

light entities created by a Helper are not picked up automatically by auto-entities #462

Open lblando opened 3 months ago

lblando commented 3 months ago

Disclaimer: I am not sure if this is an issue, or if it is the expected behavior. I have searched, but I cannot find the answer.

The Issue I have a switch, for example: "Office Closet". It controls a light, and I want to treat all lights the same way. Thus, I am using a helper function, the one built-in within HA, to turn this switch into a light entity. Notice the last row in the table below for this specific helper: image

For clarity, the definition of this helper is as vanilla as it comes, with all the default choices and nothing else, as you can see below: image

It seems to be working correctly, as the switch entity is hidden by default, and the light entity is the one remaining, as you can see below: image

However, when I am using Auto Entities, I add all lights, all switches, and all fans; while excluding the light entities for the LED indicators on some of the light switches. image

And this yields: image

Notice that the light "Office Closet" is missing.

And yet, if you explicitly add it, it shows, as you can see in the snippet below (notice the addition of line #13 and its result): image

Which yields... image

My question: Did I miss a configuration of auto-entities to enable it to both "ignore hidden entities" and also "pick up helper-created entities"?

Thanks in advance for your help.

d1egoaz commented 6 days ago

I had a similar issue, it turned out to be a browser cache issue.

Try this: https://github.com/thomasloven/lovelace-auto-entities/pull/277#issuecomment-1374898458