Closed sairon closed 4 months ago
Thanks! Compiled it together with bluetooth proxy and worked. Flash 91% ... Upload of new TFT file also worked fine!
I'm curious here... Why don't you guys use the Nextion component from ESPHome? I see your library is way simpler and probably easier to maintain, but other than that, is there a reason to be by the side? It would be nice if we can collaborate more with each other... 😉 And please let me know if you have issues with the idf code for uploading TFT. I will be happy to help.
@edwardtfn The reason for a separate component is that it implements the custom protocol used by the NSPanel Lovelace UI Nextion firmware. See the repo's readme for details - the goal is to have an easy to use component, similarly to what Jesse did (but never merged) for the stock NSPanel FW. I imagine the same might be possible to achieve with the Nextion component and bunch of lambda scripts, but it will be hard to use and maintain. And using a custom component for comms and upstream Nextion for upload is not possible either, because they will have to share the same UART.
I have switched all my 6 panels from arduino to idf - no issues so far. Thanks a loot
From time to time I have follwing warnings in the logs: [17:17:52][W][component:214]: Component mqtt took a long time for an operation (0.12 s). [17:17:52][W][component:215]: Components should block for at most 20-30ms. [17:18:00][W][component:214]: Component mqtt took a long time for an operation (0.08 s). [17:18:00][W][component:215]: Components should block for at most 20-30ms.
Hey, you may wanna know that the original version where I've added support to ESP-IDF wasn't supporting HTTPS. I've added that support to the ESPHome component (esphome/esphome#6051) and it works pretty solid. You can use that to download the files directly from GitHub, removing the need of copying the files to a local http server.
Now it works with https: https://github.com/esphome/esphome/pull/6051
@sairon Could you merge then? It works stable in my condiguration for some time and now https is possible
Hi @sairon I still hope you can merge this pull request so that this PR comes into focus: https://github.com/sairon/esphome-nspanel-lovelace-ui/pull/34
Add support for
esp-idf
framework, partially based on ESPHome PR esphome/esphome#5667 by @edwardtfn (thank you, Edward!). The upstream code has been refactored to share more when Arduino or ESP-IDF is used and to use baud rate switching used in this "fork".This is currently still WIP, I will do a bit more refactoring and testing, but initial tests are looking good and there are indeed some resource savings when compared to Arduino, as seen with my testing config:
Arduino:
ESP-IDF:
Fixes #23.
For those who are eager to try (more testers are always welcome!), simply update
ref
in your config toadd-esp-idf-support
, and ideally also therefresh
time:It is recommended to use serial for transition from Arduino to IDF, because IIRC the partition layout is a bit different, but I have tested the OTA works both ways without problems too.