Fix parameter name on send_command_value
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user