Fix parameter name on send_command_value

This commit is contained in:
Edward Firmo
2023-11-08 23:44:53 +01:00
parent dbc61f9ecb
commit e439953fdb

View File

@@ -348,9 +348,9 @@ api:
- service: send_command_value
variables:
component: string
value: int
message: int
then:
- lambda: 'disp1->set_component_value(component.c_str(), value);'
- lambda: 'disp1->set_component_value(component.c_str(), message);'
##### Service to send a command "hide componente" directly to the display #####
- service: send_command_hide ### unused ###
@@ -712,7 +712,7 @@ display:
- id: disp1
platform: nextion
uart_id: tf_uart
#start_up_page: 8 ####### Enable this when https://github.com/esphome/esphome/pull/5673 is merged
start_up_page: 8
on_page: # I couldn't make this trigger to work, so used text_sensor nspanelevent and localevent instead
lambda: |-
ESP_LOGW("display.disp1.on_page", "NEXTION PAGE CHANGED");