A Docker container to retrieve coordinates from a google account that has been shared with locations of other accounts and add it as a device tracker to Home Assistant. The container publishes the info using mqtt auto discovery without the need for special configuration on the Home Assistant side.
Use the following docker-compose file for the container installation:
version: "3.6"
services:
locationsharing:
image: techblog/locationsharing
container_name: locationsharing
restart: always
environment:
- EMAIL_ADDRESS= #Google account email
- COOKIES_FILE_NAME= #Cookies file name (File name without path)
- MQTT_HOST= #MQTT Host address
- MQTT_PORT= #MQTT Port,Default is 1883
- MQTT_USERNAME= #MQTT Username
- MQTT_PASSWORD= #MQTT Password
- UPDATE_INTERVAL=1 #In minutes
volumes:
- ./locationsharing/cookies:/app/cookies
The container will run two scripts:
Content type
Image
Digest
sha256:397d2f1b6…
Size
215 MB
Last updated
over 3 years ago
docker pull techblog/locationsharing