Update configuration samples (#1156)

This commit is contained in:
Fabian Affolter 2016-10-14 22:46:21 +02:00 committed by GitHub
parent 73f2e229b0
commit e799a68149
2 changed files with 13 additions and 13 deletions

View File

@ -10,6 +10,7 @@ footer: true
logo: arduino.png logo: arduino.png
ha_category: DIY ha_category: DIY
ha_release: pre 0.7 ha_release: pre 0.7
ha_iot_class: "Local Polling"
--- ---
@ -24,17 +25,16 @@ sensor:
pins: pins:
1: 1:
name: Door switch name: Door switch
type: analog
0: 0:
name: Brightness name: Brightness
type: analog
``` ```
Configuration variables: Configuration variables:
- **pins** (*Required*): Array of pins to use. The number corresponds with the pin numbering schema of your board. - **pins** array (*Required*): Array of pins to use.
- **name**: Name that will be used in the frontend for the pin. - **[number]** (*Required*): The pin number that corresponds with the pin numbering schema of your board.
- **type**: The type of the pin. At the moment only 'analog' is supported. - **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. The 6 analog pins of an Arduino UNO are numbered from A0 to A5.

View File

@ -10,6 +10,7 @@ footer: true
logo: arduino.png logo: arduino.png
ha_category: DIY ha_category: DIY
ha_release: pre 0.7 ha_release: pre 0.7
ha_iot_class: "Local Polling"
--- ---
@ -24,21 +25,20 @@ switch:
pins: pins:
11: 11:
name: Fan Office name: Fan Office
type: digital
12: 12:
name: Light Desk name: Light Desk
type: digital type: digital
default: on initial: true
negate: true negate: true
``` ```
Configuration variables: Configuration variables:
- **pins** (*Required*): Array of pins to use. The number corresponds with the pin numbering schema of your board. - **pins** array (*Required*): List of pins to use.
- **name**: Name that will be used in the frontend for the pin. - **[number]** (*Required*): The pin number that corresponds with the pin numbering schema of your board.
- **type**: The type of the pin. At the moment only 'digital' is supported. - **name** (*Required*): Name that will be used in the frontend for the pin.
- **default**: The initial value for this port. - **initial** (*Optional*): The initial value for this port. Defaults to `False` .
- **negate**: If this pin should be inverted. - **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.