Skip to content

Commit

Permalink
Document new token auth option for Hook switch (#2378)
Browse files Browse the repository at this point in the history
* Document new token auth option for Hook switch

* Update switch.hook.markdown
  • Loading branch information
KlaasH authored and balloob committed Apr 21, 2017
1 parent a4af4d5 commit 3e9de98
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/_components/switch.hook.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Configure with either your username/password or your API token for the official app.

```yaml
# Example configuration.yaml entry
- platform: hook
username: <email address>
password: !secret hook
```
Or
```yaml
# Example configuration.yaml entry
- platform: hook
token: <your API token>
```
Extra debug logging is available, if you need it.
Expand Down

0 comments on commit 3e9de98

Please sign in to comment.