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

Great work. Now I have a small Home Assistant control panel that I can customize in many ways. I have a US version of NSPanel and it works perfectly. Thank you very much for sharing your work. Greetings from Colombia.

1 Like

Invalid encryption key

Hello everyone,

I’m still at the beginning with HomeAssistant but I’m working through with instructions like this.

I wanted to add an NS panel via BluePrint and flashed it according to the instructions. After a few attempts, this also worked.

  1. Try completely according to instructions without API key
  2. Try with API Key in ! Secrets

I get the following error message when logging:

Invalid encryption key: received_name=nspanel
WARNING Can’t connect to ESPHome API for nspanel @ 192.168…: nspanel @
192.168…: Invalid encryption key:
Received_name=nspanel (InvalidEncryptionKeyAPIError)

-The display remains black
-It’s online in the network
-And will be displayed online in ESP Home
-No entity is available in HomeAssistant under Device Information

I have already uninstalled and reinstalled ESP Home

Does anyone have an idea what else I can do?

Thank you and best regards
Andy

Could you please share your panel’s yaml? Please remove any sensitive info before sharing.

I tried this setting

And another with this line:

api:
encryption:
key: !secret api_encryption

PS:

If I start the Install over ESP Home (OTA) it runs a time. And it ends with this Error:

INFO Successfully compiled program.
INFO Connecting to 192.168….
INFO Uploading
/data/build/nspanel/.pioenvs/nspanel/firmware.bin (1159392 bytes)
ERROR Error auth result: Error: Authentication invalid. Is the password correct?

I think I managed it. Something must have gone wrong during the flashing. After another attempt, I finally have a WiFi connection and can find the entities in ESP Home. I hope it works from now on :smiling_face:

1 Like

Thanks for the project.

I just configured public transport display using NSPanel Blueprint: https://community.home-assistant.io/t/how-to-display-public-transport-timetable-in-your-nspanel/781855

1 Like

right now im evaluating NSPanel with blueprint versus a rooted xiaomi smartclock with ha running in fully kiosk browser as a lightcontrol panel / stand next to the bed.
so far NSPanel (placed in a 3d printed case) is leading in regards of usability and response time. especially the two hardware buttons offer fast and fool proof control over ambient and spotlight.
some more features / customisation would be nice but nevertheless ihave to give a big thumbs up :+1: for the cool developers :wink:

1 Like

Does anyone one knows if it is possible to react to an specific accept button notification?

For what I read and tested, the notification text and label sensors just go to empty when the notificación is “accepted” but it doesn’t says which notification was accepted.

Hello, is there a way to not specify a wake-up page so that there is no return to the home page, for example?
After the screen saver, the last page used should be displayed again.

This is not possible with the current implementation, but please add as a enhancement request in GitHub so I can take a look at this.
It might not be that difficult to implement.

I’m getting this annoying error, not sure how to fix it :frowning:

image
running same version:
image

This could be handled by using a helper in your Home Assistant automations to keep track of the latest notification sent.

That is what I am doing, I save the latest label and check when it goes to empty string.

Although I do not like that I need to use the label for it, but it works!

v4.3.12 - Hotfix for Incorrect Timezone Calculation Issues

This hotfix addresses critical issues with timezone handling on the NSPanel, specifically with POSIX string handling in ESP-IDF v4.4 and resolving an error in the propagation of timezone selection from the Blueprint to ESPHome. These fixes ensure accurate and consistent time display, fully synchronized with Home Assistant.

Fix for Incorrect Time Display Due to Timezone Handling (#2363, #2304)

  • Criticality: Critical
  • Affected Components: ESPHome, Blueprint
  • Issue Numbers: #2363, #2304
  • Description: Resolved issues where the NSPanel displayed incorrect time due to an inverted timezone offset, affecting users with time discrepancies between the panel and Home Assistant. The fix includes improvements in the propagation of timezone settings from the Blueprint, ensuring the home page accurately reflects the configured timezone.

Hi, thank you very much for this blueprint. Really nice setup for the NS Panel. Coming from lovelace ui, but this is so much better. :slight_smile:
How is it possible to open up the display settings on the Panel himself?

Long press the time area on the home page.

1 Like

I am looking to take an NSpanel and turn it into a dedicated wall display/switch for my ModernForms ceiling fan. I’m not sure if what I want to do is possible or where to start so any help is greatly appreciated. The fan/light is controllable via their phone app but I have no need to control the fan from anywhere outside of the room. I would love a simple wall switch/display and the NSpanel looked like it could possibly do what I need.

I am looking to use the two physical buttons to switch the light and fan on and off and have the screen display sliders to adjust the brightness and fan speed.

Here is a mockup of what I need.

Can someone please tell me if what I want to do is possible and point me in the right direction?

I have no issue with putting in the legwork to make it happen, I just don’t know where to start. I assume that I will need ESPhome but don’t want to flash the wrong thing and brick the device.

Do I need blueprint or nextion or both? There really is a lot of information to go through and its a bit overwhelming.

I’m also unsure if I will be able to use ESPhome to adjust both the light and fan. I know that modern forms has an integration so hopefully it can be tapped into to make this work?

Are you using Home Assistant?
If not I don’t think this blueprint would be help full as it relays on HA.
If so, I would suggestt attaching the fan to HA

and then just connect the blueprint etc.
I’m not sure about all possibilities for FAN support as I don’t use it.

But you will get the interface which comes with the blueprint and looks like this

it you are using another domotica system, there are other solutions,
if not you could still go for the NSPanel, but I think it will be a lot of work as you have to do everything youreself.

I am using HA and have the ModemForms integration installed.

From what I have read, the hardware buttons on the NSPanel can be assigned to any feature you want and don’t need to be used as relays. I have also watched videos of people using NSPanel with ESPhome / Nextion to create custom displays with on/off states and buttons to turn lights on/off… I’m just not sure if a slider can be implimented instead of up and down button presses.

Considering that there is a ModernForms integration, I can only assume that controlling the fan would be possible.

I just want to make sure that im heading in the right direction in terms of what to flash (assuming its ESPhome) and whether to use Blueprint or Nextion or both.

I think you are heading in the right direction,
if you have made sure your devices is connected and controllable by HA. then the next step would be installing the nspanel,
you need all 3, ESPhome, nextion and the blueprint to use this one.
esphome controls,
nextion shows the display.
and in the blueprint you can configure your controls.

this last part is probably where you are wondering about.