Adding entities automatically through a link that contains dynamic ID

Hi all, i have an automation that calls a script to create new sensors and devices on a raspberry PI but i need to retrieve these new devices that will have a dynamic ID on creation, and a known name for each sensor inside it, so it will look like this : http://localhost/#/devices/66225ecc68f3190a9f5dfe86/sensors/temperatureSensor_0

is there a way to automatically get these added as entities ? So far i’m getting them added as entities like this in my configuration.yaml file :

but we can see that i can only do that for static ID and not dynamic,

upon adding them as entities, is there a way to place them on my dashboard aswell automatically?