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

Feature Request show helpers not used in any automation or lovelace #118

Open
fcortijos opened this issue Feb 23, 2024 · 7 comments
Open
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@fcortijos
Copy link

Please consider including this feature:
show the helpers (input_boolean, input_button, input_datetime, input_number, input_select, input_text, sensor, timer, etc.) that are not used in any automation or lovelace.
tks

@ildar170975
Copy link

ildar170975 commented Feb 23, 2024

Why not using an already availably possibility of filtering entities by entity_id?
And what makes automations so special, what about template sensors & others?

@fcortijos
Copy link
Author

Sorry, I didn't understand what means " filtering entities by entity_id" in this context.
What I'm looking for is a cross reference among Helpers and automatition and lovelace.
Sensors and templates sensors could be also included.
Those can be a good opportunity to clean a messy instalation after 3 years of constantly changes, where I created entities that are not being used anymore.

Tks

@ildar170975
Copy link

@fcortijos
Copy link
Author

You did not understand my request. But that's ok, I coded the solution and solved the problem.

@jazzyisj
Copy link

@fcortijos - I understand what you were asking for. The exact opposite of what watchman does - entities that exist but aren't referenced anywhere rather entities that are referenced that don't exist (which is what watchman does).

For the UI "Unused entities" on the dashboard menu is supposed to fill that need but it isn't very useful because you can't filter it by domain or anything else (maybe a good core FR?). That wouldn't help you with helpers or template entities) you have created that aren't referenced in automations or scripts though. It's a good idea.

I'm curious how you solved the problem?

@fcortijos
Copy link
Author

fcortijos commented Apr 29, 2024

@jazzyisj - I'm glad that you understood my proposal. My solution was quick and dirty, not for general use. A simple python program that reads the automations.yaml e lovelace files looking for my helpers and templates entities. I print how many times each entity was found in these files, if none, that is an "issue".
Tks

@dummylabs
Copy link
Owner

Duplicate of #60 and #26

@dummylabs dummylabs added the enhancement New feature or request label Nov 20, 2024
@dummylabs dummylabs added the duplicate This issue or pull request already exists label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants