Commit Graph

707 Commits

Author SHA1 Message Date
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
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
Chris
80d19b1da1 Merge pull request #577 from deejaybeam/dev
upd: service set_button to improve performance
2023-03-31 23:24:33 +02:00
deejaybeam
df0855862f upd: service set_button to improve performance 2023-03-31 23:23:43 +02:00
Edward Firmo
d23fe9616c fix: ignore unassigned indoor sensor
Fix for when sensor is set but unavailable.
2023-03-29 15:49:29 +02:00
Chris
76fee43d3b Merge pull request #561 from deejaybeam/dev
fix: ignore unassigned indoor sensor
2023-03-29 11:01:50 +02:00
deejaybeam
e8fd5e2020 fix: ignore unassigned indoor sensor 2023-03-29 11:00:50 +02:00
Chris
89faeb3ec1 Merge pull request #525 from edwardtfn/patch-19
Code refactoring - Weather & Climate
2023-03-28 22:35:38 +02:00
Chris
a006af2654 Merge pull request #537 from edwardtfn/patch-21
Removing empty sequences
2023-03-28 22:34:07 +02:00
Chris
1e7ead8e46 Merge pull request #556 from deejaybeam/dev
fix: typo
2023-03-28 19:16:42 +02:00
deejaybeam
d88290474e fix: typo 2023-03-28 19:11:12 +02:00
Blackymas
75f17f0d3e fix sleep button settings page 2023-03-27 22:05:17 +02:00
Edward Firmo
8a21f88df9 Merge branch 'dev' into patch-19 2023-03-27 00:51:40 +02:00
Edward Firmo
5a01431670 Resolving merging conflicts with #541 2023-03-27 00:46:20 +02:00
Chris
72e59947b6 Merge pull request #541 from deejaybeam/dev
fix: remove unneeded home.hotwater.pic
2023-03-26 21:15:33 +02:00
Chris
8869eb2f67 Merge branch 'Blackymas:dev' into dev 2023-03-26 21:14:55 +02:00
deejaybeam
c7c54261cb Merge branch 'dev' of https://github.com/deejaybeam/NSPanel_HA_Blueprint into dev 2023-03-26 21:14:25 +02:00
deejaybeam
27185ea88c fix: remove unneeded home.hotwater.pic 2023-03-26 21:14:14 +02:00
Chris
bfe2c65bfd Merge pull request #540 from deejaybeam/dev
upd: blank.tft
2023-03-26 21:10:32 +02:00
Chris
45dafc3d0d Merge branch 'Blackymas:dev' into dev 2023-03-26 21:09:41 +02:00
Blackymas
c9c31bba57 size for the Date field 2023-03-26 20:54:13 +02:00
Chris
485e5cc8d2 Merge branch 'dev' of https://github.com/deejaybeam/NSPanel_HA_Blueprint into dev 2023-03-26 19:59:44 +02:00
Chris
175c927ee8 upd: blank.tft 2023-03-26 19:59:38 +02:00
Edward Firmo
4392bf251b Fix variable name hotwater_pic_on -> hotw_bt_on
Trying to avoid merging conflict with #538
2023-03-26 17:54:06 +02:00
Edward Firmo
9616ea4c8f Merging weather01 page into the others
- All the weather pages now shares the same code, increasing standardization
- Support for other forecast parameters when supported by the integration
- Removed empty rows between the forecast parameters
2023-03-26 17:21:10 +02:00
Edward Firmo
2a9162e809 Removing empty sequences
This probably isn't an issue, but a sequence shouldn't be empty.
2023-03-26 16:11:39 +02:00
Chris
220b5fb02b Merge pull request #532 from deejaybeam/dev
fix: remove hp-bottons on disable in blueprint
2023-03-26 00:41:11 +01:00
deejaybeam
a0a0d16af7 fix: remove hp-bottons on disable in blueprint 2023-03-26 00:40:42 +01:00
Blackymas
f97b298d00 repositioning date and time 2023-03-26 00:19:18 +01:00
Chris
6feba8a56d Merge pull request #531 from deejaybeam/dev
upd: remove unneeded link
2023-03-25 23:50:25 +01:00
deejaybeam
0ff61a2e4a upd: remove unneeded link 2023-03-25 23:49:53 +01:00
Blackymas
aee6e7bb57 repositioning date 2023-03-25 23:45:05 +01:00