Restart with hw button 10s hold - Helps with #1224
Restart Nextion if not connected to ESPHome after 30s - Helps with #1224
Prepare for future support to 921600bps
The removal of this font reduced the file size with impact to the UI. The reduced file size didn't made a significant impact to the TFT Upload, so reverting this.
I've removed this font to reduce TFT file size, however we can add this back later by creating a new font with only the icons needed for:
Font 10 (NotoSans-Regular + MDI, h 48):
settings:
bt_reboot
bt_sleep
cover:
cover_open
cover_close
cover_stop
notification:
bt_accept
bt_clear
fan:
button_up
button_down
button_on
button_off
confirm:
bt_accept
bt_clear
Since v3.4, the info about entity_id shown was going all the way to Nextion and then sent back in the json return, however this requires a long (100-char) global var and the way it was implemented, it was one of those per settings page, as climate should be also recorded at the same time in case the embedded climate was installed.
This was taking too much memory, so I've moved this info to a global variable (string) in ESPHome.
There is now lots of space for code cleaning (and still pending to do the same with climate entity, as it could be only a bool to inform if embedded), but this brings the functionality.
This enabled the return to global for some components, so it probably solves #1031
The touch event is used only for the sleeping engine (it will be used for dimming later) and it was transferring all the json info with page name, component, entity, etc.
This was replaced by a simple random integer with no meaning other than "the screen was touched, reset the timer".
- Added code to buttons on media_player page.
- Clean-up:
- Moved wake-up select from Blueprint to ESPHome component
- Removed `switch.xxxxx_confirmation_message`