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

Hi!

just installed nspanel blueprint - great work!

Is there any way to wake up the screen via ha?
Didn’t find any solution…I want to Wakeup the display via a motion sensor.

Thanks!

Yes.
The sleep is defined by the page named “screensaver”, so if you want to put it in sleep mode just send a command to set that page, similarly, when you want to wake up just call any other page, like “Home”.

Like this:

      - service: esphome.hall_panel_send_command_printf
        data:
          cmd: page home
3 Likes

Perfect - thank you so much!!

1 Like

Hmmm, this is suboptimal solution, cause at every movement there is a page reload and you have to wait till all entities are loaded.
Any other ideas?

Play with your conditions, or maybe add an if…then, something like this:

    - if:
      - condition: state
        entity_id: sensor.hall_panel_currentpage
        state: screensaver
      then:
      - service: esphome.hall_panel_send_command_printf
        data:
          cmd: page home

So you call the home page only when the panel is sleeping (and there is movement - your trigger).

3 Likes

Question: what does sleep mode do? If I go to settings and enable sleep.
Nothing seems to change.

When that switch (sleep mode) is on, the panel’s screen will turn off after a few second with no activity and will stay off until the next activity (someone touching the screen or one of the buttons, or HA send a comand to change screen).
When sleep mode if off the screen will be always on.

2 Likes

Thnx. I see, I just didn’t wait long enough.

1 Like

Once again - thank you so much - I was not aware of this sensor!

1 Like

Is there any way to integrate a mediaplayer in this blueprint? Is there a popup menu i can set or make to control a mediaplayer?

is in the roadmap :wink: see GitHub issues

@EdwardTFN also big thanks from my side :wink:

1 Like

Hi all :wave:,

Is this blueprint supported on “pro” version, the one without the relay buttons?

no, because nspanel pro use android and not esp32 ;/

Still nothing, I can’t upload the blank tft file… I tried to change ports, reset the router, put the nspanel near the router, nothing always the usual upload error, whether using the internal external address or the github one, I thought it was a problem being under NAT, but the Lovelace UI version loads fine. Now before I put my hand to the soldering iron I was wondering: I have the original Nspanel backup if I flash this over the LovelaceUI firmware should I get the panel back as out of the box? and at this point could I flash the esphome version on it?

I just got my shipment of NS panels in. When trying to upload the .tft i got the following error:


Does anybody know whats going on?

*edit: I’m now flashing it again, however it’s still at 0% after 10 minutes (some bites have been written).
Something is definitely off.
I hope someone knows a solutions.

Someone solved your error, opening the hmi file related to the blank.tft file with the nextion editor, changed the device type, saved, reopened and returned to the original device and then recreated the blank.tft file

1 Like

Unfortunately i have no idea how to do all that. Where do i find the blank.tft? What should i change etc?
The screen now only gives an error

Here you find both the blank.tft file and the blank.hmi file NSPanel_HA_Blueprint/custom_configuration at main · Blackymas/NSPanel_HA_Blueprint · GitHub. To edit the hmi file you need the Nextion editor program DOWNLOAD - Nextion Install it and open the hmi file. Once the .hmi file is open, you will find device in the top bar, click on it and a Setting window opens, select device, mark the model and change it with one that has the same first 4 numbers, click on ok, save it, open the saved file and do the same procedure returning to the model you had selected. At this point you need to create the tft file. Click on file at the top left and in the menu select “TFT file output” choose the folder where to save it and press “Output”, now you have the blank.tft file to flash!

1 Like

Oke, thx for you’re feedback. Those 2 relay buttons are fishical buttons right? You can’t use them “virtual”?