Update docs.md

This commit is contained in:
Yegor Vialov 2019-10-21 18:46:48 +03:00 committed by GitHub
parent c210177048
commit ce8c8b32e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,6 +108,12 @@ For now notificationas could only have title and text. No actions supported yet.
{"title":"Oi!", "message":"Something is moving on your backyard!"} {"title":"Oi!", "message":"Something is moving on your backyard!"}
``` ```
The `title` is not mandatory, by defauld it will be "HA Client". The `title` is not mandatory, by defauld it will be "HA Client".
### Location tracking
**(HA Client >= 0.7.0)**
Starting from version 0.7.0 HA Client supports updating `device_tracker` entity with real device GPS location. The app [should be registered in your HA](#mobile-app-integration) and HA need to be restarted to make it work.
After [mobile app will be registered](#mobile-app-integration) and your Home Assistant will be restarted you'll see a new `device_tracker` entity. For example: `device_tracker.mobile_app_egor_s_pixel_3_xl`. To start sending location to this entity you need to enable Location tracking in HA Client "Configuration".
#### Important! #### Important!
For now Home Assistant don't have a way to detect was current application on current device already registered or not. That is why if you will reinstall HA Client or clear all app data, the app will be registered once again and another Integration will be created on your Home Assistant: For now Home Assistant don't have a way to detect was current application on current device already registered or not. That is why if you will reinstall HA Client or clear all app data, the app will be registered once again and another Integration will be created on your Home Assistant: