Commit Graph

873 Commits

Author SHA1 Message Date
Edward Firmo
2d2b11f4fc Limit light & cover to supported settings (#896)
* Limit light to supported settings

When showing light settings, only the supported features will be shown for each light.

* Limit light to supported settings

* Limit light to supported settings

* Limit light to supported settings

* Limit light to supported settings

* Limit light to supported settings

This partially solves #635

* Limits covers to supported settings

Only show cover settings when `set_position` is supported.

This solves #635

* Limits covers to supported settings
2023-06-29 08:29:16 +02:00
Edward Firmo
9c6bcc07ae API status indication on the panel 2023-06-27 18:34:34 +02:00
Edward Firmo
5ff5d35833 Wifi icon to indicate when API offline
This changes the behavior of Wifi icon:

How it was before:
- Wifi icon was visible only when the wifi was connected, nothing was shown when wifi was not connected.

How it is now:
- Wifi icon will have 3 states:
 - Wifi & API connected: Gray wifi icon
 - Wifi disconnected: Red wifi-off icon
 - Wifi connected, but API disconnected (HA is out?): Red api-off icon
2023-06-27 17:42:23 +02:00
Edward Firmo
6dd6397fde Supports weather forecast with datetime not string
This adds support to weather integrations where the `datetime` field under `forecast` attribute is provided as a `datetime` type.
This was seen on Météo-France, while all other weather integrations tested so far used a `text` field for `datetime`.

This solves #893
2023-06-27 15:26:50 +02:00
Edward Firmo
26e41f0fc2 Fix "Button confirmation page not working correctly"
Solves #883
2023-06-27 08:55:58 +02:00
Edward Firmo
33539e8bbd Create nspanel_us_land.tft (#890)
* Create `nspanel_us_land.tft'

Add `nspanel_us_land.tft' for US panel on landscape mode, fixing the offset on the touch screen when using `nspanel_eu.tft` into a US panel.
Hides the hardware buttons labels, as Nextion cannot support rotated text.

* Created `nspanel_us_land.tft`

* Created `nspanel_us_land.tft`

solves #390
solves #432
solves https://github.com/Blackymas/NSPanel_HA_Blueprint/discussions/299#discussioncomment-4933716

* Created `nspanel_us_land.tft`

* Created `nspanel_us_land.tft`
2023-06-26 20:21:14 +02:00
Edward Firmo
fe7c7ead18 Use en as fallback language (#891)
* Use `en` as fallback language

Uses English if a non valid language is selected (like when using legacy language selection).

* Use `en` as fallback language
2023-06-24 13:46:10 +02:00
Edward Firmo
2f44dd1d7c Move entity variable to home page (#889)
* Move `entity` variable to home page

This will enable future development of a fallback climate

* Move `entity` variable to home page

* Move `entity` variable to home page

* Move `entity` variable to home page

* Move `entity` variable to home page
2023-06-23 01:26:35 +02:00
Edward Firmo
c211d3f435 Remove settings_entity (#887)
* Remove `settings_entity`

- Bump version to 3.5_dev
- Removed references to pictures removed from TFT
- Removed code related to closing settings pages
- Removed trigger `settings_entity`

* Removed `set_settings_entity` service

- Bump version to 3.5_dev
- Removed `set_settings_entity` service - BREAKING CHANGE
- Removed `settings_entity` text-sensor - BREAKING CHANGE
- Added service `open_entity_settings_page` - BREAKING CHANGE

* Removed `settings_entity`

- Bump version to 3.5_dev
- Removed old climate page (climate_backup)
- Removed pics related to old climate page (ids 16-47, 80-83, 95-96 and 125(US only))
- Enforces brightness on any page change (this allows wake-up on settings page with long press on physical buttons) - Pending removing code from Blueprint
- Added `entity` variable on pages `climate`, `lightsettings` and `coversettings`
- Added `entity` info to `nspanelevent` on pages `climate`, `lightsettings` and `coversettings`
- Added `back_page` variable on pages `climate`, `lightsettings` and `coversettings` (default: home)
- Moving to TFT close page logic on pages `climate`, `lightsettings` and `coversettings` - Pending changes on Blueprint and ESPHome
- Standardized name for `page_label` on pages `climate`, `lightsettings` and `coversettings`
- Standardized settings page names: `climate`, `cover` and `light` (Removed `settings` from page name)

* Removed `settings_entity`

* Removed `settings_entity`

* Removed `settings_entity`
2023-06-22 14:16:47 +02:00
Edward Firmo
10da9a65c6 Update ReleaseNotes.md 2023-06-20 15:26:16 +02:00
Edward Firmo
47daf651e6 New language selector (#882)
* New language selector

* Update ReleaseNotes.md
2023-06-20 15:19:06 +02:00
Edward Firmo
f0b52a9e4d Sensor display precision (#880)
Now the values shown in your panel will follow the [sensor display precision](https://www.home-assistant.io/blog/2023/03/01/release-20233/#sensor-display-precision) provided by Home Assistant.
=> If you have problems with a value exceeding the available space in your panel, please reduce the number of decimals using Home Assistant [sensor display precision](https://www.home-assistant.io/blog/2023/03/01/release-20233/#sensor-display-precision).
2023-06-20 12:45:07 +02:00
Edward Firmo
ae98178075 Filter devices to esp32 only (#881)
* Filter devices to esp32 only

Show only ESP32 devices when selecting the panel

* Filtered device list
2023-06-20 12:44:44 +02:00
Edward Firmo
36286bc457 Create ReleaseNotes.md (#879)
* Create ReleaseNotes.md

* sensor display precision
2023-06-19 19:56:36 +02:00
Edward Firmo
e2c17c8716 Remove inputs for chip3 (Climate) (#874)
Removed all inputs related to customization of chip03 (Climate entity) and instead will follow the same icons and colors used by page climate, with a thermometer replacing the fire icon for heating.
2023-06-18 08:11:30 +02:00
Edward Firmo
0bce4c79b3 Change icon for heat in hvac_action 2023-06-15 17:02:37 +02:00
Edward Firmo
913dc39156 Update nspanel_blueprint.yaml 2023-06-15 10:10:25 +02:00
Edward Firmo
d722e115a8 Wake up screen with long press on button
This solves #558
2023-06-15 10:07:23 +02:00
Edward Firmo
5cfed28caf Fix incorrect variable climate_action_attr 2023-06-14 12:02:55 +02:00
Edward Firmo
74c1e22610 Fix hvac_action display 2023-06-14 11:26:24 +02:00
Edward Firmo
575bda2955 Remove hotwater (#866)
Now the custom icons can be used instead.
2023-06-08 15:48:56 +02:00
Edward Firmo
c1ef9eb92b Fix hvac_action indication icons (#865)
* Fix `hvac_action` indication icons

Fix for pages home and climate.
This should remove the need for all the 25~30 instances of hot water in the code.

* Update nspanel_esphome.yaml
2023-06-08 15:28:25 +02:00
Edward Firmo
4cb8bbe72e Climate - Custom buttons - Long press (#864)
* Climate - Custom buttons - Long press

This add long press functionality to Custom buttons and also fix a bug on short press.
I believe the new custom page is ready for get user's feedback with this.

* Climate - Custom buttons - Long press

* Climate - Custom buttons - Long press

* Climate - Custom buttons - Long press
2023-06-08 14:42:54 +02:00
Blackymas
25f6afcb8f fix some UI Design issues 2023-06-07 22:55:02 +02:00
Edward Firmo
b9bf5b95fa Climate - Custom buttons - Short press 2023-06-06 16:14:49 +02:00
Edward Firmo
8c9b135dc1 Climate - Custom buttons - Update status (#862)
Update status of custom buttons on climate page when the status changes.

=> Still missing to assign control to these buttons.
2023-06-06 12:41:51 +02:00
Edward Firmo
cc1f6999cc Climate - Custom buttons (#859)
* Climate - Custom buttons

Initial implementation of custom buttons on climate pages.

* Update nspanel_esphome.yaml

* Update tft files

* Update nspanel_eu_code

* update nspanel_us_code
2023-06-05 12:00:14 +02:00
Blackymas
6219ecdc79 new climate nspanel_us 2023-06-04 23:11:54 +02:00
Blackymas
0878696b79 climate nspanel_eu finish 2023-06-02 23:40:47 +02:00
Edward Firmo
ab067bd20c Climate page - Performance & bug fix (#854)
* Climate page - Performance & bug fix

Performance improvement:
- Moved icon definition to TFT, so only buttons related to supported hvac modes will be updated and just icon color and link enabling is sent.
Bug fixing:
- Removed incorrect button name on buttons update
Others:
- Merged `set_climate_target_temp` into `set_climate` services
- Update current temperature when target temperature is updated

* Removed reference to `set_climate_target_temp`

Removed unused entry from blueprint.

* Removed service `set_climate_target_temp`

* Update `nspanel_eu`

- Set climate buttons on the TFT.
- Bump version to 3.3.2 (temporarily, to align with ESPHome and Blueprint)

* Update `nspanel_eu_code`
2023-06-02 09:02:41 +02:00
Edward Firmo
3b4cc94518 Update translations - Swedish
From #845 by @rogerjak.
2023-06-01 18:58:04 +02:00
Edward Firmo
94d3157c4d Climate: support to target_temp_step (#853)
* Climate: support to `target_temp_step`

Adding support to attribute `target_temp_step` to define the step of changing temperature.
`0.5` will be used if this attribute is not available on the climate entity.

* Update nspanel_esphome.yaml

* Update nspanel_eu files

* Update nspanel_eu_code files
2023-06-01 18:30:16 +02:00
Edward Firmo
0e48d65549 2sec hold for sending target_temp (#851)
* 2sec hold for sending target_temp

Added 2sec hold of `target_temp` value before sending it to ESPHome and Blueprint, so the climate service is not called at every click on the slider or +/-.

* Update nspanel_eu_code
2023-05-30 17:07:22 +02:00
Edward Firmo
89e55a20d4 Fix buttons on climate page (#850)
* Fix buttons on climate page

Fix icon for dry and auto.
Move Off for last position.
Fix TFT sending incorrect id for buttons.

* Update TFT

* Update nspanel_eu_code
2023-05-29 21:08:07 +02:00
Edward Firmo
5298a0a032 Move target_temp set to TFT (#849)
* Move target_temp set to TFT

Use TFT to set target temp from slider and +/-.
Using decimals for slider.

* Update nspanel_esphome.yaml

* Update nspanel_eu files

* update nspanel_eu_code folder
2023-05-29 18:12:58 +02:00
Edward Firmo
410255ba37 Language update - NOR & FIN 2023-05-26 12:07:55 +02:00
Edward Firmo
5463e54926 Remove climate-optimistic mode (#841)
* Remove climate-optimistic mode

* Remove `send_thermostat_cycle_state` service

* Remove sensor `Display Target Temperature`

* Remove `display_target_temperature`
2023-05-26 11:49:20 +02:00
Edward Firmo
3e0cd4a9bd New climate page - Buttons (basic)
Initial implementation of buttons on the new climate page.
2023-05-25 15:56:14 +02:00
Blackymas
864abd24fc fix Button 7 and remove all default values 2023-05-24 23:20:43 +02:00
Edward Firmo
72705d9806 New climate page - Values 2023-05-24 21:24:11 +02:00
Edward Firmo
14283c0776 New climate page - basic support (#835)
* New climate page - basic support

Basic support to the new climate page.
Still pending values and buttons.

* Support to new climate services

* New climate page - basic
2023-05-24 18:38:41 +02:00
Edward Firmo
e5a702e541 Translations - ITA & HEB 2023-05-24 11:10:55 +02:00
Edward Firmo
8f80e1fb84 Translations - Spanish 2023-05-23 22:55:51 +02:00
Edward Firmo
5063b4a4c0 Translations - Croatian 2023-05-23 16:27:41 +02:00
Edward Firmo
f0549e2660 Translations - DEU & POL 2023-05-23 09:41:07 +02:00
Blackymas
d038bcc0d5 changed nspanel_us tft version 2023-05-22 22:38:57 +02:00
Edward Firmo
a28f1fb586 Translations - FRA & GRC 2023-05-22 15:49:27 +02:00
Edward Firmo
8ad3beb72f Add API connection status sensor (#774)
As requested by users:
- https://github.com/Blackymas/NSPanel_HA_Blueprint/discussions/735#discussioncomment-5755419

Could this be used to prevent some of the "Loading..." or perhaps update screen when connection is reestablished?
2023-05-22 13:57:49 +02:00
Edward Firmo
1a46c85e6e Enable users select alignment for entity values (#753)
* Enable users select alignment for entity values

Users will be able to select the alignment for the column with values on the entity pages.
The options are:
- Right (default)
- Center
- Left

solves #732

* Add support to `xcen` on `set_entity`
2023-05-22 13:56:34 +02:00
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