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
2023-01-30 01:11:25 +01:00
2023-01-11 12:22:02 +01:00
2023-03-26 19:59:38 +02:00
2022-11-07 13:28:48 +01:00
2022-11-07 13:33:15 +01:00
2023-04-04 23:38:00 +02:00
2023-04-03 08:21:35 +02:00
2023-04-03 22:37:57 +02:00
2023-04-03 22:37:57 +02:00
2023-04-03 22:37:57 +02:00
2023-04-03 22:37:57 +02:00
2023-01-19 23:56:11 +01:00

NSPanel Custom with HA Blueprint

You use our NSPanel version and are satisfied with it? Then we would be very happy about a donation to support our project.

Paypal

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

This project allows you to configure your complete NSPanel via a Blueprint with UI.

That means you don't have to customize any code or change any lines in the code.

So you have a nice graphical interface where you can build your NSPanel. And the best thing is, the installation takes only a few minutes.

The goal was to create a version that allows everyone to use the NSpanel fully local without having to deal with programming or reading hours of documentation - AND YES WE DID IT!!!! ;)

📕 Full documentation and installation is available here NSPanel Configuration, Setup and HowTo.

📌 Step by Step - Setup and Overview Video´s

🚀 How to create "Issues" when I have a problem WIKI HowTo

All Feature Requests can be found here All Feature Request

🎉 Roadmap Roadmap can be found here Roadmap

💥 Please move pull request to DEV branch and not to main branch - thanks!

🙋 WE ARE LOOKING FOR YOU! We are always looking for people who would like to support this project. We are looking for help with "programming new features, writing documentation or translating documentation to EN. If you are interested then please contact us :)

NSPanel:

2 Home

3 Buttonpage NEW Domains

(Home and Buttonpage)

4 lightsetting 1 5 Lightsetting 2

(Lightsettings - Brightness and TEMP Color)

6 Lightsetting 3 7 Thermostat

(Colorwheel and Thermostat)

8 Cover 9 Weather

(Coversetting and Weather Forecast)

10 Settings 1 Boot

(NSPanel Settings and Boot Screen)

Device Setting 1 Device Setting 2

(HA Device Setting for Example temperature correction)

Blueprint:

Blueprint 1 Blueprint 2

Features:

  • Easy to use and simple configuration via Blueprint - no change in the code is necessary
  • 32 buttons on 4 button pages with long press function for settings (more buttons are also possible)
  • Button design is automatically generated based on the selected entity
  • Buttons show current brightness and cover position in the button itself
  • Buttons label can be assigned via blueprint
  • Weather + 5 days weather forecast
  • Thermostat + Touch + Relay control for floor heating
  • Light control (brightness-slider, colorwheel, TempColor-slider) - via long Press
  • Cover control (open, close, position-slider) - via long press
  • Settings page (display brightness, display dim brightness, auto-dim, sleep mode, reboot NSPanel)
  • Swipe between pages
  • Top menu with 10 icons for specific states
  • Heating control (hot water)
  • Modern design - design easy to change via Adobe Express (free + design template)
  • 2 physical switches
  • and much more ;)

Pages

Home

  • Current weather with button to Weather Forcast page
  • Hardware buttons can be freely assigned
  • Hardware button label or without label
  • Blue line indicates on or off of the entity
  • Temperature outside
  • Status icons at the top
  • Room temperature with button to thermostat page
  • Room humidity
  • Hot water temperature
  • Button to display settings page

Button Page

  • 32 Button
  • 4 Button pages
  • Button design is automatically generated based on the selected entity
  • Buttons show current brightness and cover position in the button itself
  • Buttons label can be assigned via blueprint
  • all buttons with long press function
  • automatic detection by long press if it is a light or cover for submenu
  • swipe between all pages
  • swipe also down and up for fast access to certain pages

Light Settings

  • Light current state
  • Brightness Slider
  • Colorwheel
  • TempColor slider
  • Jump back to the right button page

Cover Settings

  • Open and close cover
  • Cover position via slider
  • Cover battery value if available (I use Ikea roller blind)
  • jump back to the right button page

Thermostat

  • Touch Temp control
  • Outside temperature
  • Hot water
  • heating on, off and idle
  • Hot water button

Weather Forecast

  • 5 days Weather Forecast via swipe (Integration Accuweather - but should also go with another integration)
  • Lowest and highest temperature outside
  • Date
  • Rain probability
  • Sunshine hours
  • Sun pressure
  • Thunderstorm probability
  • Wind speed
  • Night thunderstorm probability and wind speed

Display Settings

  • Restart NSPanel
  • Sleep mode - display off after time X
  • Display brightness slider
  • Display dim brightness slider
  • Status Brightness in %

Thanks to:

SmartHome Yourself: https://www.youtube.com/c/SmarthomeyourselfDe_DIY

Masto: https://github.com/masto/NSPanel-Demo-Files

Marcfager: https://github.com/marcfager/nspanel-mf

lovejoy77: https://github.com/lovejoy777/NSpanel

Hellis81: https://github.com/Hellis81/NS-panel

Description
This allows you to configure your complete NSPanel via Blueprint with UI and without changing anything in the code
Readme 1.6 GiB
Languages
C++ 94.2%
Python 5.8%