Hello dear community,
the topic around HomeAssistant has fallen asleep for me and now, after a long time, I would like to devote myself to it again.
I would just like to implement a Home/Away detection, but not one that runs exclusively via the router, but on the one hand (for the main persons) via the HA companion app and for the secondary persons who do not have the HA companion app via the device_trocker router and their IP_address of the smartphone.
as this was all so long ago and what i learned back then has disappeared over time, i have virtually no knowledge of it anymore.
Is there perhaps a tutorial somewhere that describes exactly this case?
Using this example:
I define the code listed in the yaml:
device_tracker:
- platform: ping
interval_seconds: 30
consider_home: 1200
hosts:
ollis_pixel: 192.168.188.21
isas_pixel: 192.168.188.22
what do i have to set if i want to base this presence view on the companion app and i get the following state displayed as entity=person.andreas:
editable: true
id: andreas
latitude: XX.XXXXXXX
longitude: X.XXXXXXX
gps_accuracy: 20
source: device_tracker.samsung_s21
user_id: e839313aa43c4e74be469bc089afc187
device_trackers:
- device_tracker.samsung_s21
friendly_name: Andreas