Nextion Receive Data from Display

Good evening everybody,

has someone an idea how to send data from an Nextion Display to the ESP32?
I can send via UART and the Nextion printh / prints function but how do i receive?
To be exact, i want to select a color on the Display and receive the color in esphome and set my WS2812B to this color.

Best regards,
Tim Scheuermann

Hi nickrout,
thanks for your reply.
I read the Touch Component Link and it didn’t help me.

When programming printh in a Nextion Touch Release Event I can see the hex values in the esphome logs while running, but how do I put them into a variable in esphome?

Best regards and stay healthy

There are three nextion examples here https://github.com/bruxy70/Irrigation-with-display

Sorry that is not helping me.
Any other more specific ideas?

You touch something on the nextion, it affects a binary sensor on the esp. You will get on_press, on_release, etc events. It is up to your logic on the esp how to react to those events.