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");