From 86b018ed25a18e74c200207c0536ba8eb5a070c5 Mon Sep 17 00:00:00 2001 From: Marius Muja Date: Fri, 23 Jun 2023 06:52:29 -0700 Subject: [PATCH] Use the ratgdo pins configured in the substitutions section (#4) --- base.yaml | 3 +++ static/v2board_esp32_d1_mini.yaml | 1 + static/v2board_esp8266_d1_mini_lite.yaml | 1 + 3 files changed, 5 insertions(+) diff --git a/base.yaml b/base.yaml index 77dadcd..79d0de0 100644 --- a/base.yaml +++ b/base.yaml @@ -8,6 +8,9 @@ external_components: ratgdo: id: ${id_prefix} + input_gdo_pin: ${uart_rx_pin} + output_gdo_pin: ${uart_tx_pin} + input_obst_pin: ${input_obst_pin} sensor: - platform: ratgdo diff --git a/static/v2board_esp32_d1_mini.yaml b/static/v2board_esp32_d1_mini.yaml index d23c169..70199b0 100644 --- a/static/v2board_esp32_d1_mini.yaml +++ b/static/v2board_esp32_d1_mini.yaml @@ -4,6 +4,7 @@ substitutions: friendly_name: "RATGDOv2" uart_tx_pin: D4 uart_rx_pin: D2 + input_obst_pin: D7 status_door_pin: D0 status_obstruction_pin: D8 dry_contact_open_pin: D5 diff --git a/static/v2board_esp8266_d1_mini_lite.yaml b/static/v2board_esp8266_d1_mini_lite.yaml index 3e67d55..939c174 100644 --- a/static/v2board_esp8266_d1_mini_lite.yaml +++ b/static/v2board_esp8266_d1_mini_lite.yaml @@ -4,6 +4,7 @@ substitutions: friendly_name: "ratgdov2" uart_tx_pin: D4 uart_rx_pin: D2 + input_obst_pin: D7 status_door_pin: D0 status_obstruction_pin: D8 dry_contact_open_pin: D5