4b5435fd93
[nextion] Use 16-bit id for pics ( #12330 )
...
Co-authored-by: Szczepan <szczepan.staszak@gmail.com >
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-12-07 15:16:49 -05:00
Edward Firmo and Jonathan Swoboda
9289fc36f7
[nextion] Do not set alternative baud rate when not specified or <= 0 ( #12097 )
2025-11-27 17:23:27 -05:00
Edward Firmo and GitHub
c30b920193
[nextion] Do not set alternative baud rate when not specified or <= 0 ( #12097 )
2025-11-25 07:48:32 -05:00
Edward Firmo and Jesse Hills
7ce94c27fe
[wifi] Allow use_psram with Arduino ( #11902 )
2025-11-17 15:32:09 +13:00
Edward Firmo and Jesse Hills
eb54c0026d
[light] Fix missing ColorMode::BRIGHTNESS case in logging ( #11836 )
2025-11-17 15:32:09 +13:00
Edward Firmo and GitHub
e49a943cf7
[wifi] Allow use_psram with Arduino ( #11902 )
2025-11-14 09:13:48 -05:00
Edward Firmo and GitHub
2290eb0dd2
[light] Fix missing ColorMode::BRIGHTNESS case in logging ( #11836 )
2025-11-13 12:08:06 -06:00
Edward Firmo and GitHub
425c88ee94
[nextion] Send auto_wake_on_touch as part of startup commands on loop ( #11670 )
2025-11-02 16:06:13 -06:00
285e006637
[nextion] Add set_component_visibility() method for dynamic visibility control ( #11530 )
...
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-10-28 13:22:28 +13:00
Edward Firmo and GitHub
5647f36900
[nextion] Remove TFT upload baud rate validation to reduce flash usage ( #11012 )
2025-10-28 13:21:17 +13:00
Edward Firmo and GitHub
a3622d878d
[nextion] Reduce DEBUG logs on events ( #11014 )
2025-10-05 21:11:36 -04:00
Edward Firmo and GitHub
f5f84fe825
[nextion] Increase delay before reboot to prevent TFT upload interruption ( #10402 )
2025-09-09 12:57:24 +12:00
Edward Firmo and GitHub
90c2fdd565
[adc] Fix autorange negative coefficient bug causing incorrect voltage readings ( #10549 )
2025-09-09 12:56:18 +12:00
634f687c3e
[light] Add support for querying effects by index ( #10195 )
...
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-08-20 14:38:13 +12:00
Edward Firmo and GitHub
2b9e1ce315
[switch] Add trigger `on_state` ( #10108 )
2025-08-09 21:09:40 +10:00
Edward Firmo and GitHub
676c51ffa0
[switch] Add control() method to API ( #10118 )
2025-08-08 05:51:19 +00:00
c4d1b1317a
[switch] Add switch.control automation action ( #10105 )
...
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-08-08 08:55:54 +10:00
78c32eac04
[adc] Add ESP32-C5 support ( #9486 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
Co-authored-by: oxynatOr <98734567+oxynatOr@users.noreply.github.com >
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-07-16 23:32:44 +12:00
Edward Firmo and GitHub
9ae8c5b147
[adc] Test platforms on IDF ( #9536 )
2025-07-16 19:35:33 +12:00
5480675dd8
[adc] Use new library with ESP-IDF v5 ( #9021 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-07-16 13:03:19 +12:00
Edward Firmo and GitHub
c4fac1a2ae
[nextion] Optimize component memory usage with bitfield state management ( #9373 )
2025-07-08 09:21:14 +12:00
Edward Firmo and GitHub
e88b8d10ec
[nextion] Add optional device info storage configuration ( #9366 )
2025-07-07 12:04:01 -05:00
Edward Firmo and GitHub
c6f7e84256
[nextion] Review touch_sleep_timeout ( #9345 )
2025-07-07 07:30:34 -05:00
4e25b6da7b
[nextion] Optimize settings memory usage with compile-time defines ( #9350 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-07-07 09:15:13 +00:00
Edward Firmo and GitHub
2510b5ffb5
[nextion] Replace boolean flags with bitfields to optimize memory usage ( #9359 )
2025-07-07 04:07:03 +00:00
Edward Firmo and GitHub
f7019a4ed7
[nextion] Memory optimization ( #9338 )
2025-07-05 21:56:53 -05:00
fae96e279c
[nextion] memory optimization ( #9164 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-07-02 03:25:06 +00:00
Edward Firmo and Jesse Hills
24587fe875
[nextion] Fix command spacing double timing and response blocking issues ( #9134 )
2025-06-23 23:32:22 +12:00
Edward Firmo and GitHub
7ab9083d77
[nextion] Revert to millis() on recv_ret_string_ ( #9168 )
2025-06-22 20:56:50 +00:00
Edward Firmo and GitHub
a6c20853ca
[nextion] Extract common upload_end_ function to shared file ( #9155 )
2025-06-21 11:26:14 +02:00
7dbad42470
[nextion] Cached timing optimization ( #9150 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
Co-authored-by: Keith Burzinski <kbx81x@gmail.com >
2025-06-20 07:46:12 +00:00
eb97781f68
[nextion] Add command queuing to prevent command loss when spacing is active ( #9139 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-06-20 01:38:40 -05:00
Edward Firmo and GitHub
2e9ac8945d
[nextion] Fix command spacing double timing and response blocking issues ( #9134 )
2025-06-19 13:41:20 +12:00
Edward Firmo and Jesse Hills
535c495b33
[nextion] Remove upload flags reset from success path to prevent TFT corruption ( #9064 )
2025-06-16 09:49:45 +12:00
Edward Firmo and GitHub
2a629cae93
[nextion] Remove upload flags reset from success path to prevent TFT corruption ( #9064 )
2025-06-13 13:39:32 +12:00
94848e4811
[nextion] Add configurable limit for commands processed per loop ( #8972 )
...
Co-authored-by: Keith Burzinski <kbx81x@gmail.com >
2025-06-10 07:27:46 +00:00
Edward Firmo and GitHub
3174f7ae86
[nextion] Optimize log messages to reduce memory usage ( #9039 )
2025-06-09 18:51:08 -05:00
ce4371a80d
[globals] Prevent redundant oversized string checks in loop ( #9001 )
...
Co-authored-by: J. Nick Koston <nick+github@koston.org >
2025-06-09 11:19:24 -05:00
Edward Firmo and GitHub
b98165e077
[nextion] Use safe restart to properly handle globals and restart logging ( #9010 )
2025-06-08 21:10:36 -05:00
Edward Firmo and GitHub
80fd827f8b
[nextion] Add optional max_queue_size limit to prevent queue overflows ( #8976 )
2025-06-04 06:13:35 -05:00
Edward Firmo and GitHub
a2e4ad90ba
[nextion] Allocate NextionQueue in PSRAM (if available) ( #8979 )
2025-05-31 02:52:42 -05:00
8bbc509b0b
[nextion] Adds a command pacer with command_spacing attribute ( #7948 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2025-05-05 20:08:16 +12:00
528d3672b4
[psram] Improve total PSRAM display in logs by using rounded KB values ( #8008 )
...
Co-authored-by: Djordje Mandic <6750655+DjordjeMandic@users.noreply.github.com >
2025-01-13 17:11:48 +13:00
Edward Firmo and GitHub
fef50afef8
[debug] Add ESP32 partition table logging to dump_config ( #8012 )
2025-01-13 17:08:20 +13:00
Edward Firmo and GitHub
aa1879082c
[debug] Add framework type to debug info ( #8013 )
2025-01-13 17:06:44 +13:00
e04743e381
[debug] Detailed reset reason ( #7729 )
...
Co-authored-by: Ramil Valitov <ramilvalitov@gmail.com >
2024-12-16 12:12:45 +13:00
Edward Firmo and GitHub
9816c27031
[nextion] Remove _internal from non-protected functions ( #7656 )
2024-12-16 11:00:44 +13:00
Edward Firmo and Jesse Hills
5382bd2a97
[adc] Restore missing LIBRETINY code in a separated file ( #7955 )
2024-12-16 07:57:06 +13:00
Edward Firmo and GitHub
df4224e779
[nextion] Publishes is_connected() ( #7961 )
2024-12-16 07:30:47 +13:00
Edward Firmo and GitHub
5877c57a35
[adc] Restore missing LIBRETINY code in a separated file ( #7955 )
2024-12-15 07:55:04 +13:00
Edward Firmo and GitHub
ce7ff15c8a
[pulse_counter] Fix volatile increment/decrement deprecation warnings ( #7954 )
2024-12-14 08:21:54 +11:00
Edward Firmo and GitHub
88742e0399
[rotary_encoder] Fix volatile increment/decrement deprecation warnings ( #7958 )
2024-12-14 08:16:11 +11:00
Edward Firmo and GitHub
437b236a4d
[adc] Split files by platform ( #7940 )
2024-12-10 13:38:45 +13:00
Edward Firmo and GitHub
846b091aac
[nextion] New trigger on_buffer_overflow ( #7772 )
2024-11-21 07:28:21 +13:00
Edward Firmo and GitHub
e6a1254e65
[sun] Implements is_above_horizon() ( #7754 )
2024-11-13 07:23:00 +13:00
Edward Firmo and GitHub
2597975ae0
[rtttl] Add get_gain() ( #7647 )
2024-10-22 16:29:16 +13:00
d0dc275e30
[nextion] Optionally skip connection handshake ( #6905 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2024-09-19 16:08:15 +12:00
Edward Firmo and GitHub
9d03f47233
[nextion] Add basic functions to Intelligent series ( #6791 )
2024-05-24 09:11:34 +12:00
Edward Firmo and GitHub
d410cc4f7b
[nextion] Fix type on sprintf for IDF v5 ( #6758 )
2024-05-16 22:22:18 +12:00
Edward Firmo and Jesse Hills
34585a6f15
[nextion] Replace flags to USE_ARDUINO ( #6700 )
2024-05-09 14:45:40 +12:00
Edward Firmo and GitHub
e48d02495b
[nextion] Replace flags to USE_ARDUINO ( #6700 )
2024-05-09 07:05:24 +12:00
f78397c77e
Fix recent definitions into defines.h ( #6667 )
...
Co-authored-by: Keith Burzinski <kbx81x@gmail.com >
2024-05-06 10:12:09 +12:00
a4a23d73b3
[nextion] Use persistent http connection for TFT upload (ESP-IDF) ( #6576 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2024-05-02 10:05:37 +12:00
c299dff124
[nextion] Use persistent http connection for TFT upload (Arduino) ( #6582 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2024-05-01 09:43:49 +12:00
Edward Firmo and GitHub
74fd52e05f
[nextion] Set alternative TFT update baud rate ( #6587 )
2024-04-30 21:29:57 +12:00
Edward Firmo and GitHub
05fbb260ee
[nextion] Exit reparse before update TFT ( #6589 )
2024-04-30 10:09:35 +12:00
Edward Firmo and GitHub
16e0b78c64
Define USE_ESP32_BLE ( #6585 )
2024-04-22 23:05:50 +12:00
Edward Firmo and GitHub
2e7ac26ada
Nextion send_command method ( #6540 )
...
This is a simplified version of `send_command_printf` without the `printf` support.
Manually send a raw command to the display.
param command The pcommand, like "page 0"
return Whether the send was successful.
2024-04-18 02:16:49 +00:00
Edward Firmo and GitHub
197f9d6d03
Nextion - Review types ( #6565 )
2024-04-18 12:10:10 +12:00
Edward Firmo and GitHub
39deb89108
Nextion - Do not refresh sensors while updating ( #6566 )
2024-04-18 12:05:37 +12:00
Edward Firmo and GitHub
8c323e2e4c
Nextion - Review set_protocol_reparse_mode() ( #6567 )
2024-04-18 11:07:05 +12:00
Edward Firmo and GitHub
6876c65eda
Define USE_PSRAM ( #6526 )
2024-04-15 17:13:31 +12:00
Edward Firmo and Jesse Hills
22f427165f
Shows component operation time in ms ( #6388 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2024-03-18 15:54:39 +13:00
0b9a022ef6
Shows component operation time in ms ( #6388 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2024-03-18 10:01:25 +13:00
Edward Firmo and GitHub
e753ac3a97
Fix Nextion set_component_picture call ( #6378 )
...
This fixes the call to the Nextion display to change the pic id from a component.
It was previously changing the attribute `val`, which is related to something else.
In addition, I've changed the parameter for picture_id to be uint_8, as Nextion requires an integer from 0 to 255 on this attribute.
2024-03-16 00:19:25 -05:00
Edward Firmo and GitHub
4812997429
Nextion TFT upload IDF memory optimization ( #6128 )
...
* Nextion TFT upload IDF memory optimization
This optimizes the memory in use for TFT upload when using `esp-idf` framework.
Basically, the engine establishes 3 connections to the the http/https server:
1. Fetch the file size (used to manage chunks and file size)
2. Transfer the 1st chunk (when it evaluates Nextion response to define either to continue from that point or to another point in the file)
3. Transfer the remaining data.
Until now, connection 1 was kept open during the whole process taking aprox 40kb of heap in a esp32dev (NSPanel in my tests) and the same amount of memory was needed to the 2nd and 3rd connections (which never competes to each other).
With this change, each connection is closed and released before opening the next one with a significant reduction on the required heap needed for this transfer.
This can still be improved to use a persistent connection, but I will look at this in the future, so it is not part of this change.
In addition to the better connection management, I've added quite a lot of log (mostly at VERBOSE level), which was used for troubleshooting here.
I was unsure about removing this. As it can be useful for others, I decided to keep it, but I will be fine about removing it if this is now in line with ESPHome best practices.
* clang-format
* Log response length
2024-01-23 01:49:28 -06:00
Edward Firmo and GitHub
869cdf122d
Nextion draw QR code at runtime ( #6027 )
2024-01-09 09:47:48 +09:00
Edward Firmo and GitHub
2bb5343d27
Extends UART change at runtime to ESP8266 ( #6019 )
2024-01-09 09:45:46 +09:00
Edward Firmo and GitHub
6061699eff
Nextion enable upload from https when using esp-idf ( #6051 )
2024-01-09 09:41:34 +09:00
Edward Firmo and GitHub
d3567f9ac6
Nextion queue size ( #6029 )
...
* Nextion `queue_size` function
Returns the size of Nextion queue.
For troubleshooting only.
* Move `queue_size` to `nextion.h`
This is where the queue is
* Inline doc
* clang-format
2023-12-28 23:15:06 -06:00
Edward Firmo and GitHub
5e2df0b6a2
Nextion allow underscore on names ( #5979 )
2023-12-21 02:34:33 -06:00
Edward Firmo and Jesse Hills
917e0f93ed
UARTComponent inline doc ( #5930 )
2023-12-18 16:51:10 +09:00
Edward Firmo and GitHub
94904f44f9
UARTComponent inline doc ( #5930 )
2023-12-18 08:19:30 +09:00
Edward Firmo and GitHub
81aa48a5f3
Exposes load_settings to UARTComponent class ( #5920 )
2023-12-14 07:45:08 +09:00
9daaadb3b6
UART change at runtime ( #5909 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2023-12-13 20:29:05 +13:00
Edward Firmo and GitHub
049a7a0113
Add framework info to Nextion log tags ( #5864 )
2023-12-07 08:57:06 +09:00
f026f49415
Nextion exit reparse mode on startup ( #5868 )
...
Co-authored-by: Keith Burzinski <kbx81x@gmail.com >
2023-12-06 00:55:07 -06:00
Edward Firmo and GitHub
4d3730b50e
Nextion support to idf with cinttypes ( #5876 )
2023-12-04 19:09:44 -06:00
3940c6ac4e
Improve reliability of Nextion TFT uploads (Arduino) ( #5683 )
...
Co-authored-by: Keith Burzinski <kbx81x@gmail.com >
2023-11-27 23:25:20 -06:00
Edward Firmo and GitHub
2f888ff7c5
Nextion colors parameters ( #5699 )
...
* Add `foreground` color
- Adds `set_component_foreground_color` and `set_component_pressed_foreground_color` which does the same as `set_component_font_color` and `set_component_pressed_font_color` but with a more intuitive name, as this can be used for any component and not only the ones with a text (font).
- I've also reviewed some docstring when related to colors.
* Add numeric color to drawing methods
Should I've used uint32_t instead? In order to keep consistency?
* component color support to uint6_t
This is the right format and is now consistent with colors on drawings.
I'm keeping uint32_t also to avoid breaking changes.
* Enforces uint16_t for colors
uint32_t is incorrect for Nextion display colors.
* Fix clang-format
2023-11-27 22:50:14 -06:00
Edward Firmo and GitHub
d1be686c54
Nextion on_touch trigger ( #5833 )
2023-11-28 17:14:59 +13:00
Edward Firmo and GitHub
ab1cc0ed6e
Nextion - Align strings on dump_config ( #5824 )
2023-11-27 18:24:43 -06:00
Edward Firmo and GitHub
460362b11f
Nextion - Standardizing log messages ( #5837 )
2023-11-27 21:09:57 +00:00
Edward Firmo and GitHub
ccd7f0661c
Add is_detected() for Nextion displays ( #5825 )
2023-11-25 02:38:45 -06:00
d81bec860b
Nextion support to esp-idf ( #5667 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2023-11-07 19:50:45 -06:00
Edward Firmo and GitHub
a8a9c6192d
Remove page jump on Nextion startup ( #5673 )
2023-11-06 18:48:15 -06:00
Edward Firmo and GitHub
7e27e98bff
set Nextion protocol reparse mode ( #5484 )
2023-10-24 08:02:57 +13:00
Edward Firmo and GitHub
3d7d0d4f73
Remove unnecessary checks in Nextion component ( #5578 )
2023-10-21 14:38:22 -05:00