Skip to content

Commit 9f694da

Browse files
KlaasHfabaff
authored andcommitted
Document new token auth option for Hook switch (home-assistant#2378)
* Document new token auth option for Hook switch * Update switch.hook.markdown
1 parent 1d931d2 commit 9f694da

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/_components/switch.hook.markdown

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,20 @@ In short, Hook is an RF to Wi-Fi bridge, controlling devices that recieve comman
2020

2121
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.
2222

23+
Configure with either your username/password or your API token for the official app.
24+
2325
```yaml
2426
# Example configuration.yaml entry
2527
- platform: hook
2628
username: <email address>
2729
password: !secret hook
2830
```
31+
Or
32+
```yaml
33+
# Example configuration.yaml entry
34+
- platform: hook
35+
token: <your API token>
36+
```
2937
3038
Extra debug logging is available, if you need it.
3139

0 commit comments

Comments
 (0)