Adding "standard" sensor in custom integration

Hello there,
I have (probably for most of the folks here) kinda dump question.

Lets say I have sensor “defined” in the configuration.yaml:

  - trigger:
      - platform: time_pattern
        seconds: /1
      - name: "Update Ticker"
        state: "{{ '%0.6f' % as_timestamp(now()) }}"

But I wanted to instead create this sensor using my custom integration (programmatically). How would one proceed?

I was trying to figure it out by looking through the repo but now I’m just going in circles and I’m not even sure how many entities stacked up on each other it is but I’m sure it starts with the ‘components/template’ integration, right?

Making just custom sensors, etc. was so far way simpler, hah.

Thanks in advance. :wink:

Each integration define its own sensors, (random) e.g.