mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 21:36:52 +00:00
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
a4af4d5dfa
commit
3e9de98f19
@ -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…
x
Reference in New Issue
Block a user