From ff0d0253e9303f3f7f730186461f64c51a28ccc8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 14 Sep 2015 19:27:28 +0200 Subject: [PATCH] Add arduino switch page --- source/components/switch.arduino.markdown | 37 +++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 source/components/switch.arduino.markdown diff --git a/source/components/switch.arduino.markdown b/source/components/switch.arduino.markdown new file mode 100644 index 00000000000..9c012420267 --- /dev/null +++ b/source/components/switch.arduino.markdown @@ -0,0 +1,37 @@ +--- +layout: page +title: "Arduino switch support" +description: "Instructions how to integrate Arduino boards within Home Assistant." +date: 2015-09-14 18:28 +sidebar: false +comments: false +sharing: true +footer: true +--- + + +The arduino switch platform allows you to control the digital pins of your [Arduino](https://www.arduino.cc/) board. Support for switching pins is limited to high/on and low/off of the digital pins. PWM (pin 3,5,6,9,10, and 11 on an Arduino Uno) is not supported yet. + +To enable the Arduino pins with Home Assistant, add the following section to your `configuration.yaml` file: + +```yaml +# Example configuration.yaml entry +switch: + platform: arduino + pins: + 11: + name: Fan Office + type: digital + 12: + name: Light Desk + type: digital +``` + +Configuration variables: + +- **pins** (*Required*): Array of pins to use. The number corresponds with the pin numbering schema of your board. + - **name**: Name that will be used in the frontend for the pin. + - **type**: The type of the pin. At the moment only 'digital' is supported. + +The digital pins are numbered from 0 to 13. The available pins are 2 till 13. For testing purposes you can use pin 13 because with that pin you can control the internal LED. +