Commit Graph

937 Commits

Author SHA1 Message Date
Edward Firmo
56f27d1a86 Reduce # of concurrent instances of blueprint
This reduces the number of parallel instances of the blueprint running. I've done several tests and couldn't see more than 10 instances, so I believe if we should limit the concurrent runs and this will probably be an indication of a problem we want to know about.
2023-04-11 00:05:01 +02:00
Edward Firmo
95ff13d831 Convert napanel_name to a valid format (#647)
This supports users mistyping the NSPanel name in the blueprint settings. One of the most common mistakes is using `-` in the name, instead of `_` and this change will try to replace that when users type the name with this invalid char.
2023-04-10 23:58:12 +02:00
Edward Firmo
59727e294d Home page: Removing unnecessary calls to panel (#629)
Trying to gain a bit on performance by not sending calls to the panel when not needed (element not available, etc.).
2023-04-10 23:57:35 +02:00
Edward Firmo
1ea041c731 Fixed translation (Spanish)
As per 342a5ae1b8 (r108312227)
2023-04-10 17:43:15 +02:00
Edward Firmo
3134f07671 Fix input descriptions to entity pages (#634)
It was incorrectly describing BUTTONPAGExx instead of ENTITYPAGExx.

This fixes #633
2023-04-07 12:12:53 +02:00
Edward Firmo
36d2cf2f21 Fixes to Croatian string formats
#628
2023-04-07 11:55:27 +02:00
Edward Firmo
adbe6a4dc6 Fix translations to Croatian
#628
2023-04-07 08:22:27 +02:00
Blackymas
6397053d25 Add time format 24h without leading zero
Add time format 24h without leading zero
2023-04-07 00:55:49 +02:00
Edward Firmo
f5781d48b3 Add "Croatian" as supported language (#632)
#628
2023-04-06 21:45:40 +02:00
Edward Firmo
cf1ed9aa66 Fix: Variable date_format missing
Moving the variable definition back to the root.
2023-04-06 12:49:18 +02:00
Edward Firmo
03498a2b79 Fix: Date format not applied when time changes 2023-04-06 12:41:19 +02:00
Edward Firmo
cee264d769 Add time format 24h without leading zero
To be consistent with the new date format added on v3.2.3.
2023-04-06 09:41:58 +02:00
Edward Firmo
c931e551c8 Bug fixed: Removed duplicated line 2023-04-06 00:36:48 +02:00
Blackymas
f4e8d3b006 Bump blueprint version to `3.2.3
Bump blueprint version to `3.2.3`
2023-04-06 00:30:13 +02:00
Edward Firmo
4fc9f98ce8 Bump blueprint version to 3.2.3 2023-04-06 00:27:00 +02:00
Edward Firmo
5a0715064d Roll back temperature units to fit screen (#625)
This should fix #617
2023-04-06 00:19:43 +02:00
Edward Firmo
124b9d87d5 Remove + from positive temperatures (#624) 2023-04-06 00:14:10 +02:00
Edward Firmo
84c9f073bd Added continue_on_error to service calls (#608)
This will make the automation more resilient, however it could hide some errors, making a bit harder to troubleshoot.
2023-04-06 00:13:08 +02:00
Blackymas
05f68816c6 change weather field temp chars 2023-04-05 23:46:42 +02:00
Blackymas
25315afe11 fix weather temp field chars 2023-04-05 23:11:00 +02:00
Blackymas
fde287199d Code optimization
Code optimization
2023-04-05 22:57:27 +02:00
Blackymas
a595600669 Support for opening & closing states on buttons
NEW: Support for `opening` & `closing` states on buttons
2023-04-05 22:56:39 +02:00
Blackymas
246eed6df3 Removed "Weather integration" selection from setup
NEW: Removed "Weather integration" selection from setup
2023-04-05 22:56:13 +02:00
Blackymas
db4ffb9c17 Fixed translation strings to Spanish & Portuguese
Fixed translation strings to Spanish & Portuguese
2023-04-05 22:54:53 +02:00
Blackymas
79c2b1533a Performance improvement: Temperature min/max
Performance improvement: Temperature min/max
2023-04-05 22:54:30 +02:00
Blackymas
9def80eae6 new temp field weather01-04 2023-04-05 22:25:35 +02:00
Edward Firmo
fa2ef5173b Performance improvement: Temperature min/max
- Merge the 3 calls needed to create the temperature min/max display on the Weather pages into just one call per page.
2023-04-05 19:26:11 +02:00
Edward Firmo
342a5ae1b8 Fixed translation strings to Spanish & Portuguese 2023-04-05 13:43:04 +02:00
Edward Firmo
92753d5ca4 Removed "Weather integration" selection from setup
The weather integration is now automatically detected by the Blueprint, based on the attributes provided by the integration itself, so an user selection is not needed anymore.
2023-04-05 13:09:43 +02:00
Edward Firmo
0eef377ca9 Support for opening &closing states on button
- Button pages now displays cover status when is is `opening` or `closing`.

This probably solves #451
2023-04-05 09:38:49 +02:00
Edward Firmo
a831d189d8 Code optimization 2023-04-05 08:58:11 +02:00
Edward Firmo
2a5f3124d5 Fix first button not responding to short press (#603) 2023-04-05 02:04:12 +02:00
Edward Firmo
f871ef84e9 Fix date format on home page (#602)
* Fix date format on home page

To use custom date format

* Remove debug call
2023-04-05 02:02:32 +02:00
Edward Firmo
383835d710 Add cover battery when not as an attribute (#601)
- It will try to find a battery sensor withing the same device.

This should fix #153
2023-04-05 02:02:04 +02:00
Edward Firmo
601568b6f0 Fix on date format (copy #568 to DEV) (#600)
https://github.com/Blackymas/NSPanel_HA_Blueprint/pull/568
2023-04-04 23:50:00 +02:00
Edward Firmo
a351eece0b Removing empty lines (merging conflicts) (#598) 2023-04-04 23:41:56 +02:00
Edward Firmo
10a9e417ea Code refactoring (#565)
* Code refactoring - Nextion constants - Colors

No changes in functionalities. Just renaming variables related to colors in order to improve readability.

* Code refactoring - Nextion constants - Icons

* Adding aliases on the first level actions

This will make easier troubleshooting as aliases are shown in the logs.

* Nextion constants - Pages

* Nextion constants - Commands

* Nextion constants - Other pics

* Fixed typo in nextion.pics.hardware.button

* Fixed " 'mui_weekday_today' is undefined"

* Code refactoring/standardization

Refactoring:
- Weather pages
 - It might support any weather integration now, including OpenWeather)
 - New string for translation (when weather info is not available for a certain day)
- Home page (partial)

* Fix bug "'home_page_values' is undefined"

* Code refactoring - Button pages

Rebuilt button pages in order to improve readability and maintainability.
No changes on functionalities,

* Changed blueprint version to v3.2.2

* Refactoring entities pages

* Reorganizing inputs to improve readability

* Bug fixes: qrcode icon & weather provider

- Fixed bug preventing to detect that QR Code was enabled in order to display the QR code icon on Home page
- Fixed weather integration detection

* Review states(entity_id) to make it more resilient

Reduce the chances of crash if a `states(entity_id)` returns an error.

* Make state_attr(entity_id, attr) more resilitent

To avoid crashes with an invalid return.

* Perf improv: Don't load weather vars unless needed

Performance improvement - don't load weather vars when those are not needed.

* Using alias for delay_value

To make easier to maintain the code.

* Code refactoring: Button press/status

Optimizing code in order to improve readability & maintainability.

* Reorganizing pages variables
2023-04-04 23:38:00 +02:00
Edward Firmo
4a346ce2d2 Change order of weather params to fit the screen (#592) 2023-04-04 07:11:43 +02:00
Blackymas
1e64e134f9 fix for wakeup sleep mode 2023-04-03 22:37:57 +02:00
Blackymas
81d0bcf304 change description 2023-04-03 21:13:30 +02:00
Chris
2953942fbd Merge pull request #584 from deejaybeam/dev
v3.2.2
2023-04-03 08:28:08 +02:00
Chris
51173352d2 Merge branch 'Blackymas:dev' into dev 2023-04-03 08:26:05 +02:00
Chris
1bec2b1160 upd: v3.2.2 2023-04-03 08:21:35 +02:00
Blackymas
4921453a1b fix variables for v3.2.2 2023-04-02 22:32:42 +02:00
Blackymas
95a4447eeb Update page_id & component_id 2023-04-02 22:30:05 +02:00
deejaybeam
350b3f4ca7 upd: use set_button on all button pages 2023-04-02 08:55:30 +02:00
deejaybeam
a8172a1b06 fix: fallback state 2023-04-02 08:49:02 +02:00
deejaybeam
df10d09736 upd: use current nextion-component 2023-04-01 02:17:04 +02:00
Chris
4f31326b8e Merge pull request #578 from deejaybeam/dev
fix: avoid "0" brightness in some cases
2023-04-01 02:12:20 +02:00
deejaybeam
f0e557b5e4 fix: avoid "0" brightness in some cases 2023-04-01 02:11:00 +02:00