Skip to content

Instantly share code, notes, and snippets.

@EverythingSmartHome
Last active December 3, 2022 12:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EverythingSmartHome/33fa8b1c430a4974b323024071c65178 to your computer and use it in GitHub Desktop.
Save EverythingSmartHome/33fa8b1c430a4974b323024071c65178 to your computer and use it in GitHub Desktop.
Sonoff NSPanel Flashing commands
Get Flash Size and info:
esptool.py flash_id
Read backup flash from esp32 with 4MB of flash size:
esptool.py read_flash 0x0 0x400000 nspanel.bin
Tasmota template for NSPanel:
{"NAME":"NSPanel","GPIO":[0,0,0,0,3872,0,0,0,0,0,32,0,0,0,0,225,0,480,224,1,0,0,0,33,0,0,0,0,0,0,0,0,0,0,4736,0],"FLAG":0,"BASE":1,"CMND":"ADCParam 2,64000,10000,3950 | Sleep 0 | BuzzerPWM 1"}
@mkeegan
Copy link

mkeegan commented Mar 27, 2022

There appears to be an issue in the template that causes the temperature to report back as a negative value. I checked Blackadder's configuration and there was a difference in the ADC parameters that has fixed it:

{"NAME":"NSPanel","GPIO":[0,0,0,0,3872,0,0,0,0,0,32,0,0,0,0,225,0,480,224,1,0,0,0,33,0,0,0,0,0,0,0,0,0,0,4736,0],"FLAG":0,"BASE":1,"CMND":"ADCParam 2,11200,10000,3950 | Sleep 0 | BuzzerPWM 1"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment