From 3181687d4260ac0fc1c3653c2d1b13b8d660322e Mon Sep 17 00:00:00 2001 From: Klaas Hoekema Date: Tue, 4 Apr 2017 01:38:42 -0400 Subject: [PATCH 1/2] Document new token auth option for Hook switch --- source/_components/switch.hook.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/_components/switch.hook.markdown b/source/_components/switch.hook.markdown index 635e234940ba..0b2cc6a541b1 100644 --- a/source/_components/switch.hook.markdown +++ b/source/_components/switch.hook.markdown @@ -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: password: !secret hook ``` +OR +```yaml +# Example configuration.yaml entry +- platform: hook + token: +``` Extra debug logging is available, if you need it. From cd0ac5bc5ff805d967abea642e713d639d45f13f Mon Sep 17 00:00:00 2001 From: Fredrik Lindqvist Date: Mon, 17 Apr 2017 20:02:50 +0200 Subject: [PATCH 2/2] Update switch.hook.markdown --- source/_components/switch.hook.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_components/switch.hook.markdown b/source/_components/switch.hook.markdown index 0b2cc6a541b1..0550cadb0897 100644 --- a/source/_components/switch.hook.markdown +++ b/source/_components/switch.hook.markdown @@ -28,7 +28,7 @@ Configure with either your username/password or your API token for the official username: password: !secret hook ``` -OR +Or ```yaml # Example configuration.yaml entry - platform: hook