This commit is contained in:
J. Nick Koston 2023-06-09 16:07:51 -05:00
parent 2c6f4da3fe
commit 0eaeea4238
No known key found for this signature in database
1 changed files with 8 additions and 13 deletions

View File

@ -21,7 +21,14 @@ external_components:
ratgdo:
id: ${id_prefix}
uart:
tx_pin:
number: D4 # red control terminal / GarageDoorOpener (UART1 TX) pin is D4 on D1 Mini
inverted: true
rx_pin:
number: D2 # red control terminal / GarageDoorOpener (UART1 RX) pin is D2 on D1 Mini
inverted: true
baud_rate: 9600
switch:
- platform: ratgdo
@ -30,7 +37,6 @@ switch:
entity_category: config
ratgdo_id: ${id_prefix}
name: "${friendly_name} Lock remotes"
- platform: gpio
id: "${id_prefix}_status_door"
pin:
@ -138,23 +144,12 @@ cover:
on_open:
- switch.turn_on: ${id_prefix}_status_door
light:
- platform: ratgdo
id: ${id_prefix}_light
name: "${friendly_name} Light"
ratgdo_id: ${id_prefix}
uart:
tx_pin:
number: D4 # red control terminal / GarageDoorOpener (UART1 TX) pin is D4 on D1 Mini
inverted: true
rx_pin:
number: D2 # red control terminal / GarageDoorOpener (UART1 RX) pin is D2 on D1 Mini
inverted: true
baud_rate: 9600
button:
- platform: restart
name: "${friendly_name} Restart"