I would’ve liked this to work, but when I try this I receive a list of 3-4 possible entry_ids. When I swap to a different entity some of the numbers from the first list remain. I have tested a number of entity and sometimes the correct entry id is listed in the last place, sometimes not.
I personally pulled the information from a backup file as I couldn’t get to this information any other way (this includes File Editor, Studio Code Server or Samba Share beforehand. So I think your way is pulling in additional numbers besides the entry_id? Or might all of these ids be needed to reload that device?
I did do some more digging and found the the way to pull only a single entry that corresponded to that entity (ie. light/switch rather than light/switch AND power consumption):
Yeah, that can happen. 8ne device could have entities provided by different integrations, like whe a tuya wifi bulb have a device tracker from your router integration and a power entity from powercalc, as an example, all the 3 integrations would be shown.
But by the way, I’m pretty sure this will do the job in the same way:
HA is a team sport and we’re all here to learn with each other and improve
Very nice, I haven’t tried it on entities, but I know this won’t work for integrations. Still, it’s a great idea in creating an automation that would reload an entity that goes unavailable (I had issues with my Kasa smart switches going unavailable until I created an Asus aiMesh network - couldn’t get the Zigbee thing to work for the few Zigbee devices that I had, which had a constant stream of AC power)