Use the ratgdo pins configured in the substitutions section (#4)

This commit is contained in:
Marius Muja 2023-06-23 06:52:29 -07:00 committed by GitHub
parent d95e9806bf
commit 86b018ed25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,9 @@ external_components:
ratgdo: ratgdo:
id: ${id_prefix} id: ${id_prefix}
input_gdo_pin: ${uart_rx_pin}
output_gdo_pin: ${uart_tx_pin}
input_obst_pin: ${input_obst_pin}
sensor: sensor:
- platform: ratgdo - platform: ratgdo

View File

@ -4,6 +4,7 @@ substitutions:
friendly_name: "RATGDOv2" friendly_name: "RATGDOv2"
uart_tx_pin: D4 uart_tx_pin: D4
uart_rx_pin: D2 uart_rx_pin: D2
input_obst_pin: D7
status_door_pin: D0 status_door_pin: D0
status_obstruction_pin: D8 status_obstruction_pin: D8
dry_contact_open_pin: D5 dry_contact_open_pin: D5

View File

@ -4,6 +4,7 @@ substitutions:
friendly_name: "ratgdov2" friendly_name: "ratgdov2"
uart_tx_pin: D4 uart_tx_pin: D4
uart_rx_pin: D2 uart_rx_pin: D2
input_obst_pin: D7
status_door_pin: D0 status_door_pin: D0
status_obstruction_pin: D8 status_obstruction_pin: D8
dry_contact_open_pin: D5 dry_contact_open_pin: D5