Can an Addon create an sensor entity and update that entity?

I converted a Python script that scrapes data using Playwright into an HA Addon, the script is working but I can’t figure out the best way to then create a sensor for the data I gathered. Is there a way from within the addon docker you can talk to HA and create an entity and then update that entity?

Usually this is done by creating an integration to communicate with the add-on and create entities. e.g. NUT addon & NUT integration. Though add-ons can create sensors e.g. SAMBA Backup.

SAMBA backup was exactly the pointer I needed!! Thank you I now have an addon that will update a sensor with my Xfinity Internet usage data.