Add support to change baud rate with Nextion (#662)

* User's defined baud_rate

* Update nspanel_esphome.yaml

* Bump version to 3.2.3
This commit is contained in:
Edward Firmo
2023-04-14 00:49:25 +02:00
committed by GitHub
parent 5d523eabd6
commit 433e83d931

View File

@@ -7,7 +7,8 @@
##### ADVANCED CONFIGURATION - activate only when you know what you do ############################## ##### ADVANCED CONFIGURATION - activate only when you know what you do ##############################
# substitutions: substitutions:
baud_rate: "115200"
# ## usage of secrets-file ## -> comment in ###### Change ME ###### # ## usage of secrets-file ## -> comment in ###### Change ME ######
# device_name: "nspanel-name" # Wird im Blueprint benötigt! # device_name: "nspanel-name" # Wird im Blueprint benötigt!
# wifi_ssid: !secret nspanel_wifi_ssid # add in your esphome secrets file. # wifi_ssid: !secret nspanel_wifi_ssid # add in your esphome secrets file.
@@ -88,7 +89,7 @@ ota:
##### LOGGER ##### ##### LOGGER #####
logger: logger:
# baud_rate: 0 baud_rate: 0
# level: WARN # level: WARN
##### CONFIGURE INTERNAL BUZZER ##### ##### CONFIGURE INTERNAL BUZZER #####
@@ -108,7 +109,7 @@ rtttl:
uart: uart:
tx_pin: 16 tx_pin: 16
rx_pin: 17 rx_pin: 17
baud_rate: 115200 baud_rate: ${baud_rate}
id: tf_uart id: tf_uart
##### START - BUTTON CONFIGURATION ##### ##### START - BUTTON CONFIGURATION #####
@@ -968,7 +969,7 @@ display:
on_setup: on_setup:
then: then:
- lambda: id(disp1).send_command_printf("page 8"); - lambda: id(disp1).send_command_printf("page 8");
- lambda: id(disp1).set_component_text_printf("boot.esph_version", "%s", "3.2.2"); ### esphome-version ### - lambda: id(disp1).set_component_text_printf("boot.esph_version", "%s", "3.2.3"); ### esphome-version ###
- wait_until: - wait_until:
api.connected api.connected
- lambda: id(disp1).set_component_text_printf("boot.ip_addr", "%s", id(ip_address).state.c_str()); - lambda: id(disp1).set_component_text_printf("boot.ip_addr", "%s", id(ip_address).state.c_str());