Sonoff NSPanel Blueprint - Configure your own custom NSPanel easy via a Blueprint

I don’t believe this is possible, unless something has changed. That part where you have to upload the background image that takes forever is static so I am not sure if it would be possible to get the exact look you want. If it is possible, something has changed because they always had 2 files to upload, one for the EU model and one for the US due to the different aspect ratios. I believe you are limited to mdi files.

Unfortunately that format was replaced by the horizontal bar. That previous dial was quite buggy given the limitations imposed by the display used by Sonoff on the NSPanel.

1 Like

What version number should this beta test have?

4.3.0b2 right now

clean build again d’oh.

Just testing.

relay 2 icon dialogue box looks wrong, typing in it does not show any icons but it does work to change the icon on the nspaniel.

Also if I remove the Mdi:whatever I get a 1 or 2 on NSpanel but I thought you should get no icon.

This was already fixed in dev and will be included on v4.3 to be released very soon.

1 Like

what about the square with a 1 or 2 when you have no mdi:icon for the relay?

That is the default icon when no icon is selected. I’ve on my plans to be able to use those chips to something else, so this issue will be resolved. But that is hopefully for v4.4, as now v4.3 is already on beta.

v4.3 - Welcome to Framework ESP-IDF, an Utilities Dashboard and Enhanced Localization

This milestone release is not just about adopting a new technical foundation; it’s about enhancing the capabilities and experiences of our users through significant performance improvements, more comprehensive API documentation, customizable user interfaces and improved localization.
And with a nice Utilities Dashboard as a bonus!!

Our dedication to refining the user experience and expanding customization options continues, with this release featuring:

  • Utilities Dashboard: A new addition, offering a customizable overview for essential utility metrics such as solar production, wind energy, EV charging status, battery levels, and water or gas consumption.
  • Comprehensive API Documentation: Simplifying customization and integration for developers and users, enabling tailored experiences with detailed service documentation.
  • Localization and Personalization: Advances in user-defined settings, like decimal separators and value translations, contribute to a more intuitive interface. We’ve also streamlined the display to exclude empty pages, making navigation more efficient.
  • Performance and Functionality: The shift to the ESP-IDF framework not only boosts performance but also paves the way for future enhancements, keeping NSPanel at the forefront of smart control technology.

As we embrace the ESP-IDF framework, we’re excited to explore the new horizons it brings to the NSPanel firmware. Dive into v4.3 and discover the advancements that await.

v4.3 - Welcome to Framework ESP-IDF, an Utilities Dashboard and Enhanced Localization Β· Blackymas/NSPanel_HA_Blueprint Β· Discussion #1891 (github.com)

5 Likes

Excellent news.

1 Like

Is there an overview for the utility dashboard which group is where?

Hi!! I manage to flash my NSPanel and using Blueprint to customize the panel. My needs are pretty simple (I think!) How can I use the physical buttons to dimm the lights that will be connected on the the 2 outputs provided on the NSPanel ?

Is it possible ? If not, what do I need to β€œadd” to make this work ??

Thanks for your help!

EU:

G1 G3 G5
Grid Home
G2 G4 G6

US

G1 Grid G2
G3 G4
G5 Home G6

1 Like

Why don’t you add this as a feature request in GitHub so we can understand it better?

The relays on NSPanel are 2-state only, so it will be on or off and cannot natively dim a light connected to it.
You can, however, connect the relay to a dimmers (no need for a smart/connected dimmer) and would be possible to customize the button to control that (some people already did).
You can also use a smart bulb and use the button state to manage that. Again, some other people already did that.

1 Like

Great blueprint, new update works perfect.

Hi, I’ve been encountering some issues while trying to install the ESPHome firmware and haven’t been able to resolve them despite numerous attempts. I would really appreciate any help.

Initially, I tried the β€˜plug into this computer’ option, but it just keeps getting stuck on the β€˜preparing’ screen with a spinning circle. Then, I attempted the β€˜manual download’ option, but I’ve run into errors halfway through multiple times. Could anyone possibly assist me with this? Thank you so much in advance

my esphome config code:

substitutions:
  # Settings - Editable values
  device_name: "nsblack"
  friendly_name: "nsblack"
  wifi_ssid: !secret wifi_ssid
  wifi_password: !secret wifi_password
  # nextion_update_url: "http://192.168.50.213:8123/local/nspanel_eu.tft"  # Optional
  # Add-on configuration (if needed)
  # heater_relay: "1"  # Possible values: "1" or "2"

# Customization area
##### My customization - Start #####
##### My customization - End #####

# Core and optional configurations
packages:
  remote_package:
    url: https://github.com/Blackymas/NSPanel_HA_Blueprint
    ref: main
    files:
      - nspanel_esphome.yaml # Basic package
      # Optional advanced and add-on configurations
      # - esphome/nspanel_esphome_advanced.yaml
      # - nspanel_esphome_addon_climate_cool.yaml
      # - nspanel_esphome_addon_climate_heat.yaml
      # - nspanel_esphome_addon_climate_dual.yaml
    refresh: 300s

the install log:

INFO ESPHome 2024.2.2
INFO Reading configuration /config/esphome/nsblack.yaml...
INFO Updating https://github.com/Blackymas/NSPanel_HA_Blueprint@main
INFO Updating https://github.com/Blackymas/NSPanel_HA_Blueprint@main
INFO Updating https://github.com/edwardtfn/esphome@nextion-v425
INFO Detected timezone 'Australia/Adelaide'
INFO Generating C++ source...
INFO Compiling app...
Processing nsblack (board: esp32dev; framework: espidf; platform: platformio/[email protected])
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - framework-espidf @ 3.40406.240122 (4.4.6) 
 - tool-cmake @ 3.16.9 
 - tool-ninja @ 1.10.2 
 - toolchain-esp32ulp @ 2.35.0-20220830 
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Creating a new virtual environment for IDF Python dependencies
Installing ESP-IDF's Python dependencies
Collecting urllib3<2
  Downloading urllib3-1.26.18-py2.py3-none-any.whl (143 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 143.8/143.8 kB 3.4 MB/s eta 0:00:00
Collecting cryptography<35.0.0,>=2.1.4
  Downloading cryptography-3.4.8.tar.gz (546 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 546.9/546.9 kB 33.4 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting future>=0.18.3
  Downloading future-1.0.0-py3-none-any.whl (491 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 491.3/491.3 kB 22.5 MB/s eta 0:00:00
Collecting pyparsing<2.4.0,>=2.0.3
  Downloading pyparsing-2.3.1-py2.py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.8/61.8 kB 25.1 MB/s eta 0:00:00
Collecting kconfiglib~=13.7.1
  Downloading kconfiglib-13.7.1-py2.py3-none-any.whl (145 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 145.7/145.7 kB 20.0 MB/s eta 0:00:00
Collecting idf-component-manager~=1.0
  Downloading idf_component_manager-1.5.2-py2.py3-none-any.whl (160 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 160.3/160.3 kB 34.8 MB/s eta 0:00:00
Collecting cffi>=1.12
  Downloading cffi-1.16.0.tar.gz (512 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 512.9/512.9 kB 29.5 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting packaging
  Downloading packaging-24.0-py3-none-any.whl (53 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.5/53.5 kB 35.2 MB/s eta 0:00:00
Collecting requests<3
  Downloading requests-2.31.0-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 35.7 MB/s eta 0:00:00
Collecting requests-file<2
  Downloading requests_file-1.5.1-py2.py3-none-any.whl (3.7 kB)
Collecting requests-toolbelt
  Downloading requests_toolbelt-1.0.0-py2.py3-none-any.whl (54 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.5/54.5 kB 24.6 MB/s eta 0:00:00
Collecting schema
  Downloading schema-0.7.5-py2.py3-none-any.whl (17 kB)
Collecting six
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting tqdm<5
  Downloading tqdm-4.66.2-py3-none-any.whl (78 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.3/78.3 kB 34.4 MB/s eta 0:00:00
Collecting colorama
  Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting pyyaml>5.2
  Downloading PyYAML-6.0.1.tar.gz (125 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 125.2/125.2 kB 32.6 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting cachecontrol[filecache]>0.12.6
  Downloading cachecontrol-0.14.0-py3-none-any.whl (22 kB)
Collecting contextlib2>0.6.0
  Downloading contextlib2-21.6.0-py2.py3-none-any.whl (13 kB)
Collecting click
  Downloading click-8.1.7-py3-none-any.whl (97 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.9/97.9 kB 27.4 MB/s eta 0:00:00
Collecting msgpack<2.0.0,>=0.5.2
  Downloading msgpack-1.0.8.tar.gz (167 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 167.0/167.0 kB 33.3 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting filelock>=3.8.0
  Downloading filelock-3.13.1-py3-none-any.whl (11 kB)
Collecting pycparser
  Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 kB 23.9 MB/s eta 0:00:00
Collecting charset-normalizer<4,>=2
  Downloading charset_normalizer-3.3.2-py3-none-any.whl (48 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.5/48.5 kB 31.5 MB/s eta 0:00:00
Collecting idna<4,>=2.5
  Downloading idna-3.6-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.6/61.6 kB 32.9 MB/s eta 0:00:00
Collecting certifi>=2017.4.17
  Downloading certifi-2024.2.2-py3-none-any.whl (163 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 163.8/163.8 kB 25.7 MB/s eta 0:00:00
Building wheels for collected packages: cryptography, cffi, pyyaml, msgpack
  Building wheel for cryptography (pyproject.toml): started
  Building wheel for cryptography (pyproject.toml): still running...
  Building wheel for cryptography (pyproject.toml): still running...
  Building wheel for cryptography (pyproject.toml): still running...
  Building wheel for cryptography (pyproject.toml): still running...
  Building wheel for cryptography (pyproject.toml): finished with status 'done'
  Created wheel for cryptography: filename=cryptography-3.4.8-cp311-cp311-linux_armv7l.whl size=2078372 sha256=38d8241175c251a9f26aba598b932a729b5175827a2cf4b32674e1a8d54c3069
  Stored in directory: /tmp/pip-ephem-wheel-cache-60tu57lg/wheels/9b/d0/e0/ea75c03a4eef3e2cdc8740e0a72a8d6476999f76be2250f96d
  Building wheel for cffi (pyproject.toml): started
  Building wheel for cffi (pyproject.toml): finished with status 'done'
  Created wheel for cffi: filename=cffi-1.16.0-cp311-cp311-linux_armv7l.whl size=378561 sha256=a280ed7664d7e724f63cb76dd0974422cc19fe258a76106bcf696d4a4d824180
  Stored in directory: /tmp/pip-ephem-wheel-cache-60tu57lg/wheels/10/4f/3d/7fc6b66e12830389d13c5c67c7fda40d417e3d2662818e64b6
  Building wheel for pyyaml (pyproject.toml): started
  Building wheel for pyyaml (pyproject.toml): finished with status 'done'
  Created wheel for pyyaml: filename=PyYAML-6.0.1-cp311-cp311-linux_armv7l.whl size=45361 sha256=368a6b9b5e12a30396fe1a23aebd1e24f9c0eccb1690fa65e2a3d7c647afadfc
  Stored in directory: /tmp/pip-ephem-wheel-cache-60tu57lg/wheels/20/40/04/9edd5f1052f28aff139c0b315b3d5ad7ba893c93ccde03f1b4
  Building wheel for msgpack (pyproject.toml): started
  Building wheel for msgpack (pyproject.toml): finished with status 'done'
  Created wheel for msgpack: filename=msgpack-1.0.8-cp311-cp311-linux_armv7l.whl size=347331 sha256=f0e0ddc59f03c9dab4702c131cb39aa1207fe14632f42e9ced43dac9aa5c01e3
  Stored in directory: /tmp/pip-ephem-wheel-cache-60tu57lg/wheels/d2/4d/f3/cc067655db7b07f1b1d4a0c966bc45b7fe2aef831918523f1f
Successfully built cryptography cffi pyyaml msgpack
Installing collected packages: pyparsing, urllib3, tqdm, six, pyyaml, pycparser, packaging, msgpack, kconfiglib, idna, future, filelock, contextlib2, colorama, click, charset-normalizer, certifi, schema, requests, cffi, requests-toolbelt, requests-file, cryptography, cachecontrol, idf-component-manager
Successfully installed cachecontrol-0.14.0 certifi-2024.2.2 cffi-1.16.0 charset-normalizer-3.3.2 click-8.1.7 colorama-0.4.6 contextlib2-21.6.0 cryptography-3.4.8 filelock-3.13.1 future-1.0.0 idf-component-manager-1.5.2 idna-3.6 kconfiglib-13.7.1 msgpack-1.0.8 packaging-24.0 pycparser-2.21 pyparsing-2.3.1 pyyaml-6.0.1 requests-2.31.0 requests-file-1.5.1 requests-toolbelt-1.0.0 schema-0.7.5 six-1.16.0 tqdm-4.66.2 urllib3-1.26.18
Reading CMake configuration...
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc -- broken
-- Configuring incomplete, errors occurred!
See also "/data/build/nsblack/.pioenvs/nsblack/CMakeFiles/CMakeOutput.log".
See also "/data/build/nsblack/.pioenvs/nsblack/CMakeFiles/CMakeError.log".

fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
CMake Error at /data/cache/platformio/packages/tool-cmake/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
  The C compiler

    "/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /data/build/nsblack/.pioenvs/nsblack/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/data/cache/platformio/packages/tool-ninja/ninja cmTC_8377b && [1/2] Building C object CMakeFiles/cmTC_8377b.dir/testCCompiler.c.obj
    [2/2] Linking C executable cmTC_8377b
    FAILED: cmTC_8377b 
    : && /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc -mlongcalls -Wno-frame-address   CMakeFiles/cmTC_8377b.dir/testCCompiler.c.obj  -o cmTC_8377b   && :
    /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/liblto_plugin.so: error loading plugin: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/liblto_plugin.so: cannot open shared object file: No such file or directory
    collect2: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  /data/cache/platformio/packages/framework-espidf/tools/cmake/project.cmake:381 (__project)
  CMakeLists.txt:3 (project)



========================= [FAILED] Took 425.21 seconds =========================

Since update v4.3.0 the temperature on the homepage overwrites the temperature of my climate control by the temperature of the NSpanel build in temp sensor after a few seconds. Any idea to change this?

Hi, I am new to HA and would like to know if I can have a central HA dashboard in the house on a big screen, and then these NSPanels in each room. And if I can, would they work fine as one HA system?

On GitHub I saw a change fixing this issue.
Probably this will be released next Wednesday in v4.3.1

2 Likes