Skip to content

Commit

Permalink
Rename uart0 to uart_0 (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed May 2, 2023
1 parent 6b2b50f commit 50f87a1
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 22 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ 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
rx_buffer_size: 256

victron:
id: victron0
uart_id: uart0
uart_id: uart_0

sensor:
- platform: victron
Expand Down
5 changes: 2 additions & 3 deletions debug-esp32-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ esp32:
board: wemos_d1_mini32
framework:
type: esp-idf
version: latest

external_components:
- source: ${external_components_source}
Expand All @@ -26,7 +25,7 @@ api:
logger:

uart:
id: uart0
id: uart_0
baud_rate: 19200
tx_pin: ${tx_pin}
rx_pin: ${rx_pin}
Expand All @@ -39,7 +38,7 @@ uart:
- lambda: UARTDebug::log_string(direction, bytes);

victron:
uart_id: uart0
uart_id: uart_0
id: victron0
throttle: 10s

Expand Down
4 changes: 2 additions & 2 deletions debug-esp8266-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -38,7 +38,7 @@ uart:
- lambda: UARTDebug::log_string(direction, bytes);

victron:
uart_id: uart0
uart_id: uart_0
id: victron0
throttle: 10s

Expand Down
4 changes: 2 additions & 2 deletions multi-rs-esp8266-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions phoenix-charger-esp8266-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions phoenix-inverter-esp8266-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions smartshunt-esp8266-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions smartsolar-mppt-esp8266-example-multiple-uarts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@ 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
rx_buffer_size: 256

victron:
- id: victron0
uart_id: uart0
uart_id: uart_0
throttle: 10s
- id: victron1
uart_id: uart1
uart_id: uart_1
throttle: 10s

sensor:
Expand Down
4 changes: 2 additions & 2 deletions smartsolar-mppt-esp8266-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 50f87a1

Please sign in to comment.