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

Hi there,

sorry to ask for, but i cant find any usefull wiki example in the documentation on how to set up a home-page button to switch to e.g. button page 2. This would be a good wiki-example. Switching pages with button :slight_smile:

i want a Light-bulb button on the home-screen.
If u push it, it should switch to button page 2, where all the lights are visible.

i belive, i have to do some kind of “send_command” automation, but i dont know the correct syntax for it :frowning:
Thx a lot!

You can assign it to any of the chips, which are visible in the home page.

I’m not sure… I have to try. But certainly not hard to implement.

Not yet, but this is on the road map and we already started some preparation for this.

It would be like this:

service: esphome.xxxxx_send_command_printf
data:
  cmd: page buttonpage02
1 Like

You probably have a mismatch between Blueprint and ESPHome versions.
You can check all versions (TFT, ESPHome and Blueprint) on the blue boot screen.

Very strange i use the nspanel config 4.02 on another device No issue. On this panel it tells me wrong blueprint Version

You can have wrong version on ESPHome logs when no version is reported, which means the Blueprint is not connected to the panel.
Please double check in your blueprint settings if the panel is selected properly.

I’m still waiting to fix one of my NS Panels which refuses to complete the TFT update, but I have another which is working great on all the 4.0.2 files.

My question is, where do I find the settings to select the media player to be controlled? I don’t see it anywhere in the Blueprint.

On any button you can assign a media player entity.

We are working on a new upload engine, but still in dev. Do you want to try that?

I’m definitely keen to try it.

So, in your ESPHome yaml settings, on the remote_package area, change from ref: main to ref: dev. Flash your device again and then try to Upload TFT (please capture logs).
After that, change it back to ref: main and flash your device again. (please don’t try to transfer TFT again if you already succeeded from dev).
Please let me know how it goes.

1 Like

Success! You are a legend mate. So far I’ve just flashed the dev ESPhome file and uploaded the TFT. I’ll now upload the main ESPhome file again. Unfortunately I did it all from my phone so didn’t get the logs but it went smoothly. I’ll see if I can grab anything using my PC shortly.

EDIT: I had a look at the logs but nothing to see there, I definitely should have used my PC during the TFT update. Sorry about that.

1 Like

No worries about logs. I’m happy to hear you succeed uploading the TFT file.

1 Like

So… with the newly released wake word stuff in HA and ESPhome, would it be possible to include that functionality in the NS Panels by wiring in a microphone? That would be epic. I guess it will come down to what resources are left in the NS Panel’s ESP with the existing package on there.

1 Like

With the media players, I’m noticing that with the ones I have setup which only have ‘up’ and ‘down’ volume rather than a slider, simply show no volume control at all.

This really needs up and down volume control.

Even better would be input selection

Could you please go to Developer Tools, tab States, then look for this entity and let me know what it is in its attributes? Ims specially interested on the supported_features attribute.
By the way, which integration are you using for this media player device?

That would be awesome. In fact, there are some GPIO probably available (gpio2, gpio23?) so finding a pin for your mic might not be an issue.

So this is an old AV receiver which I’m controlling via SmartIR with a Broadlink IR blaster. Basically HA can only send it commands for power, volume, mute and input selection, then expect that it got through. For volume it can therefore only give up and down commands with no knowledge of the actual volume level. In media cards this normally just give up and down buttons rather than a slider.

image

Plus an input selector drop-down menu

image

I actually have two systems like this.

Supported features is 4024:

    PAUSE = 1
    SEEK = 2
    VOLUME_SET = 4
  ->VOLUME_MUTE = 8
  ->PREVIOUS_TRACK = 16
  ->NEXT_TRACK = 32

  ->TURN_ON = 128
  ->TURN_OFF = 256
  ->PLAY_MEDIA = 512
  ->VOLUME_STEP = 1024
  ->SELECT_SOURCE = 2048
    STOP = 4096
    CLEAR_PLAYLIST = 8192
    PLAY = 16384
    SHUFFLE_SET = 32768
    SELECT_SOUND_MODE = 65536
    BROWSE_MEDIA = 131072
    REPEAT_SET = 262144
    GROUPING = 524288
    MEDIA_ANNOUNCE = 1048576
    MEDIA_ENQUEUE = 2097152

We use volume set to define if volume buttons are shown, but I understand in your case volume up/down buttons should be there.
Volume step is probably the best one in this case, but that will require changes in the service calls also, as currently the +/- also use volume set service.
I will take a look at this.

1 Like

Is there a way to change an icon based on the state of a sensor within the nspanel?

None of my groups are working as buttons. Am I doing something wrong? It is working in Home Assistant as it should…