Skip to content

Update Arduino configuration samples #1156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions source/_components/sensor.arduino.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ footer: true
logo: arduino.png
ha_category: DIY
ha_release: pre 0.7
ha_iot_class: "Local Polling"
---


Expand All @@ -24,17 +25,16 @@ sensor:
pins:
1:
name: Door switch
type: analog
0:
name: Brightness
type: analog

```

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 'analog' is supported.
- **pins** array (*Required*): Array of pins to use.
- **[number]** (*Required*): The pin number that corresponds with the pin numbering schema of your board.
- **name** (*Optional*): Name that will be used in the frontend for the pin.

The 6 analog pins of an Arduino UNO are numbered from A0 to A5.

16 changes: 8 additions & 8 deletions source/_components/switch.arduino.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ footer: true
logo: arduino.png
ha_category: DIY
ha_release: pre 0.7
ha_iot_class: "Local Polling"
---


Expand All @@ -24,21 +25,20 @@ switch:
pins:
11:
name: Fan Office
type: digital
12:
name: Light Desk
type: digital
default: on
initial: true
negate: true
```

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.
- **default**: The initial value for this port.
- **negate**: If this pin should be inverted.
- **pins** array (*Required*): List of pins to use.
- **[number]** (*Required*): The pin number that corresponds with the pin numbering schema of your board.
- **name** (*Required*): Name that will be used in the frontend for the pin.
- **initial** (*Optional*): The initial value for this port. Defaults to `False` .
- **negate** (*Optional*): If this pin should be inverted. Defaults to `False`.

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.
The digital pins are numbered from 0 to 13 on a Arduino UNO. 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.