Commit Graph

824 Commits

Author SHA1 Message Date
Edward Firmo
3a5f562c20 More flexible date_format engine (#744)
* More flexible `date_format` engine

This is not changing anything for normal users other than minor UI on the blueprint setting, however will start using the `date_format` in a python standard string, but translating `%A` with existing weekdays in MUI.
Advanced users will be able to edit they automation yaml (either in `automations.yaml` file or editing the automation in yaml mode) in order to use any format they want.
=> This is not adding new translations to short week days or months, so if users add this in advanced mode, it will be shown in English.

* Added support for translation of date strings

Support translations to all date related strings.
=> Pending the translations - to ask support from the community.

* Support for custom date formats

* Fixed translation PRT

* Update nspanel_blueprint.yaml
2023-05-22 13:55:05 +02:00
Blackymas
70d62f51f8 add new climate
add new climate for nspanel_eu
add global variable home page for naspanel_us
2023-05-21 22:44:06 +02:00
Edward Firmo
c3acffd829 Auto-update entities pages (simplified) (#819)
This is a simplified version of #728 which is easier to maintain, as only conditions for entities pages have being added.
So the scope is limited to:
- Auto-update entity pages without compromising overall performance. (Entities page values not updating unless re-opened #410)
2023-05-18 14:53:37 +02:00
Edward Firmo
4688608ba1 Fix status bar error when no climate
Fix an issue on constructing the status bar when a climate entity is not defined.
2023-05-17 10:10:42 +02:00
Edward Firmo
221e3a168f Removed pages names from nextion var
To make it easier for future updates
2023-05-17 09:33:22 +02:00
Edward Firmo
bfbd95f9c1 Fix selectors for Button 32 (#818)
This closes #815
2023-05-17 09:02:23 +02:00
Edward Firmo
45725dc820 New time&date update strategy (#785)
Takes advantage of new global vars implemented by eee2bb7295
This will improve drastically the speed on displaying the Home page.
This push removes the update of date & time from the Home page and moved it to the time minute trigger (every minute), regardless the page shown (including when sleeping).
The time is also update after a boot (to ensure there's a time value when the Home page is displayed for the first time) and with an automation reload (just to cover the case when time format changes).
2023-05-09 17:02:16 +02:00
Blackymas
e55db10b70 home page local to global 2023-05-04 17:24:55 +02:00
Blackymas
ba82e08470 change home page local to global 2023-05-04 17:20:01 +02:00
Blackymas
eee2bb7295 change home page local to global 2023-05-04 17:16:28 +02:00
Edward Firmo
91dab53a59 Fix error when hw button is not on/off (#776)
This prevents message `Nextion reported variable name invalid!` when the button have a state other than `on` or `off`, like when it is connected to a stateless entity (scene, automation, etc.).
2023-05-04 00:04:56 +02:00
Edward Firmo
15aab73376 Fix sorting of language names 2023-05-02 18:22:45 +02:00
Edward Firmo
fc8108fc2c Fix units showing None when not available (#767)
This solves #766
2023-05-02 10:43:25 +02:00
Edward Firmo
0c5940c341 Fixed typo in source_url 2023-05-02 10:31:49 +02:00
Edward Firmo
adb4c8c12f Fix crash climate without temperature attrb (#762)
The systems won't crash if the climate entity doesn't have a `temperature` attribute.
It will try to calculate target from `target_temp_high` and `target_temp_low` otherwise will keep target temperature as empty.

This solves #749
2023-05-01 10:07:35 +02:00
Edward Firmo
b856619331 Fix units on indoor temperature (#757)
* Fix units on indoor temperature

It will now show units from ùnit_of_measurement` to keep consistence with other value entities on Home page.

This solves #755

* Removing redundancy
2023-04-30 12:33:14 +02:00
Edward Firmo
3f8b5ad3aa Fix missing icons (#752)
As per https://github.com/Blackymas/NSPanel_HA_Blueprint/pull/657#issuecomment-1527333817
2023-04-29 13:44:10 +02:00
Edward Firmo
8b06ce15aa Chips to support boolean entities (#748) 2023-04-28 13:51:01 +02:00
Edward Firmo
6bb54394a0 Moved page labels inputs to the page items (#746)
This solves #742
2023-04-28 07:58:18 +02:00
Edward Firmo
0bd3200155 Update CONTRIBUTING.md 2023-04-28 01:16:22 +02:00
Edward Firmo
8d22fdb41c Removed duplicated entry for OpenWeatherMap 2023-04-27 21:49:47 +02:00
Edward Firmo
3a08cfc583 Fixes name on cover settings page (#741)
solves #739
2023-04-27 13:35:13 +02:00
Chris
7677934244 Merge pull request #737 from deejaybeam/dev
fix: current_page does not extist anymore
2023-04-26 23:40:55 +02:00
Chris
13726fa08e Merge branch 'Blackymas:dev' into dev 2023-04-26 23:40:22 +02:00
deejaybeam
f609e92c0d fix: current_page does not exist anymore 2023-04-26 23:39:35 +02:00
Edward Firmo
085842a8e9 Removed filter from device selection
To keep compatibility with HA 2022.11.1.
2023-04-26 23:33:04 +02:00
Edward Firmo
89ad6426ed Fixes icon for unavailable (#736) 2023-04-26 23:19:01 +02:00
denes44
f3cfa2c8ed Wake up panel service call (#734)
* Add service call for waking up the display

* Option to reset the sleep and page timers
2023-04-26 23:11:05 +02:00
Edward Firmo
a34f51e6b6 Introduces show_while_loading mode (#731) 2023-04-26 22:05:15 +02:00
Edward Firmo
222ae92d36 Update README.md (#727) 2023-04-26 22:04:15 +02:00
Edward Firmo
b05633aae5 Rebuild Sleep mode switch (#719) 2023-04-26 22:03:54 +02:00
Edward Firmo
32b98e09f6 Creating CONTRIBUTING.md (#700) 2023-04-26 22:03:06 +02:00
Edward Firmo
c78ea43ea2 Fix light/cover settings page appearing on swipe 2023-04-26 13:21:06 +02:00
Edward Firmo
355a643ff7 Visual feedback for stateless entities (hw button) (#725)
Implement visual feedback for stateless entities (whatever finishes with a state other than `on`, `off`, `open` and `closed`, like scenes, automations, buttons, etc.).
This extends b18f2848f4 and solves #691.
2023-04-25 21:00:30 +02:00
Edward Firmo
a252ddf74e Fix: button not updating with external changes (#721)
* Fix: button not updating with external changes

* Removed debug code

* Revert trigger_id change
2023-04-24 20:52:05 +02:00
deejaybeam
8ca88755c1 fix: follow new default-mode esphome 2023.4 2023-04-24 17:55:36 +02:00
Edward Firmo
32f297353a Fix issue with light settings page opening with 0% 2023-04-24 13:11:45 +02:00
Edward Firmo
41d6acdf36 Changes to nextion_inited to become a sensor (#715)
* Changes to nextion_inited

Changed from `switch` named `Nextion inited` (with entity_id like `switch.xxxx_nextion_inited`) to a `binary_sensor` named `Nextion display` (`binary_sensor.xxxx_nextion_display`).
The idea is to avoid users trying to change it's state from Home Assistant (with unknown consequences) and make this entity more clear, improving usability.

* Change `nextion_inited` to a sensor
2023-04-24 12:42:06 +02:00
Edward Firmo
19e6374e03 Rename 'Sleep mode' switch (#714)
* Rename 'Sleep mode' switch

Renamed from `Sleep Modus` to `Sleep mode`.

Breaking change: This will rename the entity_id of that switch and this can affect existing automations created by users and also will require changes in the blueprint if #698 is merged.
Note: Variable names in HMI/TFT not renamed.

* Align with other PR
2023-04-24 12:40:44 +02:00
Edward Firmo
374502c6d8 Replaces the white screen by a QR code (#701)
The QR code have a link to the repository, but perhaps this could be changed later to point directly to a page with instruction of what to do if a user see that screen.
The file is growing by less than 1kb and I believe a QR code with a link gives to the users a better feeling than a totally white screen where they cannot interact with.
2023-04-24 12:35:51 +02:00
Edward Firmo
f9776463c1 Wake-up panel when sleep mode is disabled (#698)
The panel will wake-up to Home page if it is on screen saver page (sleeping) when sleep mode is disabled.

This solves #696
2023-04-24 12:34:53 +02:00
Edward Firmo
f48a58a76a Standardize inputs descriptions (#694)
* Standardize inputs descriptions

Standardize the descriptions on all inputs (visible to users when setting up the Blueprint)

* Removing trailing spaces
2023-04-24 12:34:04 +02:00
Edward Firmo
d7944855ad Fixes to translations in POL as per #695 (#705) 2023-04-23 21:41:51 +02:00
Edward Firmo
9ef8287be7 Fix error on weather pages pic
The weather picture was broken when breaking down that line of code.
2023-04-23 18:52:17 +02:00
Edward Firmo
c750971b0e Standardize yaml
To improve readability.
No changes in the code.
2023-04-23 15:42:17 +02:00
Edward Firmo
36a0811776 Standardize yaml
No changes in functionalities, just removing blank lines and indentation of comments.
2023-04-23 14:29:57 +02:00
Edward Firmo
508dbd01a8 Clean up (#704)
* Break down long lines

To improve readability.

* Update nspanel_blueprint.yaml

* Breaking down long lines

To improve readability.

* Clean-up

* Breaking down long lines
2023-04-21 14:13:59 +02:00
Edward Firmo
ebb37b85c8 Fix translations to FIN as per #703 2023-04-21 14:07:35 +02:00
Edward Firmo
8e04a34e41 Code clean-up 2023-04-21 10:42:13 +02:00
Edward Firmo
8a510086b1 Standardize the use of ' and " in the code (#702)
The new standard for code will be like this:
`var: '{{ state_attr(entity_id, "friendly_name") }}'`
2023-04-21 10:03:15 +02:00