W O W great job! Hope you will share at the end how you did it.
When I bought nspanel that kind of personalization stayed in my mind. Fingers crossed you finish project and share results.
I bought two panels, one already flashed with tasmota and nspanel.be file and second still original - Hope that both could look like yours some day
That looks fantastic, well done. This is exactly what I hope we could achieve with nspanel.
Did you find a way to sleep the screen so that the touch wake up does not accidentally press a button?
Please can you write up the steps on how you achieve this. Obviously we can all do the tasmota, mqtt element which is well documented.
Btw there is some new stock firmware being released for the nspanel which apparently has an offset for the poor internal thermometer, not sure whether that will useful.
I’m aiming to get it so people can flash my new screen firmware, and it can be configured in realtime to the users requirements, turning on/screens and defining button flow and use. Users will not be able to add custom screens, but aiming to have enough in there that all the things they would need would be in, way beyound the stock version and aimed at working with backend hubs.
So any other show stopper needs with regards to controls?
Re the screen dim, yes, I’ll have all that in (it’s pretty easy). I’ll have a config page the that, just not got to that yet, been focusing on the hard parts! lol
Idea is that you can define top level button screen from a choice of 8, 4, 3, 2 (pick closest and have blank for those not needed). Each button can be a toggle on it’s own (with custom item and name) or a link button which points to another button group, or defined fixed screen. These will be themostat, dimmer, color, music player, alarm, others. Notifications and status will be built into home page. Some small space left on somescreen, bot sure what to put there yet.
This should work for me and i think most others too.
I program my own ESP8266/ESP32s so don’t use Tasmota. Here is how to get NSPanel configured if you do likewise.
There are 3 main points:
You need to set GPIO4 on the ESP32 to low to enable the display.
Whilst the ESP32 communicates with the display using pins 16 and 17 it is opposite to the standard way this is defined. Serial2 is normally, pin 17 is Tx and pin 16 is Rx but the ESP32 and Nextion display are wired so that pin 17 is RX and pin 16 is Tx.
Baudrate is 115200.
I use the Arduino IDE and EasyNextionLibrary to communicate with the display and ESPNexUpload to upload the tft file. Both libraries have to be modifed to swap the pins.
EasyNextionLibrary: In EasyNextionLibrary.cpp change:
_serial->begin(baud);
to
_serial->begin(baud, SERIAL_8N1, 17, 16);
not so easy as expected to be, what version of JRE you recommend?
Below error after trying to open on Win10 CMD. I do have JRE 8.321 from 18th Jan 2022 so 1week old only
C:\NSPanel0.1.0>java -jar ns-flash.jar
Error: A JNI error has occurred, please check your installation and try again
Exception in thread “main” java.lang.UnsupportedClassVersionError: systems/proto/nsflash/MakeChunksFrame has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
It’s not 100% finished just yet. But basically three screens. The first one is the default (that it returns to after a few seconds) and you can swipe left-right to get to the other screens.
I based it on this one:
I’ve also added a screen which shows up when not connected and basically enables you to toggle the relays (because of my use case I disconnected them from the front buttons) manually on the panel itself.
Ok I`m with you. JAR file works - .tft splitted and uploaded through tasmota.
Been stuck on online server for chunk files but found that OH folder named “html” works like a server and it worked.
Looks fantastic - graphics are great, smooth responsivnes. But how to get out of alarm screen or other screen to HOME? Ok found it - we have to hit name of the screen on center top.
Do you think it could be possible to made one screen for vacuum? When you step in then 8 places to vacuum would be available?
It’s got revised dimmer controls. Set for testing on the top 2 right one on the main 8 panel. The first is the color dimmer, 2nd normal dimmer. pressing as normal turn them on/off. longer press, get to the advanced dimmer settings. seems a nice user flow like that.
Actually with regard to vaccum, it should work as is.
When finished you’ll be able to configure buttons in different way;
Basic toggle, as in light.
Dimmers - on/off, with long press for controls
Page links. These just jump to another page of buttons
Action - this does nothing other that send a message
Each button can be asigned an icon, from the build in pool I’ll have.
For you vaccum, you’d set a 8 page screen, all set as actions, with a vaccum icon. Room name under icon. you press the button, it messages OH. OP starts the vaccum and send a “popup” message back to nxpanel. This would show the “vaccum started messge” and jump back to home screen.
That’s the flow you mean? In which case, I’ll just add an icon