Document new token auth option for Hook switch (#2378)
* Document new token auth option for Hook switch * Update switch.hook.markdown
This commit is contained in:
parent
1d931d206f
commit
9f694dad54
1 changed files with 8 additions and 0 deletions
|
@ -20,12 +20,20 @@ In short, Hook is an RF to Wi-Fi bridge, controlling devices that recieve comman
|
||||||
|
|
||||||
Hook provides a simple [REST API](https://app.swaggerhub.com/api/rahilj/GetHook_RestAPI/v1). This Home Assistant component reads in devices that have been set up in the official app.
|
Hook provides a simple [REST API](https://app.swaggerhub.com/api/rahilj/GetHook_RestAPI/v1). This Home Assistant component reads in devices that have been set up in the official app.
|
||||||
|
|
||||||
|
Configure with either your username/password or your API token for the official app.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
- platform: hook
|
- platform: hook
|
||||||
username: <email address>
|
username: <email address>
|
||||||
password: !secret hook
|
password: !secret hook
|
||||||
```
|
```
|
||||||
|
Or
|
||||||
|
```yaml
|
||||||
|
# Example configuration.yaml entry
|
||||||
|
- platform: hook
|
||||||
|
token: <your API token>
|
||||||
|
```
|
||||||
|
|
||||||
Extra debug logging is available, if you need it.
|
Extra debug logging is available, if you need it.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue