All Projects → j1nx → homeassistant-phonetrack

j1nx / homeassistant-phonetrack

Licence: Apache-2.0 license
PhoneTrack custom device_tracker component for Home Assistant.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to homeassistant-phonetrack

pymusiccast
Group MusicCast Speakers with Home Assistant
Stars: ✭ 34 (+70%)
Mutual labels:  hass, homeassistant, hassio
addon-shinobi
Shinobi Pro - Community Hass.io Add-on for Home Assistant
Stars: ✭ 22 (+10%)
Mutual labels:  hass, homeassistant, hassio
Home-Assistant-Configuration
🏡 My home assistant configuration!
Stars: ✭ 28 (+40%)
Mutual labels:  hass, homeassistant, hassio
Home Assistant.io
📘 Home Assistant User documentation
Stars: ✭ 2,377 (+11785%)
Mutual labels:  hass, hassio
Addon Homebridge
 Homebridge - Community Hass.io Add-on for Home Assistant
Stars: ✭ 96 (+380%)
Mutual labels:  hass, homeassistant
Appdaemon Scripts
Scripts running in Appdaemon for Homeassistant Automations
Stars: ✭ 108 (+440%)
Mutual labels:  hass, homeassistant
Hass Yaap
Yet another alarm (control) panel for Home Assistant.
Stars: ✭ 44 (+120%)
Mutual labels:  hass, homeassistant
charger-card
A lovelace card for electrical vehicle (EV) home chargers and charging robots.
Stars: ✭ 57 (+185%)
Mutual labels:  hass, homeassistant
hassio-addons
➕ Docker add-ons for Hass.io
Stars: ✭ 33 (+65%)
Mutual labels:  homeassistant, hassio
hassio-vagrant
Vagrant box running Hass.io / Home Assistant
Stars: ✭ 42 (+110%)
Mutual labels:  hass, hassio
ledfxrm
Custom Integration for Home Assistant to control a any (local/remote) LedFX-server - State: beta
Stars: ✭ 31 (+55%)
Mutual labels:  hass, homeassistant
Homeassistant Config
Configuration for @brianjking & @KinnaT's Home Assistant Installation
Stars: ✭ 80 (+300%)
Mutual labels:  hass, homeassistant
Hugo Esp8266
Hugo is a 4-button ESP8266 Wi-Fi Remote, Arduino compatible and simple to use.
Stars: ✭ 77 (+285%)
Mutual labels:  hass, homeassistant
Home Assistant Config
My Home Assistant Configuration 🏡🏡
Stars: ✭ 133 (+565%)
Mutual labels:  hass, homeassistant
Home Assistant Config
🏠 My Home Assistant configuration, a bit different that others :) Be sure to 🌟 this repository for updates!
Stars: ✭ 1,050 (+5150%)
Mutual labels:  hass, homeassistant
hassio-addons
My homeassistant addons
Stars: ✭ 646 (+3130%)
Mutual labels:  homeassistant, hassio
bootstrap-grid-card
Bootstrap grid in Lovelace UI
Stars: ✭ 25 (+25%)
Mutual labels:  hass, homeassistant
docker-wyze-bridge
RTMP/RTSP/LL-HLS bridge for Wyze cams in a docker container
Stars: ✭ 1,146 (+5630%)
Mutual labels:  homeassistant, hassio
Homeassistant
Home Assistant Configuration Files and Documentation
Stars: ✭ 395 (+1875%)
Mutual labels:  hass, homeassistant
Hass Components
My Home Assistant custom components
Stars: ✭ 21 (+5%)
Mutual labels:  hass, homeassistant

homeassistant-phonetrack

PhoneTrack custom device_tracker component for Home Assistant.

Purpose

The purpose of this custom component for Home-Assistant 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.

Inspired by

This project was inspired by the custom device_tracker component quickly created by @Phyks here: https://community.home-assistant.io/t/custom-device-tracker-not-firing-at-expected-interval/45100

I just took his code, converted it top the new(er) structure and adjusted it heavily inspired by the Google Shared Location device tracker.

ALL 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.

Setup instructions

Copying into custom_components folder

Create a directory custom_components in your Home-Assistant configuration directory. Copy the whole phonetrack folder from this project into the newly created directory custom_components.

The result of your copy action(s) should yield a directory structure like so:

.homeassistant/
|-- custom_components/
|   |-- phonetrack/
|       |-- __init__.py
|       |-- device_tracker.py
|       |-- manifest.json

Enabling the custom_component

In order to enable this custom device_tracker component, add this code snippet to your Home-Assistant configuration.yaml file:

device_tracker:
  - platform: phonetrack
    url: https://<NEXTCLOUD_URL>/index.php/apps/phonetrack/api/getlastpositions/
    token: <SHARED_VIEW_TOKEN>
    
    devices:
    - <DEVICE_NAME>

Please use secrets within Home-Assistant to store sensitive data like API Tokens.

ToDo

Finish the optional GPS accuracy threshold value similar as Google LOcation Sharing.

Troubleshooting

I don't know how to code in Python (yet). This is just copy & paste work and using Google (a lot) debugging all error's 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.

Till then, feel free to fork and create PR's.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].