You could build a list of the entities and include device_id. Then, get them by unique id.
Use the second code section in this post as an example
Devices and Areas - Configuration / Frontend - Home Assistant Community (home-assistant.io)
You could build a list of the entities and include device_id. Then, get them by unique id.
Use the second code section in this post as an example
Devices and Areas - Configuration / Frontend - Home Assistant Community (home-assistant.io)