Tasmota and Sonoff NSPanel
Latest release will be here
Bottom of this post; https://community.openhab.org/t/nxpanel-replacement-firmware-for-sonoff-nspanel/132869?u=m-home
Quick early version of TFT custom screen firmware upload
Copy the nextion.bs
file to your device with the File System Manager. Change the autoexec.bs
to load that instead of the nspanel.bs
if you were using that with the stock screen firmware.
https://github.com/peepshow-21/ns-flash/tree/master/berry
Download the jar file and run it with an installed java runtime on your windows or linux host. It should show a little app to convert the file.
https://github.com/peepshow-21/ns-flash/releases/download/v.0.0.4-alpha/ns-flash.jar
Browse to the TFT file you want to upload. Select the folder you want the chunk files to to. It's best to make this a folder that is seen by your local http server. But you can put them anyway and move the after. Press 'Build'. It will split the TFT into files tamsota can load
Openhab users can use the inbuilt web server, for those that need to install a local IIS to do this, here is a little guide from Viper-666 https://github.com/viper-666/ns-flash/wiki/HowTo-set-up-a-IIS-Webserver-under-Windows
Boot the NSPanel with the new nextion.bs loaded. At the console, type;
Where this is the place the chunk files live.
It shows progress in the console as MQT so you can monitor from Openhab or other Automation
That's it. then just wait. The display should show install progress.
When it's complete it will just reboot.
Data Exchange
If you set 'Send Component ID' in the Nextion editor you will get the native data back, which will show like this
13:03:59.381 MQT: tele/nspanel/RESULT = {"NSPanel":{"Nextion":"bytes('65010700')"}}
However, you can want to send more usful things back then using the prints
method in nextion is maybe better;
which will appear like this;
13:23:11.214 MQT: tele/nspanel/RESULT = {"NSPanel":{"JSON":"{hi, x}AAAABBBB"}}
Note the J
at start which trigger this!! <---- wrong! not J needed, default is picked up it starts with '{'
UPDATE - new version with example firmware!
Check here for latest; https://github.com/peepshow-21/ns-flash/tree/master/tft