How to make a Sonoff NSPanel turn off the screen when you're not using it

Published at : 23 Dec 2025

See the pinned comment from fpv.darkt.im below for what might be a much easier way: https://www.youtube.com/watch?v=zndPIPLRjb8&lc=UgzjU_eSwzpSPo3nXAt4AaABAg

Automatic sleep mode doesn't seem to work on the Sonoff NSPanel. Here's how to fake it with a timer and some Nextion Editor hackery. Links below:

00:00 Introduction
00:57 3D Printed Stands
02:53 The Problem
03:37 Setting Things Up
07:38 Adding the Timer
09:00 Wake Button Hackery
13:40 Keeping it Awake
15:14 Saving and Restoring Brightness
17:24 Testing it Out
18:04 Almost Perfect
19:04 The Final Test
20:20 Outro

🔗 Useful links 🔗

‣ Community Wiki: https://github.com/masto/NSPanel-Demo-Files/wiki
‣ Sonoff NSPanel: https://amzn.to/34fqZ5y
‣ USB to TTL adapter: https://amzn.to/3qHKdZa

✓ Sample files
‣ My demo YAML and HMI files: https://github.com/masto/NSPanel-Demo-Files
‣ 3D Printed Stands: https://www.thingiverse.com/thing:5184752

✓ Software
‣ Home Assistant: https://home-assistant.io
‣ ESPHome: https://esphome.io
‣ Nextion Editor: https://nextion.tech/nextion-editor/
‣ OpenHASP: https://haswitchplate.github.io/openHASP-docs/

✓ Touch Displays
‣ Sonoff NSPanel (US model): https://amzn.to/34fqZ5y
‣ Lanbon L8 (US model): https://amzn.to/3sV8w8N
‣ HA SwitchPlate HASPone: https://github.com/HASwitchPlate/HASPone

✓ Tools and equipment
‣ USB to TTL adapter: https://amzn.to/3qHKdZa
‣ Breadboard alligator clip jumpers: https://amzn.to/3HpU6kX
‣ Dupont jumpers: https://amzn.to/3zfr2JS
‣ Pin headers: https://amzn.to/3sQAHpk
‣ 4-pin I2C cables: https://amzn.to/3JworA5
‣ Assorted Dupont connectors: https://amzn.to/3mNOg52
‣ Crimp tool for Dupont connectors: https://amzn.to/3Hn2TE6
‣ Silicone wires (convenient for bench testing): https://amzn.to/3Hpr1pG
‣ Ferrules: https://amzn.to/3mO13UU
‣ Hex crimper for ferrules: https://amzn.to/32QlJ7G
‣ WAGO wire connectors: https://amzn.to/3ELDke8
‣ Precision screwdriver set: https://amzn.to/3FM5w1L
‣ Cliff Quicktest (US model): https://amzn.to/3zic85B or https://www.newark.com/cliff-electronic-components/cl1857/qt1-usa-canada-13a-fuse-quicktest/dp/08AC2593