Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pnbruckner/ha-gpslogger
Custom Home Assistant GPSLogger Integration
https://github.com/pnbruckner/ha-gpslogger
gpslogger home-assistant home-automation homeassistant-custom-component tracker
Last synced: about 1 month ago
JSON representation
Custom Home Assistant GPSLogger Integration
- Host: GitHub
- URL: https://github.com/pnbruckner/ha-gpslogger
- Owner: pnbruckner
- License: unlicense
- Created: 2024-01-17T02:40:53.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-29T11:23:08.000Z (8 months ago)
- Last Synced: 2024-03-29T20:04:37.535Z (8 months ago)
- Topics: gpslogger, home-assistant, home-automation, homeassistant-custom-component, tracker
- Language: Python
- Homepage:
- Size: 41 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GPSLogger
This is a custom version of the Home Assistant built-in [GPSLogger](https://www.home-assistant.io/integrations/gpslogger/) integration.
It extends the built-in integration in ways that make sense but are no longer accepted.
Specifically, it allows additional attributes, especially `last_seen`,
which is crucial when combining entities from this Device Tracker integration with ones from other integrations,
e.g., via my [Composite Device Tracker](https://github.com/pnbruckner/ha-composite-tracker) integration.
Also, `last_seen` is important when dealing with packets received out of order from the corresponding Android app,
e.g., due to network delays.## Installation
With HACS
[![hacs_badge](https://img.shields.io/badge/HACS-Custom-41BDF5.svg)](https://hacs.xyz/)
You can use HACS to manage the installation and provide update notifications.
1. Add this repo as a [custom repository](https://hacs.xyz/docs/faq/custom_repositories/).
It should then appear as a new integration. Click on it. If necessary, search for "gpslogger".```text
https://github.com/pnbruckner/ha-gpslogger
```
Or use this button:
[![Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=pnbruckner&repository=ha-gpslogger&category=integration)1. Download the integration using the appropriate button.
Manual
Place a copy of the files from [`custom_components/gpslogger`](custom_components/gpslogger)
in `/custom_components/gpslogger`,
where `` is your Home Assistant configuration directory.>__NOTE__: When downloading, make sure to use the `Raw` button from each file's page.
## Setup
Please see the standard [GPSLogger](https://www.home-assistant.io/integrations/gpslogger/) documentation for basic set up.
The following should be added to the **HTTP Body** setting in the Android app (in addition to what the standard docs suggest):
```text
&last_seen=%TIME&battery_charging=%ISCHARGING
```Note that `%TIME` provides the phone's time in UTC.
If you'd rather have the time specified in the phone's local time zone, use `%TIMEOFFSET` instead.