Hi Folks, just signed up as I discovered HASS a few days ago and have been going nuts with HA Even went out and bought a bunch of Hue lights and such things, having a great time with this software getting my life automated!
Iāve run into a problem I canāt seem to figure out with my configuration regarding BLE Tiles. My wife has a tile on her keychain and I have one on mine. I had originally set them up as two different accounts (with tile.com) but I canāt figure out (if possible) to have two accounts monitored by HASS:
device_tracker:
platform: tile
username: me
password: password
platform: tile
username: wife
password: password
This didnāt work, got a python error in the logs. What I ended up doing was transferring the tile from my wifes account to mine and only my account is specified. Doesnāt quite fit into the model weāre planning to use it for. Is there a way to have two tile.com accounts monitored in HASS? It works fine otherwise using a āhomeā zone but the functionality of the tile is reduced as my wifeās tile will ring my phone instead of hers.
For those who might be interested ā I ended up moving all devices/tiles to one account. It works but only as a solution to the HASS side of things. I would have preferred to be able to support multiple tile.com accounts so that my wife and I could maintain our own collection of tiles/devices.
I suppose now I need to buy some happy bubbles to try to use them in beacon mode instead or use some other method for presence detection method I havenāt explored yet.
Thanks! Iāll give this a try. I assume it wonāt work if the tiles are already paired to a phone? I did some reading in the forum here and seems if the app is installed/tile paired, this method wonāt work? We do like the idea of having the functionality of the tile but Iād be willing to accept it just being a wireless tag (of sorts) if I can get your method working.
Did a MAC lookup, one is my Samsung TV ā¦ not sure if the others are the tiles or not. Guess Iāll need to shutdown the app(s) on both phones and see if I can see the tiles via BT from them to isolate them. In your example you noted youāre running Hassbian (which I assume is the port 5000 endpoint) so Iāll need to find another way to get this data inserted into HASS but it looks promising
Yeah, Iād say the phone apps are still reserving access to the Tiles.
They should appear twice per device on that list, one with āUnknownā and the other with āTileā. Youāll know you can use my little script once you see āTileā appear.
The port 5000 endpoint is for my little api script, not hassbian. So as long as you can get the python script running in your venv install, you should be fine.
I imagine youāll have to change the IP in the sensor snippets to http://127.0.0.1:5000 if the bluetooth detection is on the same device as the scriptās running on.
Iāve had all of my devices in one Tile account from the start, but the result is that it doesnāt always show the correct location of both phones. Are you seeing the same issue?
It does update the location but itās not real-time and definitely time-delayed. My original idea behind the Tile was for presence detection since BT/WiFi is not super reliable on modern smartphones (iPhone7/Zenfone3) due to sleep/power-saving mode. The other deficiency to Tile is that itāll pair to the nearest/strongest device so if my wife and I are in the same room and my BT connection is slightly stronger (for whatever reason) and I do a key/phone locate, itāll use the strongest device.
This is why Iād rather use them as beacon (of sorts) for presence detection as āstandardā operation of the system doesnāt really jive with what I want.
The reason I wanted to originally track two tile accounts was because each tile reports GPS location (via phone) which I figured be a good presence detection for āhomeā and ānot_homeā based on the coordinates of my home zone configuration.
EDIT: As far as HASS is concerned, the GPS location is always āhomeā when in range even though via debug I can see it reporting different location. Ultimately, a beacon use-case would be a lot useful to me for HASS and Iām now working on getting that up and running to see how accurate/responsive itāll be.
OK, got everything cobbled together here and itās working. Thereās about a 30-40 second gap every so often (as you noted in the in the other thread) but fortunately the automation routines have a bigger gap to determine if someone is here/away. Definitely more reliable than tracking WiFi or BT.