From 50f87a164954dd6511bbf558c7fe2fe141bc10e9 Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Tue, 2 May 2023 14:14:37 +0200 Subject: [PATCH] Rename uart0 to uart_0 (#111) --- .github/workflows/ci.yaml | 4 +++- README.md | 4 ++-- debug-esp32-example.yaml | 5 ++--- debug-esp8266-example.yaml | 4 ++-- multi-rs-esp8266-example.yaml | 4 ++-- phoenix-charger-esp8266-example.yaml | 4 ++-- phoenix-inverter-esp8266-example.yaml | 4 ++-- smartshunt-esp8266-example.yaml | 4 ++-- smartsolar-mppt-esp8266-example-multiple-uarts.yaml | 8 ++++---- smartsolar-mppt-esp8266-example.yaml | 4 ++-- 10 files changed, 23 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index baa065c..d653144 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -127,8 +127,10 @@ jobs: git commit -a -m "Add external component" working-directory: ${{ env.esphome_directory }} + - name: Add missing requirements + run: pip3 install setuptools wheel - name: Set up python environment - run: script/setup + run: VIRTUAL_ENV=false script/setup working-directory: ${{ env.esphome_directory }} - name: Register problem matchers diff --git a/README.md b/README.md index b3da7a4..db47046 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ external_components: - source: github://KinDR007/VictronMPPT-ESPHOME@main uart: - id: uart0 + id: uart_0 tx_pin: D8 # Not used! The communication is read-only rx_pin: D7 baud_rate: 19200 @@ -73,7 +73,7 @@ uart: victron: id: victron0 - uart_id: uart0 + uart_id: uart_0 sensor: - platform: victron diff --git a/debug-esp32-example.yaml b/debug-esp32-example.yaml index 06cd2af..99e30f7 100644 --- a/debug-esp32-example.yaml +++ b/debug-esp32-example.yaml @@ -11,7 +11,6 @@ esp32: board: wemos_d1_mini32 framework: type: esp-idf - version: latest external_components: - source: ${external_components_source} @@ -26,7 +25,7 @@ api: logger: uart: - id: uart0 + id: uart_0 baud_rate: 19200 tx_pin: ${tx_pin} rx_pin: ${rx_pin} @@ -39,7 +38,7 @@ uart: - lambda: UARTDebug::log_string(direction, bytes); victron: - uart_id: uart0 + uart_id: uart_0 id: victron0 throttle: 10s diff --git a/debug-esp8266-example.yaml b/debug-esp8266-example.yaml index e77542d..af8a88c 100644 --- a/debug-esp8266-example.yaml +++ b/debug-esp8266-example.yaml @@ -25,7 +25,7 @@ logger: esp8266_store_log_strings_in_flash: false uart: - id: uart0 + id: uart_0 baud_rate: 19200 tx_pin: ${tx_pin} rx_pin: ${rx_pin} @@ -38,7 +38,7 @@ uart: - lambda: UARTDebug::log_string(direction, bytes); victron: - uart_id: uart0 + uart_id: uart_0 id: victron0 throttle: 10s diff --git a/multi-rs-esp8266-example.yaml b/multi-rs-esp8266-example.yaml index 94f9ca5..50ef692 100644 --- a/multi-rs-esp8266-example.yaml +++ b/multi-rs-esp8266-example.yaml @@ -29,14 +29,14 @@ mqtt: id: mqtt_client uart: - id: uart0 + id: uart_0 tx_pin: D8 # Not connected! The communication is read-only rx_pin: D7 # Connect this this GPIO and GND to the MPPT charger baud_rate: 19200 rx_buffer_size: 256 victron: - uart_id: uart0 + uart_id: uart_0 id: victron0 throttle: 10s diff --git a/phoenix-charger-esp8266-example.yaml b/phoenix-charger-esp8266-example.yaml index 9512bd0..cc8818e 100644 --- a/phoenix-charger-esp8266-example.yaml +++ b/phoenix-charger-esp8266-example.yaml @@ -29,14 +29,14 @@ mqtt: id: mqtt_client uart: - id: uart0 + id: uart_0 tx_pin: D8 # Not connected! The communication is read-only rx_pin: D7 # Connect this this GPIO and GND to the MPPT charger baud_rate: 19200 rx_buffer_size: 256 victron: - uart_id: uart0 + uart_id: uart_0 id: victron0 throttle: 10s diff --git a/phoenix-inverter-esp8266-example.yaml b/phoenix-inverter-esp8266-example.yaml index 305f024..b91e494 100644 --- a/phoenix-inverter-esp8266-example.yaml +++ b/phoenix-inverter-esp8266-example.yaml @@ -29,14 +29,14 @@ mqtt: id: mqtt_client uart: - id: uart0 + id: uart_0 tx_pin: D8 # Not connected! The communication is read-only rx_pin: D7 # Connect this this GPIO and GND to the MPPT charger baud_rate: 19200 rx_buffer_size: 256 victron: - uart_id: uart0 + uart_id: uart_0 id: victron0 throttle: 10s diff --git a/smartshunt-esp8266-example.yaml b/smartshunt-esp8266-example.yaml index 47e7441..19fc65e 100644 --- a/smartshunt-esp8266-example.yaml +++ b/smartshunt-esp8266-example.yaml @@ -29,14 +29,14 @@ mqtt: id: mqtt_client uart: - id: uart0 + id: uart_0 tx_pin: D8 # Not connected! The communication is read-only rx_pin: D7 # Connect this this GPIO and GND to the MPPT charger baud_rate: 19200 rx_buffer_size: 256 victron: - uart_id: uart0 + uart_id: uart_0 id: victron0 throttle: 10s diff --git a/smartsolar-mppt-esp8266-example-multiple-uarts.yaml b/smartsolar-mppt-esp8266-example-multiple-uarts.yaml index d349f40..9ff47a9 100644 --- a/smartsolar-mppt-esp8266-example-multiple-uarts.yaml +++ b/smartsolar-mppt-esp8266-example-multiple-uarts.yaml @@ -31,12 +31,12 @@ mqtt: id: mqtt_client uart: - - id: uart0 + - id: uart_0 tx_pin: D8 # Not connected! The communication is read-only rx_pin: D7 # Connect this this GPIO and GND to the first MPPT charger baud_rate: 19200 rx_buffer_size: 256 - - id: uart1 + - id: uart_1 tx_pin: D6 # Not connected! The communication is read-only rx_pin: D5 # Connect this this GPIO and GND to the second MPPT charger baud_rate: 19200 @@ -44,10 +44,10 @@ uart: victron: - id: victron0 - uart_id: uart0 + uart_id: uart_0 throttle: 10s - id: victron1 - uart_id: uart1 + uart_id: uart_1 throttle: 10s sensor: diff --git a/smartsolar-mppt-esp8266-example.yaml b/smartsolar-mppt-esp8266-example.yaml index d82c256..5f916d1 100644 --- a/smartsolar-mppt-esp8266-example.yaml +++ b/smartsolar-mppt-esp8266-example.yaml @@ -29,14 +29,14 @@ mqtt: id: mqtt_client uart: - id: uart0 + id: uart_0 tx_pin: D8 # Not connected! The communication is read-only rx_pin: D7 # Connect this this GPIO and GND to the MPPT charger baud_rate: 19200 rx_buffer_size: 256 victron: - uart_id: uart0 + uart_id: uart_0 id: victron0 throttle: 10s