Is there a way to find an entity by IP address?

Hi,
I have a PIhole system in addition to the HA system. I have identified some ESP device ‘calling home’ a lot and I cant identify which device it is.

Is there a way to search through the entities by IP address and find the culprit?

Thanks
Pal

1 Like

You mean you know the IP causing the issue

option1
Open the /config/.storage/core.device_registry file and search for the IP
note the number found in config_entries
Open the /config/.storage/core.entity_registry and search for the number
under entity_id you should see the devicename you defined

option2 (for the long term, since it does require to modify your YAML for each of the ESPs)
Add an extra text sensor to all you ESP devices

ip_address:
  ${devicename}/ip
  • Devicename is a substitution if not defined use the name without the ${ }

It then allows to look at developer tools>states filtering by “/ip” and I get them all.
Better but accidently corrupting the files inside the .storage folder and also lots faster in the future.

1 Like

Thanks a lot, i’ll have a go.