Hello
I am trying send sensor value from ha by esphome to Nextion LCD.
This is not binary_sensor and I have no idea how to do that .
I found only simple code on esphome.io
As mentioned above by @Hellis81 … there are plenty examples, see below.
If not already done : in order to present things on a nextion page, this MUST have the page and objects predefined ON the nextion, for this you need to use Nextion Editor and load the bin to the screen.
My entry into this nextion-world came from below…have a look and yes…it is not as simple albeit not very complex too (Nextion editor a bit odd)
I did some projects in Arduino IDE with sensors and servos.
Both way comunication and that works great with my Nextion.
The time has come for ESPhome
I have only one text object defined in Nextion Editor as t0(text) now.
tft file uploaded, comunication OK between Nextion and ESPhome.
I want print Hello World for test
Not sure what that is, I am using : set_component_text_printf as does @Hellis81 and using the objnames Home and text1
Again, plenty of other posts and examples … there is even a discord group …I myself will log off of this
OK I probably found a problem, something is wrong with my wemos d1 or power adapter.
It works but not every time, new flash or reboot can kill functionality
I’ve seen blinks Hello World! and sensor value for 3 seconds.
Thanks guys
This is my simple working code:
Unfortunatelly it looks like my nextion nx4832t035_011 is damaged.
I tested wemos and lolin exactly the same problems.
Nextion display values occasionally.
Both esp can not connect to wifi when nextion is wired and on.
I found solution using Lolin v2 with Nextion!
That was Tx/Rx pins problem. Can’t be used pins 15/13.
My setup works well with 1/3 pins and logger entry:
Just out of curiosity, if you try to reset from the ESP button without removing power, does the display work? From the latest Esphome updates it seems that there is a synchronization problem. However, if the power is removed and reconnected ESP it works, but with a restart esp only the panel no longer works.