Added workaround for using analog pins with binary_sensors (#21047)

This commit is contained in:
Christian Schneider 2022-01-07 19:42:56 +01:00 committed by GitHub
parent 614cc37f45
commit e3d5e53876
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,7 +142,7 @@ binary_sensor:
required: true
type: string
pin:
description: The digital or analog pin number on the board.
description: The digital or analog pin number on the board. For analog pins the corresponding digital number must be used. Please use the pinout that corresponds to your board. For example, on the Arduino Uno, pin A2 corresponds to the digital pin number 16.
required: true
type: [integer, string]
pin_mode:
@ -232,7 +232,7 @@ firmata:
negate: true
- name: my_other_door
pin_mode: INPUT
pin: A1
pin: 16 # A2
negate: true
sensors:
- name: my_sensor