Template Entity: Assign presence sensor to person

Hi
Now we have the new Template Entity feature, can we expand it to allow a template to add to a person?

e.g. I wear a fitbit and it’s a lot faster at detecting my home/away presence (via ESPresence) rather than waiting for phone GPS and HA update to catch up.

It would be great to add this template then add it to my Person details in /config/person.

{{  (states('sensor.my_fitbit') != 'not_home')
and (states('sensor.my_fitbit') != 'unavailable') }}

FWIW, the end goal of your request can already be accomplished through another method. That method is to use an automation that calls the device_tracker.see service. Calling the service with an unknown dev_id will create a new device_tracker entity that can be added to your person.

Device tracker services

trigger:
  - platform: state
    entitiy_id: sensor.my_fitbit
condition: []
action:
  - service: device_tracker.see
    data:
      dev_id:  callum_fitbit
      location_name: |
        {{ 'not_home' if trigger.to_state.state in ['not_home', 'unavailable'] else 'home' }}

I don’t know what the Fitbit delivers, but most entities can be added to a person entity.
As I know the person entity updates with the most recent update of any of the entities.

It’s not like normal personal tracking within HomeAssistant as ESPresence is a sensor, not a device_tracker.

With templating we can set it to true or false (or home/not_home if we want) by using the example in my OP.