Update docs.md

This commit is contained in:
Yegor Vialov 2019-09-09 15:20:58 +03:00 committed by GitHub
parent ba276a7004
commit 762644f458
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,9 +47,9 @@ Using of self-signed certificate is not possible for now and this is a restricti
Minimum supported Android API level is 21. Thats Android 5.0 and higher.
[Back to top](#documentation)
{% include in_post.html %}
## Authentication
There is two ways to login to Home Assistant with HA Client
{% include in_post.html %}
### Home Assistant OAuth
HA Client will login through [Home Assistant Authentication API](https://developers.home-assistant.io/docs/en/auth_api.html). You don't need to create and recreate access tokens. If HA Client is not authenticated yet or there is some issues logging in, it will ask you to login to your Home Assistant web interface with your credentials:
@ -80,6 +80,7 @@ To make HA Client use your generated long-lived token you need:
[Back to top](#documentation)
## Mobile app integration
{% include in_post.html %}
**(HA Client >= 0.6.0)**
Strating from 0.6.0 `mobile_app` component should be enabled on your Home Assistant server. If it is disabled, the app will show you an error saying that you need to enable `mobile_app` component on your HA instance. In that case just add this to your `configuration.yaml`:
@ -117,7 +118,6 @@ As well as second `notify` service and second `device_tracker` entity. **Notific
After that you can go to *Config* in HA Client, scroll down to *Mobile app* and *Reset registration*. A new Integration will be created and Home Assistant server should be restarted once again. Notifications should be handled properly now.
[Back to top](#documentation)
{% include in_post.html %}
## UI Configuration
By default HA Client UI is based on your Lovelace UI config, so it should display the same views as your Home Assistant web UI. It is still possible to switch off Lovelace UI in app settings. In this case app UI will be based on groups configuration, the same as old Home Assistant UI.
@ -132,3 +132,4 @@ There is a built in debug messages viewer in the app. You can access it by *Log*
Please note that oldest entries goes first, so to see latest messages you need to scroll this view down.
[Back to top](#documentation)
{% include in_post.html %}