esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
291 stars 34 forks source link

on_page nextion not being triggered #5875

Open vekexasia opened 1 month ago

vekexasia commented 1 month ago

The problem

Hello,

I fully own my nextion hmi. It seems on_page is never called.

Which version of ESPHome has the issue?

2024.5.4

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2024.5.5

What platform are you using?

ESP32

Board

ESP32-S3-WROOM-1-N16R8

Component causing the issue

nextion

Example YAML snippet

display:
  - platform: nextion
    id: disp1
    uart_id: tf_uart
    tft_url: $tft_url
    on_page: 
      then: 
        - logger.log: "ciao"

Anything in the logs that might be useful for us?

nothing besides that touch events are being propagaged

Additional information

using idf

edwardtfn commented 3 weeks ago

You need a sendme command on each page load (either on Preinitialize Event or Postinitialize Event) to have ESPHome informed of a page change and therefore be capable to trigger that event.