From b726f0e94b7a7a48920a39c85fa8da88e83024c6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 29 Oct 2015 09:36:30 +0100 Subject: [PATCH] Minor update --- source/_components/switch.arest.markdown | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/_components/switch.arest.markdown b/source/_components/switch.arest.markdown index 37429a47120..013c0bc829b 100644 --- a/source/_components/switch.arest.markdown +++ b/source/_components/switch.arest.markdown @@ -11,7 +11,6 @@ logo: arest.png ha_category: Switch --- - The arest switch platform allows you to toggle pins of your devices (like Arduino boards with a ethernet/wifi connection, ESP8266 based devices, and the Raspberry Pi) running the [aREST](http://arest.io/) RESTful framework. To use your aREST enabled device in your installation, add the following to your `configuration.yaml` file: @@ -33,12 +32,12 @@ Configuration variables: - **resource** (*Required*): IP address and schema of the device that is exposing an aREST API, eg. http://192.168.1.10. - **name** (*Optional*): Let you overwrite the the name of the device. By default *name* from the device is used. -- **pins** (*Required*): An array with all used pins of your board. +- **pins** array (*Required*): An array with all used pins of your board. - **name** (*Required*): The name of the pin you wish to toggle. -Accessing one of the endpoints (eg. http://192.168.1.10/analog/2/) will give you a JSON response. The interesting part is `return_value` which represents the sensor's data. +You can still switch your pins with a web browser or a command line tool. Use the http://192.168.1.10/digital/8/1 to set pin 8 to high/on, the JSON response will give you some feedback. ```json -{"return_value": 34, "id": "sensor02", "name": "livingroom", "connected": true} +{"message": "Pin D8 set to 1", "id": "sensor02", "name": "livingroom", "connected": true} ```