Make the Components page searchable

Would be nice to search for components. The list is getting pretty big and it takes time to browse them all.

1 Like
  1. Go to page and reveal all components in list
    https://home-assistant.io/components/#all

  2. Press Ctrl + F in your favorite browser

  3. Voila - searchable!

1 Like

That’s how I do it! :smile:

Except I have to use Cmd + F under macOS.

1 Like

Thanks; I don’t have a mac so I’m glad you added that!

In addition I have a bookmark with this URL and I use it to search the whole site:

https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=site%3A%20https%3A%2F%2Fhomeassistant.io

1 Like

And for those of us that don’t like using google

https://duckduckgo.com/?q=site%3Awww.home-assistant.io

1 Like

Reopened post for extra comments by @GraysonPeddie

According to this article:

Not many people know how to use Ctrl+F to search for things in the web page. In cases when people are searching for components, those not knowing Ctrl+F would simply use a mouse to point to a search box/magnifying glass, click in it, type a keyword for a component, and click in the magnifying glass to filter the list of components.

So for anyone not familiar with using the web browser’s Find feature, why not implement the search feature for finding the list of components.

Well, that article is from over 5 years ago, so the stat doesn’t really mean much now. Granted, ctrl+f has been a basic shortcut for decades (same with ctrl+c, ctrl+x, and ctrl+v, but people don’t know those either).

Either way, I’ll make the argument that it should have a search functionality because it isn’t that hard to implement in javascript if you used the right library (I use https://vestride.github.io/Shuffle/ on my own personal setup that includes searching) and it is not so easy to search on a mobile device (phone or tablet). And while you won’t be configuring HA on a mobile device, you may be trying to reference the website with a mobile device while editing on a desktop.

However, the website components page sucks for mobile, so fixing that is probably just as important.

The reason why I mentioned the article is because my family does not use keyboard shortcuts. There may be a whole lot of people out there who did not know that Ctrl+F existed for decades in web browsers.

But you are right. I should have noted it is 5 years ago, but it might still be relevant today.

Was introduced.

4 Likes