Commit Graph

895 Commits

Author SHA1 Message Date
Edward Firmo
9c3ae7a4f5 Update ReleaseNotes.md 2023-07-08 10:33:16 +02:00
Edward Firmo
f25ca0934c Embedded climate (#917)
* Performance improvements

The main focus here was to reduce the number of calls between Home Assistant and ESPHome, moving logic as much as possible to TFT and ESPHome.
- Service calls moved to ESPHome (in preparation for Alarm Control Panel)
- Page change informed via event call instead of `nspanel_event` sensor (which still in use by other calls, but might be possible to remove in the future)

* Draft embedded climate

This adds an initial version of an embedded climate/thermostat (heating only for now) with support for local control even with Wi-Fi out.

Solves #646
Solves #263

* Update ReleaseNotes.md

* Fix climate slider

Fix for climate slider opening in an incorrect position and sending only the integer part of the new target temperature

* Moving home page to ESPHome

In progress...

* Fix translations - Dutch

* Embedded chip 3

Home page - Chip 3 will be controlled locally when embedded climate is enable.

* Fixed buttons bar

Fixed buttons bar managed on ESPHome when embedded climate is visible.
2023-07-08 09:34:09 +02:00
Edward Firmo
64659f3794 Physical relay local control
We are trying to make your panel as autonomous as possible by moving some of the controls from the Blueprint to ESPHome. This will reduce the load in your network and Home Assistant, but also will make a more reliable system capable to do it's core functionality even when the network is unavailable or Home Assistant is restarting.
With this version, the following engines have been moved to your panel (local control):
- Physical relay control (when hardware left button is connected to relay 1 or right button to relay 2)

Solves #910
2023-07-03 08:14:32 +02:00
Edward Firmo
58a4575ab9 Prevents boot sequence in other pages 2023-07-03 07:15:05 +02:00
Edward Firmo
661e51671a Fixed Fan page rounding 2023-07-03 01:45:36 +02:00
Edward Firmo
d1c1dc018b Fix fan page button_on
Fixing rounding on that button.
2023-07-03 01:43:47 +02:00
Edward Firmo
ba8257e958 Fix call to screen page
Fixes the call to screen page on US panel.
Reconciliate the US landscape model from EU model.
2023-07-03 01:16:28 +02:00
Edward Firmo
3a95d5916e Boot page retry comm
The boot page will retry communication with the blueprint once a minute to avoid the situation where that page is shown until the automation is reloaded.
2023-07-02 23:55:08 +02:00
Edward Firmo
1287ff69ac Notification page bigger hotspot
Added hotspots around the buttons (Accept & Clear) on Notification page to make easier to click on those.

Solves #907
2023-07-02 22:44:02 +02:00
Edward Firmo
157472ee67 Time engine on ESPHome 2023-07-01 14:09:45 +02:00
Edward Firmo
ec99b83817 Time engine on ESPHome 2023-07-01 14:04:42 +02:00
Edward Firmo
8f81311203 Fix validation issue 2023-07-01 10:53:11 +02:00
Edward Firmo
2f6463b30a Exclude Nextion2Text
Exclude Nextion2Text
2023-07-01 09:17:52 +02:00
Edward Firmo
491472a364 "Jump to settings" on tft
Moved "Jump to settings page" routine from ESPHome to TFT in order to reduce complexity.
2023-07-01 09:14:35 +02:00
Edward Firmo
3aca4c64d2 Panel offline mode (#900)
* Panel offline mode

Introduces "offline mode" for the panel, which will be used later with a fallback climate.

Pages that are depending on the blueprint (buttons pages, entity pages, settings pages, etc) won't be shown when the API is disconnected.

* Panel offline mode

* Panel offline mode

* Panel offline mode

* Panel offline mode
2023-06-30 12:24:25 +02:00
Edward Firmo
ec48fbd335 Adding vertical bars pics 2023-06-30 11:20:26 +02:00
Edward Firmo
3b5fefe9fc Update ReleaseNotes.md 2023-06-30 02:45:28 +02:00
Edward Firmo
d018756673 Fan update engine
Change the fan update engine to follow the same patter as other settings pages.
2023-06-30 01:09:10 +02:00
Edward Firmo
ef7f3f1fa8 Select wake-up page (#898)
* Select wake-up page

Users will be able to select the wake-up page on the blueprint inputs.
This selected page will be shown after a boot (after the boot page) and with a touch in the screen when on screen saver page.
After showing this wake-up page, all the previous behavior for closing the page (with a click or after a timeout) will be the same.

Solves #576 
Solves #612 
Solves #801 
Probably improves for https://github.com/Blackymas/NSPanel_HA_Blueprint/discussions/718#discussioncomment-5715670

* Select wake-up page
2023-06-30 01:07:44 +02:00
Edward Firmo
fe3c1ebda1 Fix name on confirmation page
Fix the entity name on the confirmation page.

The new order is:
1. Name set on the blueprint settings
2. Entity's `friendly_name` attribute
3. Entity's `name` attribute
4. Entity's `entity_id`

Solves #501
2023-06-29 17:20:16 +02:00
Edward Firmo
f483a52242 Add Fan speed settings page (#897)
* Add Fan speed settings page

Add an initial fan speed control page for fans supporting speed control.
Add speed (%) info in the buttons pages.

Solves #404 
Solves #791 
Solves https://github.com/Blackymas/NSPanel_HA_Blueprint/discussions/718#discussioncomment-5786106

* Add Fan speed settings page

* Add Fan speed settings page

* Add Fan speed settings page

* Add Fan speed settings page

* Add Fan speed settings page
2023-06-29 17:11:49 +02:00
Edward Firmo
822157f2e6 Update instructions.md 2023-06-29 14:18:08 +02:00
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