Trying to assign a presence sensor to a person to use as a device trackers. Does not have gps coordinates as it's just a binary sensor, on=home and off=away.
Is mqtt the best route for this? Haven't had muchuck adding a temate in the configuration.yaml file:
device_tracker:
- platform: template
trackers:
adam_presence:
value_template: >
{% if is_state('binary_sensor.adam_presence', 'on') %}
home
{% else %}
not_home
{% endif %}
#People
person:
- name: Adam
id: adam
user_id: adam
device_trackers:
- device_tracker.adam_presence