mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-01 18:48:28 +02:00
Checks for pins used in multiple places (#5666)
This commit is contained in:
+128
-41
@@ -223,55 +223,102 @@ uart:
|
||||
tx_pin:
|
||||
number: GPIO1
|
||||
inverted: true
|
||||
rx_pin: GPIO3
|
||||
allow_other_uses: true
|
||||
rx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO3
|
||||
baud_rate: 115200
|
||||
- id: uart_2
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
tx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO4
|
||||
rx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO5
|
||||
baud_rate: 9600
|
||||
- id: uart_3
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
tx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO4
|
||||
rx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO5
|
||||
baud_rate: 4800
|
||||
- id: uart_4
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
tx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO4
|
||||
rx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO5
|
||||
baud_rate: 9600
|
||||
- id: uart_5
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
tx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO4
|
||||
rx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO5
|
||||
baud_rate: 9600
|
||||
- id: uart_6
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
tx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO4
|
||||
rx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO5
|
||||
baud_rate: 9600
|
||||
- id: uart_7
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
tx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO4
|
||||
rx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO5
|
||||
baud_rate: 38400
|
||||
- id: uart_8
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
tx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO4
|
||||
rx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO5
|
||||
baud_rate: 4800
|
||||
parity: NONE
|
||||
stop_bits: 2
|
||||
# Specifically added for testing debug with no options at all.
|
||||
debug:
|
||||
- id: uart_9
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
tx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO4
|
||||
rx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO5
|
||||
baud_rate: 9600
|
||||
- id: uart_10
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
tx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO4
|
||||
rx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO5
|
||||
baud_rate: 9600
|
||||
- id: uart_11
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
tx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO4
|
||||
rx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO5
|
||||
baud_rate: 9600
|
||||
- id: uart_12
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
tx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO4
|
||||
rx_pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO5
|
||||
baud_rate: 9600
|
||||
|
||||
modbus:
|
||||
@@ -748,13 +795,19 @@ binary_sensor:
|
||||
|
||||
- platform: gpio
|
||||
id: bin1
|
||||
pin: 1
|
||||
pin:
|
||||
allow_other_uses: true
|
||||
number: 1
|
||||
- platform: gpio
|
||||
id: bin2
|
||||
pin: 2
|
||||
pin:
|
||||
allow_other_uses: true
|
||||
number: 2
|
||||
- platform: gpio
|
||||
id: bin3
|
||||
pin: 3
|
||||
pin:
|
||||
allow_other_uses: true
|
||||
number: 3
|
||||
|
||||
globals:
|
||||
- id: my_global_string
|
||||
@@ -762,11 +815,15 @@ globals:
|
||||
initial_value: '""'
|
||||
|
||||
remote_receiver:
|
||||
pin: GPIO12
|
||||
pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO12
|
||||
dump: []
|
||||
|
||||
status_led:
|
||||
pin: GPIO2
|
||||
pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO2
|
||||
|
||||
text_sensor:
|
||||
- platform: daly_bms
|
||||
@@ -819,13 +876,19 @@ script:
|
||||
switch:
|
||||
- platform: gpio
|
||||
id: gpio_switch1
|
||||
pin: 1
|
||||
pin:
|
||||
allow_other_uses: true
|
||||
number: 1
|
||||
- platform: gpio
|
||||
id: gpio_switch2
|
||||
pin: 2
|
||||
pin:
|
||||
allow_other_uses: true
|
||||
number: 2
|
||||
- platform: gpio
|
||||
id: gpio_switch3
|
||||
pin: 3
|
||||
pin:
|
||||
allow_other_uses: true
|
||||
number: 3
|
||||
|
||||
- platform: nextion
|
||||
id: r0
|
||||
@@ -1023,13 +1086,18 @@ sprinkler:
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
id: out
|
||||
pin: D3
|
||||
pin:
|
||||
number: D3
|
||||
frequency: 50Hz
|
||||
- platform: esp8266_pwm
|
||||
id: out2
|
||||
pin: D4
|
||||
pin:
|
||||
allow_other_uses: true
|
||||
number: D4
|
||||
- platform: slow_pwm
|
||||
pin: GPIO5
|
||||
pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO5
|
||||
id: my_slow_pwm
|
||||
period: 15s
|
||||
restart_cycle_on_state_change: false
|
||||
@@ -1039,7 +1107,9 @@ e131:
|
||||
light:
|
||||
- platform: neopixelbus
|
||||
name: Neopixelbus Light
|
||||
pin: GPIO1
|
||||
pin:
|
||||
allow_other_uses: true
|
||||
number: GPIO1
|
||||
type: GRBW
|
||||
variant: SK6812
|
||||
method: ESP8266_UART0
|
||||
@@ -1071,6 +1141,12 @@ light:
|
||||
max_brightness: 500
|
||||
firmware: "51.6"
|
||||
uart_id: uart_11
|
||||
nrst_pin:
|
||||
number: 5
|
||||
allow_other_uses: true
|
||||
boot0_pin:
|
||||
number: 4
|
||||
allow_other_uses: true
|
||||
|
||||
sim800l:
|
||||
uart_id: uart_4
|
||||
@@ -1096,8 +1172,12 @@ dfplayer:
|
||||
logger.log: Playback finished event
|
||||
tm1651:
|
||||
id: tm1651_battery
|
||||
clk_pin: D6
|
||||
dio_pin: D5
|
||||
clk_pin:
|
||||
allow_other_uses: true
|
||||
number: D6
|
||||
dio_pin:
|
||||
allow_other_uses: true
|
||||
number: D5
|
||||
|
||||
rf_bridge:
|
||||
uart_id: uart_5
|
||||
@@ -1150,7 +1230,9 @@ display:
|
||||
lambda: 'ESP_LOGD("display","Display shows new page %u", x);'
|
||||
|
||||
fingerprint_grow:
|
||||
sensing_pin: 4
|
||||
sensing_pin:
|
||||
allow_other_uses: true
|
||||
number: 4
|
||||
password: 0x12FE37DC
|
||||
new_password: 0xA65B9840
|
||||
on_finger_scan_matched:
|
||||
@@ -1184,7 +1266,9 @@ dsmr:
|
||||
decryption_key: 00112233445566778899aabbccddeeff
|
||||
uart_id: uart_6
|
||||
max_telegram_length: 1000
|
||||
request_pin: D5
|
||||
request_pin:
|
||||
allow_other_uses: true
|
||||
number: D5
|
||||
request_interval: 20s
|
||||
receive_timeout: 100ms
|
||||
|
||||
@@ -1197,8 +1281,11 @@ qr_code:
|
||||
value: https://esphome.io/index.html
|
||||
|
||||
lightwaverf:
|
||||
read_pin: 13
|
||||
write_pin: 14
|
||||
read_pin:
|
||||
number: 13
|
||||
write_pin:
|
||||
allow_other_uses: true
|
||||
number: 14
|
||||
|
||||
alarm_control_panel:
|
||||
- platform: template
|
||||
|
||||
Reference in New Issue
Block a user