Commit Graph

1118 Commits

Author SHA1 Message Date
Edward Firmo
8362447dac Add touchevents to page climate
Possibly solves #995
2023-09-17 20:20:19 +02:00
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
581808a123 Don't send to Nextion obsolete volume settings
If the volume is the same as the last one sent to the screen, don't send again, so if changes are being made on the screen it didn't receive the update all the time, making the slider unresponsive.
2023-09-17 12:21:11 +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
f9872700d9 Media player minor layout changes 2023-09-17 06:58:37 +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
30a0404c4a Missing nspanel_us.tft 2023-09-16 14:12:33 +02:00
Edward Firmo
00d888817f Fix alarm not changing status
Do not clear `entity_id` when opening keyboard page, so the info can be used when sending commands.

Solves #1039
2023-09-16 14:05:22 +02:00
Edward Firmo
20b672085e State based colors to home page custom buttons 2023-09-16 13:15:23 +02:00
Edward Firmo
22ba572d75 Use panel's events to reset timers
Possibly solves #1040
Possibly solves https://github.com/Blackymas/NSPanel_HA_Blueprint/discussions/995#discussioncomment-7020153
2023-09-16 10:12:58 +02:00
Edward Firmo
aeb25f21ff Adjustments to Media Player refresh interval default values 2023-09-16 10:03:02 +02:00
Edward Firmo
c098ea4ecf Add inputs for media player refresh time 2023-09-16 01:21:04 +02:00
Edward Firmo
d4f9926079 Fallback even when button is assigned to another entity
Solves https://github.com/Blackymas/NSPanel_HA_Blueprint/issues/1013#issuecomment-1720107844
2023-09-15 21:17:23 +02:00
Edward Firmo
59b5687420 Fix constructor of Entity pages 2023-09-15 20:27:28 +02:00
Edward Firmo
813f0c4800 Fix Variable invalid on buttons pages 2023-09-15 20:07:14 +02:00
Edward Firmo
1e566ce990 Fix error when btn_label is None 2023-09-15 19:58:42 +02:00
Edward Firmo
cf2d6e7cb3 Extend domains supported by home page custom buttons
Based on #1034
2023-09-15 18:52:40 +02:00
Edward Firmo
450c5f161c Align the code for the 3 timers 2023-09-15 17:07:54 +02:00
Edward Firmo
b8294b63e0 Clean-up 2023-09-15 14:30:26 +02:00
Edward Firmo
21fb3fc395 Replace confirm var on buttons pages
Simpler and saves some memory.
2023-09-15 14:29:22 +02:00
Edward Firmo
dd2c360780 Fix call to sleep routine when timeout changes
Solves #1037
2023-09-15 10:20:37 +02:00
Edward Firmo
e8193c2bb7 Fix names on button pages
Fix names when a name is not provided in the blueprint settings.
2023-09-15 10:03:50 +02:00
Edward Firmo
76a9520557 Fix empty page climate 2023-09-15 09:46:27 +02:00
Edward Firmo
c2d94ce183 Removed trailing spaces 2023-09-15 00:24:14 +02:00
Edward Firmo
21e099bb5f New sleep flow 2023-09-14 23:59:27 +02:00
Edward Firmo
1597a2aaad Prototyping power page 2023-09-14 02:19:36 +02:00
Edward Firmo
29f9b24592 Prototyping power page
Thanks @Floppe for doing the design
#838
2023-09-14 02:18:19 +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
a836462df1 Prevents calls to media_player.null 2023-09-13 17:57:01 +02:00
Edward Firmo
95e1bbc439 Fix Media player missing parameters
Possibly solves https://github.com/Blackymas/NSPanel_HA_Blueprint/discussions/1030#discussioncomment-6984573
2023-09-13 08:28:02 +02:00
Edward Firmo
db86e701e4 Home page - Custom buttons
On the blueprint you can now set up to 3 buttons to be shown on Home page.
It will show the detailed settings page, so the entity must be compatible.
2023-09-13 00:01:43 +02:00
Edward Firmo
7ba90fe741 Remove dimming timer for now
The funcionality isn't completed.
2023-09-12 20:09:04 +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
39a5fcf434 Fix unknown service: media_player.null 2023-09-11 23:49:00 +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
f1e3dc49e6 Notification for sensor.xxxxx_current_page missing
This might be a common issue for users migrating from v3.4 to v3.5.
This information is part of the release notes, but I believe it worth having a guide to support closely any user who miss that in the release notes.
2023-09-11 02:31:19 +02:00
Edward Firmo
8129e59250 Removed trailing spaces 2023-09-11 01:43:08 +02:00
Edward Firmo
beb123cd19 Improved version notification 2023-09-11 01:35:25 +02:00
Edward Firmo
605de42f67 Fix logging for global_settings
It was logging wakeup_page, which is deprecated
2023-09-10 22:51:26 +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
796968122b Fix pages not updating values
Solves #1026
2023-09-10 12:56:15 +02:00
Edward Firmo
6e65ea3d03 New "Confirm" pop-up
This also removes the sensor "NSPanel Event"
2023-09-10 02:48:28 +02:00
Edward Firmo
c1bdd7da54 Added media_player page (hidden) 2023-09-09 11:14:57 +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
w00zy
3620113a71 Translations (#1023)
* Translations

* Update nspanel_blueprint.yaml

I've changed `brightness` for now as the new design isn't implemented yet, but that string is already in use with the current design.

---------

Co-authored-by: Edward Firmo <94725493+edwardtfn@users.noreply.github.com>
2023-09-08 08:28:27 +02:00
Edward Firmo
43803dab12 Merge branch 'beta' into dev 2023-09-08 03:20:34 +02:00
Edward Firmo
680d85f1bc Fix Fan page button colors when opening
Solves #1017
2023-09-08 03:01:31 +02:00