Update docs.md
This commit is contained in:
parent
8d7ae0926e
commit
15f79108a7
18
docs.md
18
docs.md
@ -27,11 +27,25 @@ http:
|
|||||||
|
|
||||||
websocket_api:
|
websocket_api:
|
||||||
```
|
```
|
||||||
## Port
|
### Port
|
||||||
By default your Home Assistant is using port number `8123`. But to access your instance from outside of your home network, probably you configured some port forwarding rules on you router. If you forward some other port from outside to `8123` port on Home Assistant IP, you need to use that port instead.
|
By default your Home Assistant is using port number `8123`. But to access your instance from outside of your home network, probably you configured some port forwarding rules on you router. If you forward some other port from outside to `8123` port on Home Assistant IP, you need to use that port instead.
|
||||||
|
|
||||||
If you are accessing your web interface without port, then you need to try port `80` or `443` in app.
|
If you are accessing your web interface without port, then you need to try port `80` or `443` in app.
|
||||||
## HTTP or HTTPS
|
### HTTP or HTTPS
|
||||||
It is not required to use secure connection. Just remember: if you are accessing your web interface with http, you need to switch “Use ssl” off in app settings as well.
|
It is not required to use secure connection. Just remember: if you are accessing your web interface with http, you need to switch “Use ssl” off in app settings as well.
|
||||||
|
|
||||||
But if you are using ssl (accessing web interface with https://) – your certificate should be valid (not self-signed).
|
But if you are using ssl (accessing web interface with https://) – your certificate should be valid (not self-signed).
|
||||||
|
### SSL Certificates
|
||||||
|
The main requirement is that your SSL Certificate should not be self-signed. Most certificates from providers like Let’s Encrypt will work. There is [known issue](https://github.com/estevez-dev/ha_client_pub/issues/24) with RapidSSL certificate, but this problem is common not only for HA Client.
|
||||||
|
|
||||||
|
Using of self-signed certificate is not possible for now and this is a restriction of Flutter’s WebSocket implementation. To stay up to date with this issue solving or possible workarounds please [follow this issue in GitHub](https://github.com/estevez-dev/ha_client_pub/issues/3).
|
||||||
|
### Android
|
||||||
|
Minimum supported Android API level is 21. That’s Android 5.0 and higher.
|
||||||
|
## Authentication
|
||||||
|
Starting from Home Assistant 0.78.0 `api_password` is a deprecated way to authenticate third party apps and services. You should use long-lived access tokens instead. To make HA Client use access token to authenticate you need:
|
||||||
|
1. Go to your Home Assistant web interface and open your profile settings (just click on your user picture in the top part of left menu)
|
||||||
|

|
||||||
|
2. Scroll down to *Long-lived access tokens* section and click *Create token*
|
||||||
|

|
||||||
|
3. Give it a name `HA Client` as it will be used only for HA Client app (it is recommended to use different access tokens for different apps and services)
|
||||||
|
4. Click *Ok* and copy newly generated access token somewhere in a safe place or directly to Connection settings of HA Client
|
||||||
|
Reference in New Issue
Block a user