Thanks all for your input, much appreciated!
I decided to go the “Composite Device Tracker” route to combine both the phone’s GPS tracker and the WiFi SSID tracker into one. I plan on eventually adding BLE presence detection as well and then I could add that to the tracker_device as well.
Anyhow, this is what I added to my configuration.yaml:
device_tracker:
- platform: composite
name: person1_home_or_away
time_as: device_or_local
require_movement: true
entity_id:
- sensor.person1_iphone_wifi_tracker
- device_tracker.person1_phone
name: person2_home_or_away
time_as: device_or_local
require_movement: true
entity_id:
- sensor.person2_wifi_tracker
- device_tracker.peson2_phone
Now this creates the expected Composite Device Trackers device_tracker.person1_home_or_away and device_tracker.person2_home_or_away
The only problem is that only the second (device_tracker.person2_home_or_away) seems to work, it will correctly change state based on the values of sensor.person2_wifi_tracker and device_tracker.peson2_phone.
The first Composite Device Tracker (device_tracker.person1_home_or_away) always shows as “not_home” with source_type:null
Now if I change the order of the definition of the two Composite Device Trackers in my configuration.yaml like this:
device_tracker:
- platform: composite
name: person2_home_or_away
time_as: device_or_local
require_movement: true
entity_id:
- sensor.person2_wifi_tracker
- device_tracker.peson2_phone
name: person1_home_or_away
time_as: device_or_local
require_movement: true
entity_id:
- sensor.person1_iphone_wifi_tracker
- device_tracker.person1_phone
then the other Composite Device Trackers is working instead (but still the last one to be defined), and device_tracker.person2_home_or_away always shows as “not_home” with source_type:null.
So it seems like only the second instance of a “Composite Device Tracker” I define is actually working. And I had to add a in after the second instance in configuration.yaml for the second one to even show up in HA. This is the last entry in my configuration.yaml by the way. It would pass “Configuration Validation” without the , but the last entry didn’t show up. So it seems it’s a bit picky of the file formatting by requiring an at the very end of the file, at least if Composite Device Trackers are defined at the end.
I tried to define a third one as well, then the first one I defined didn’t show up at all, the second showed up but didn’t work and the third and last worked as expected.
Now I’m completely new to HA, but this seems strange to me. Any idea why only the second (last) instance of “Composite Device Tracker” I define actually works? Can I only define one at a time? If that’s the case then that does not make any sense either.
Please bear with me if I made a trivial error, I only installed HA this week and I’m still learning.