diff --git a/source/_components/sensor.arduino.markdown b/source/_components/sensor.arduino.markdown index b761c0b82779..3989aaf95f19 100644 --- a/source/_components/sensor.arduino.markdown +++ b/source/_components/sensor.arduino.markdown @@ -10,6 +10,7 @@ footer: true logo: arduino.png ha_category: DIY ha_release: pre 0.7 +ha_iot_class: "Local Polling" --- @@ -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. diff --git a/source/_components/switch.arduino.markdown b/source/_components/switch.arduino.markdown index 5d6a882c3795..2b57d01cb940 100644 --- a/source/_components/switch.arduino.markdown +++ b/source/_components/switch.arduino.markdown @@ -10,6 +10,7 @@ footer: true logo: arduino.png ha_category: DIY ha_release: pre 0.7 +ha_iot_class: "Local Polling" --- @@ -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.