From e439953fdbe94331c9270716d904dede164e1738 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Wed, 8 Nov 2023 23:44:53 +0100 Subject: [PATCH] Fix parameter name on `send_command_value` --- nspanel_esphome_core.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nspanel_esphome_core.yaml b/nspanel_esphome_core.yaml index 20b2aed..396bb61 100644 --- a/nspanel_esphome_core.yaml +++ b/nspanel_esphome_core.yaml @@ -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");