Skip to content

GoogleFindMyTools for Raspberry#4

Open
xHecktor wants to merge 43 commits into
endeavour:mainfrom
xHecktor:main
Open

GoogleFindMyTools for Raspberry#4
xHecktor wants to merge 43 commits into
endeavour:mainfrom
xHecktor:main

Conversation

@xHecktor
Copy link
Copy Markdown

Hi

I have edited your fork a bit.

I use GoogleFindMyTools on a Raspberry and send Mqqt messages to Home Assistant.

Unfortunately, I can't log in correctly in the Chrome browser on the Raspberry os. Therefore I have to do the login on a Windows PC and then copy the secrets.json to the Raspberry.

I have also taken into account that Google sometimes semantically sends “home” instead of coordinates. If that happens, “home” is converted to coordinates that Home Assistant understands.

The home zone (coordinates + radius) are necessary because Home Assistant always needs a status to transmit the attributes (coordinates). Previously, publisch_mqtt.py always sent unkown as the status and the coordinates as attributes. The consequence was that home assistant set the tracker to unkown with every location update and then read out the attributes in order to set “home” as status again. With this change, the correct status is sent directly to home assistant.

The trigger for determining the location comes from Home Assistant via mqtt

xHecktor added 30 commits July 16, 2025 17:47
Chromedriver kann nicht direkt in raspberry verwendet werden. Daher wird die secrets.json von einem anderen Gerät kopiert
Home zone wird festgelegt in Koordinaten falls Google Tag nur semantisch "zuhause" ausgibt
Home Zone wird in der Mqtt Nachricht von Home Assistant an Raspberry bestimmt

Trigger zum ausführen kommt von Home Assistent
Raspberry kann den chromedriver nicht benutzen. Daher kommt  selenium zum einsatz und die secrets.json muss nachträglich von einem anderen Gerät kopiert werden
Mqqt Service restart
Eingabe aufforderung verursacht fehler bei der automatisierten Mqtt abfragee. Daher einfach alle abfragen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant