Commit Graph

11 Commits

Author SHA1 Message Date
Edward Firmo
60c47ff82c Media player - Layout improvement
- Removed button "Stop"
- Increase touch area for buttons
- Redistributed buttons on page
2023-09-17 12:43:18 +02:00
Edward Firmo
189cbdd645 Media player roll back font 9 and timer 1s 2023-09-17 11:47:37 +02:00
Edward Firmo
c279dd7932 Media player - Volume timer & icon size
Volume timer changed from 1000 to 500ms
Icon change from font 9 to 10
2023-09-17 07:09:05 +02:00
Edward Firmo
f705401896 add touchevents to pages media_player and confirm
To avoid panel going back to Home page while user is playing with the page.
Solves #1040
2023-09-16 14:28:05 +02:00
Edward Firmo
d1638863a4 Remove entity info from pages on TFT
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
2023-09-13 23:36:24 +02:00
Edward Firmo
81d16343a7 Media Player control
You will be able to add a Media Player entity to any of the buttons pages and with a long press you will see the media player page.
2023-09-12 20:06:58 +02:00
Edward Firmo
e1a078fea5 Media player first buttons actions 2023-09-11 23:21:57 +02:00
Edward Firmo
7452dfd2bb Simplify touchevent engine
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".
2023-09-11 12:17:10 +02:00
Edward Firmo
591c7aa69b Media player - Buttons
- Added code to buttons on media_player page.
- Clean-up:
  - Moved wake-up select from Blueprint to ESPHome component
  - Removed `switch.xxxxx_confirmation_message`
2023-09-10 22:37:36 +02:00
Edward Firmo
b5bb42c68d Fix entity info when calling detailed pages
Solves #1022
2023-09-09 02:58:23 +02:00
Edward Firmo
5ed58d8f24 Adjustments to settings page 2023-09-08 20:29:08 +02:00