{"id":16359814,"url":"https://github.com/j1nx/homeassistant-phonetrack","last_synced_at":"2026-03-07T20:01:52.220Z","repository":{"id":53774813,"uuid":"193723114","full_name":"j1nx/homeassistant-phonetrack","owner":"j1nx","description":"PhoneTrack custom device_tracker component for Home Assistant.","archived":false,"fork":false,"pushed_at":"2024-12-20T10:30:03.000Z","size":40,"stargazers_count":34,"open_issues_count":1,"forks_count":16,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-01T22:47:23.702Z","etag":null,"topics":["hass","hassio","home-assistant","homeassistant"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/j1nx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-25T14:24:20.000Z","updated_at":"2025-03-12T07:34:12.000Z","dependencies_parsed_at":"2024-02-13T08:40:11.668Z","dependency_job_id":"18f2f964-89fc-4c92-ab7e-fd5c995c698f","html_url":"https://github.com/j1nx/homeassistant-phonetrack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/j1nx/homeassistant-phonetrack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j1nx%2Fhomeassistant-phonetrack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j1nx%2Fhomeassistant-phonetrack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j1nx%2Fhomeassistant-phonetrack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j1nx%2Fhomeassistant-phonetrack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j1nx","download_url":"https://codeload.github.com/j1nx/homeassistant-phonetrack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j1nx%2Fhomeassistant-phonetrack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30229585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hass","hassio","home-assistant","homeassistant"],"created_at":"2024-10-11T02:09:45.725Z","updated_at":"2026-03-07T20:01:52.185Z","avatar_url":"https://github.com/j1nx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# homeassistant-phonetrack\nPhoneTrack custom device_tracker component for Home Assistant.\n\n## Purpose\nThe purpose of this custom component for [Home-Assistant](https://home-assistant.io) is to track GPS devices that are using a PhoneTrack-OC backend. PhoneTrack-OC is an app for Nextcloud/Owncloud exposing an API compatible with Owntracks / µLogger / GPSLogger and many more to store your positions in Nextcloud.\n\n## Inspired by\nThis project was inspired by the custom device_tracker component quickly created by @Phyks here:\nhttps://community.home-assistant.io/t/custom-device-tracker-not-firing-at-expected-interval/45100\n\nI just took his code, converted it top the new(er) structure and adjusted it heavily inspired by the Google Shared Location device tracker.\n\nALL credits go to @Phyks here. Released this updated coded under Apache 2.0 to protect his code a bit as he did not stated a license at all.\n\n## Setup instructions\n### Copying into custom_components folder\nCreate a directory `custom_components` in your Home-Assistant configuration directory.\nCopy the whole [phonetrack](./phonetrack) folder from this project into the newly created directory `custom_components`.\n\nThe result of your copy action(s) should yield a directory structure like so:\n\n```\n.homeassistant/\n|-- custom_components/\n|   |-- phonetrack/\n|       |-- __init__.py\n|       |-- device_tracker.py\n|       |-- manifest.json\n```\n\n### Enabling the custom_component\nIn order to enable this custom device_tracker component, add this code snippet to your Home-Assistant `configuration.yaml` file:\n\n```yaml\ndevice_tracker:\n  - platform: phonetrack\n    url: https://\u003cNEXTCLOUD_URL\u003e/index.php/apps/phonetrack/api/getlastpositions/\n    token: \u003cSHARED_VIEW_TOKEN\u003e\n\n    # Optional. Default is 5 minutes.\n    update_time_minutes: 0 \n    update_time_seconds: 30\n    \n    devices:\n      - \u003cDEVICE_NAME\u003e\n```\n\nPlease use [secrets](https://www.home-assistant.io/docs/configuration/secrets/) within Home-Assistant to store sensitive data like API Tokens.\n\n## ToDo\nFinish the optional GPS accuracy threshold value similar as Google LOcation Sharing.\n\n## Troubleshooting\nI don't know how to code in Python (yet). This is just copy \u0026 paste work and using Google (a lot) debugging all errors I do not understand, while doing stuff I don't know. I have some more Python projects on the shelf, so whenever I start leaning that code a bit more, I will look into making it better.\n\nTill then, feel free to fork and create PRs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj1nx%2Fhomeassistant-phonetrack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj1nx%2Fhomeassistant-phonetrack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj1nx%2Fhomeassistant-phonetrack/lists"}