If you don’t know python at all, it’ll be hard!
I don’t have a tile tracker unfortunately, but you could easily go into the code and add some integration to openHAB using either REST API or MQTT to update your OH3 items with the properties - provided you understand at least a bit of (python) programming…
I used the BT binding (FlowerCare), but was not really happy with it.
Furthermore it does not fit my needs:
Because there is some inofficial API to retrieve the location of the tile (community location), this is what I would like to make use of for geofencing (and not presence detection in BT range only).
I am able to retrieve the location with the python stuff and created the following script:
from aiohttp import ClientSession
from pytile import async_login
email = 'email@example.com'
password = 'geheim'
#Rucksack uuid = xxx
async def main() -> None:
async with ClientSession() as session:
api = await async_login(email, password, session)
tiles = await api.async_get_tiles()
for tile_uuid, tile in tiles.items():
if tile.uuid == "xxx":
As I mentioned already, I am not familiar with python (yet) and would like to return the first result only (the second one is my iphone I already read using icloud binding).
So, if someone has a suggestion to get rid of the pathetic for loop with break, I am more than happy to hear about it.
Open: Read the location using REGEX into a location item.
I don’t know, what you mean by that, as I don’t know the tiles-API but I see “tile.latitude and tile.longitude”, I assume you already have all information on hand to just add them together like this - provided the API response is in decimal degrees:
tilePosition = tile.latitude+", "+tile.longitude
nevertheless, Regex is a cool thing, so here’s some tutorial on that:
Thank you for the summary.
That totally makes sense.
I actually used mosquitto in the past (for gps tracking), but replaced it with icloud.
However setting up mqtt is not a big deal and I will consider it.
Most of the setups here use mqtt on the same host as OH (mine definitely) and I assume it’s the “normal” use case.
So, why do you recommend to run mqtt separately?
ok, my openHAB installation is quite big (around 1.000 items, all sorts of bindings, rules …), so I want to have as much load and parallel deamons off of my openHAB Raspberry Pi.
As I use Synlogy as NAS, it serves as persistance (MariaDB), MQTT Broker (mosquitto), backup server, …
My openHAB Pi has more perfomance - and stability - dedicated for solely running openHAB and nothing else.