PSA: You can find any entity in developer tools, states page

I’m creating this post to raise awareness for newcomers because it seems that many people have issues finding entities on their system.

If you are not finding an entity in the entity list in your devices or integration, chances are you can find it in the developer tools → states page. In fact, most YAML configured entities will show up here, but will not show up in an integration page.

Open your Home Assistant instance and show your state developer tools.

On this page, you can filter your entities

Once you find your entity… you can perform any edit on it by clicking the :information_source: icon.

image

This icon will bring up the normal settings page where you can view, disable, delete, or edit the entity using the tabs at the top of the window.

46 Likes

In dev-tools press e on your keyboard and all entities show up.

2 Likes

Why not “fix” that to give a better experience to new comers? I.e. ensure you don’t need to go to something called “Developer Tools” in order to see all the entities in your system. This suggestion is purely about increasing appeal and reducing usability friction. Otherwise checking in Dev Tools is admittedly pretty simple.

4 Likes

You can see all entities in every entity list. 9 times out of 10 a new user doesn’t understand the difference between an entity and a device and they are just looking at devices.

This is something that won’t change until all yaml integrations are moved into the UI.

2 Likes

I always thought that was what the devices and entities tabs were for after going to devices & services. That or searching for entities using the shortcut keys.

e = bring up a search bar to search for any entity
c = quick navigation, I use this a lot as there can be a lot of mouse clicks to get to one place or another

Regardless, both have helped me save a little time, hopefully it will be useful to some new users reading this as I thought it was magic when I accidentally hit the e key one day. As far as I know this only works in a browser and not the mobile app but please let me know if I am mistaken.

5 Likes

The e shortcut opens up the same screen as the :mag: at the top-right of a dashboard. Thus, on mobile, use the top-right ... button > Search :slight_smile:

However, shortcut caveat: if your last click was on the sidebar, pressing e will focus on the Energy dashboard button, if you have that enabled :man_shrugging:
HA needs some help and improvements on the shortcut topic haha

Well I was wrong about mobile shortcuts, at least for Android. For Android (I don’t think this works with iOS, Google it, there may be a different way). When you have the HA companion app open swipe down with 3 fingers and it brings up the quick navigation shortcut. If you do 2 backspaces, it turns into the entity searchbar. Not the most convenient shortcut but it works great if you need to jump from one area to the next without 5 plus clicks.

1 Like

Thank you. Is there anyway to export the entire entity list. Or some way to get to just the entity list so that I can copy paste it? I want to feed the information into GPTs new memory feature so I can create automations on prompt without having to provide the entity names.

Paste this into the template editor under the dev tools and copy the output.

{{ states | map(attribute='entity_id') | list }}
1 Like

It would nice to have a device column where we can filter in dev-tools

1 Like

Quick question, why are themes and add ons considered a device? At least they show up in setting > drives and integrations> then clicking on the devices tab. I understand that possibly everything that is installed has to exist in HA has to be an entity or device. Just seems odd that you have custom themes installed in HACs listed as devices. On the other hand there are always more entities than devices so putting them there adds to that. Just curious.

Also, about the android shortcut. Simply press the “>” with no quotes to switch to the non entity filter. Not sure how I missed that when originally posting above.

They aren’t. That page only contains integrations. Integrations create devices, entities, and services.

1 Like

I meant when clicking the devices tab (at the bottom of the android app) .It’s at the top in a desktop browser, along with entities and helpers. It clearly has add-ons, custom cards and custom themes from HAC’s listed when no filter is applied in the Devices tab. Not the main integration page you go to after clicking on devices and services (I guess technically actions now) from the main settings menu.

Ah, yes. So what’s going on there is that Hacks creates a device per extension and that device is used to host the update entity that lets you update that extension.

1 Like

Awesome!!! Thank you!

1 Like

This is way overly complicated than what it needs to be

Please do tell us how you could do it simpler than clicking Developer Tools → States or Settings → Devices & Services → Entities?

I am referring more to, when you start building automations in the gui and go back later to review you often see things like this:
device_id: 75887b41474e0a17ef4c7a528d3c6b11
entity_id: fdf1f4f6c68df0f6cbad0e32aed127b3

Going to “Developer Tools → States or Settings → Devices & Services → Entities” and looking at the device, there is no device or entity id that matches this. All I see is the entity id for the name I set, not the alphanumerical identification ids.

To make it easier, first would be to understand what these *_ids: really mean. I would love to be able to search for the ID (using e in the developer tools section) and paste in either and the system tell me which device it is.

There is absolutely no way we could have interpreted that meaning from your post.

Those ids are there to enable easier replacing of devices, but yes I avoid them as they are meaningless to me. I use entity ids and if I need to replace a device I do this: Adding new devices and replacing devices

2 Likes