From 0dc05eac7634c8f649fb2866d362016229e3cadd Mon Sep 17 00:00:00 2001 From: Mitch Gallman Date: Fri, 11 Feb 2022 02:02:06 -0500 Subject: [PATCH] docs: add smartthings power documentation docs: add smartthings power documentation Signed-off-by: Mitch Gallman --- docs/configuration.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/docs/configuration.md b/docs/configuration.md index 161b1e6..3404682 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -881,6 +881,40 @@ state_response_template: # not necessary to query after a command query_after_command: False ``` +#### SmartThings (HTTP) + +!!! Important SmartThings Developer API Topics +* See [Getting a Bearer Token]( +https://developer-preview.smartthings.com/docs/advanced/authorization-and-permissions/) +* See [Getting a list of devices]( +https://developer-preview.smartthings.com/api/public#operation/getDevices) + +The following options are available for `smartthings` device types: + +```ini +# moonraker.conf + +address: api.smartthings.com +protocol: https +port: 443 +token: +# A bearer token used for request authorization. This parameter must be provided. +device: +# The Device guid of the switch to control. This parameter must be provided. +``` + +Example: +```ini +# moonraker.conf + +[power smartthings_switch] +type: smartthings +address: api.smartthings.com +protocol: https +port: 443 +token: smartthings-bearer-token +device: smartthings-device-id +``` #### Toggling device state from Klipper