![]() ![]() User3: device_er3_owntracks, device_er3_nmap User2: device_er2_owntracks, device_er2_nmap (5) Create a groups.yaml file and in it list the trackers for each user: user1: device_er1_owntracks, device_er1_nmap (4) Edit configuration.yaml to refer to groups.yaml and automations.yaml: group: !include groups.yaml If just one tracker reports that it is home, then HA will regard the device as being at home. Leaving trackers separate in known_devices and then creating a group of trackers for each device allows the trackers to individually contribute to the device’s location. Note: Other examples suggest combining the device’s MAC address with Owntracks. Example entries for User 1’s phone: user1_owntracks: Home Assistant will create and populate a known_devices.yaml based on discovery that you can edit as apporpriate. ![]() The three IP addresses above are examples for three mobile devices. # Highly recommended: assign IP address for devices you want to track so you can know where to find them. (3) Edit configuration.yaml for Owntracks, discovery, and Nmap # Discover some devices automatically This method prevents false ‘away’ states. Going that route, just one ‘away’ condition’ from a tracker causes the device to be ‘away.’ In the configuration below, if just one tracker reports a ‘home’ condition, the user’s device is considered to be ‘at home.’ This configuration works a lot better for me because my phone’s Owntracks position tends to periodically drift outside of my Home zone. I found examples that suggested including a device’s MAC addresses within the MQTT tracker. So I hope this is helpful.įor me, the wrinkle that made the difference was figuring out how to use individual trackers in known_devices.yaml and then grouping them in groups.yaml. I gathered the information in bits and pieces thanks to the wealth of information I gathered from others, but nothing seemed to be clearly spelled out in one place. I thought I’d share what’s working well for me using multiple trackers for presence (in this example, Owntracks, Nmap, and iBeacons). ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |