Use the ratgdo pins configured in the substitutions section (#4)
This commit is contained in:
parent
d95e9806bf
commit
86b018ed25
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue