vscode-home-assistant icon indicating copy to clipboard operation
vscode-home-assistant copied to clipboard

FR: Mark non-existing entities

Open andriej opened this issue 5 years ago • 17 comments
trafficstars

Lately I've ran in "let's clean up some things" mood and I've found out that my .yaml's contain a lot of non-existant (anymore) entities. Example? Recorder's include/exclude list of particular entities - some of them are like 30 versions of HA old.

Would be great feature to have those entities that does not exist in HA marked-down/underlined, so any further edit of files will not leave them behind.

andriej avatar Feb 21 '20 09:02 andriej

Yeah, such feature is missing a lot.

bieniu avatar Feb 21 '20 09:02 bieniu

It's indeed an awesome idea I could use myself as well! Thanks! I'm not sure if I can/will build this in the next couple of weeks but I leave the issue open as I really want to have this and build it some time!

keesschollaart81 avatar Mar 08 '20 12:03 keesschollaart81

came here to request the same. I think .storage/core.{entity,device}_registry holds the relevant information

phixion avatar Apr 05 '20 14:04 phixion

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 04 '20 18:06 stale[bot]

I think it's still worth keeping open :-)

andriej avatar Jun 04 '20 20:06 andriej

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 04 '20 05:08 stale[bot]

Still :-)

andriej avatar Aug 04 '20 06:08 andriej

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 03 '20 08:10 stale[bot]

Still valid

andriej avatar Oct 04 '20 16:10 andriej

@keesschollaart81 thank you

phixion avatar Oct 09 '20 23:10 phixion

Is there any activity or update on this? Feels like one of the most relevant missing features for the otherwise great extension. Thanks

ThomDietrich avatar Jan 20 '22 12:01 ThomDietrich

@ThomDietrich Nope! Feel free to contribute it.

frenck avatar Jan 20 '22 12:01 frenck

JS/TypeScript is my weak spot 🙈 zero experience but Hey, just yet another programming language 😄

Would you be able to share how difficult this task might be and which risks you see? Would be useful for me and maybe for anyone else listening

ThomDietrich avatar Jan 20 '22 13:01 ThomDietrich

Would you be able to share how difficult this task might be and which risks you see?

I am not able to judge that.

frenck avatar Jan 20 '22 13:01 frenck

I was looking at this issue and would like to help implementing this. Once we finalize #1880 to a mergeable form, it should be fairly easy to access entities on the extension level. It even might be a contribution point on the language server side (diagnostics?).

Implementation-wise: When onDocumentChange event is triggered, we'll need to iterate over all entity-like strings in the opened document, and then compare them with a list of available/subscribed entities. If a match is not included in the list, return a warning.

kubawolanin avatar Jan 28 '22 12:01 kubawolanin

Hey Kuba, so delighted to see you again after all these years! Sounds like a plan 🚀 Thanks for #1880 which looks great and for considering the ticket here.

ThomDietrich avatar Jan 28 '22 15:01 ThomDietrich

I made some progress today 💪🏻 image

kubawolanin avatar Jan 28 '22 17:01 kubawolanin