Fix parameter name on send_command_value
This commit is contained in:
@@ -348,9 +348,9 @@ api:
|
|||||||
- service: send_command_value
|
- service: send_command_value
|
||||||
variables:
|
variables:
|
||||||
component: string
|
component: string
|
||||||
value: int
|
message: int
|
||||||
then:
|
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 to send a command "hide componente" directly to the display #####
|
||||||
- service: send_command_hide ### unused ###
|
- service: send_command_hide ### unused ###
|
||||||
@@ -712,7 +712,7 @@ display:
|
|||||||
- id: disp1
|
- id: disp1
|
||||||
platform: nextion
|
platform: nextion
|
||||||
uart_id: tf_uart
|
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
|
on_page: # I couldn't make this trigger to work, so used text_sensor nspanelevent and localevent instead
|
||||||
lambda: |-
|
lambda: |-
|
||||||
ESP_LOGW("display.disp1.on_page", "NEXTION PAGE CHANGED");
|
ESP_LOGW("display.disp1.on_page", "NEXTION PAGE CHANGED");
|
||||||
|
|||||||
Reference in New Issue
Block a user