Skip to content

Add support for ITead's SONOFF NSPanel touchscreen display (ESP32 with custom Nextion HMI screen)? #1469

Description

@Hedda

Describe the problem you have/What new integration you would like

Request support in ESPHome for SONOFF NSPanel touchscreen display by ITead = ESP32 based with custom Nextion HMI screen:

https://itead.cc/product/sonoff-nspanel-smart-scene-wall-switch/

It is listed at MSRP $74.90 but early-bird version is currently sold via this Kickstarter campaign for around $54 each or $99 for two:

https://www.kickstarter.com/projects/sonoffnspanel/sonoff-nspanel-smart-scene-wall-switch/

image

A lot of information had already leaked via its FCC certification (FCC ID 2APN5NSPANEL):

https://fccid.io/2APN5NSPANEL

https://fccid.io/2APN5NSPANEL/User-Manual/User-Manual-5481421.pdf

https://fccid.io/2APN5NSPANEL/External-Photos/External-Photos-5481413.pdf

https://fccid.io/2APN5NSPANEL/Internal-Photos/Internal-Photos-5481415.pdf

https://fccid.io/2APN5NSPANEL/Label/ID-Label-and-Label-Location-5481414.pdf

Many tech review bloggers/vloggers who received preview prototype units seem to complain about its lack of integrated motion sensor for presence detection so can automatically turn on the screen backlighting, (and I like to also add the request for its DS18B20 temperature-only sensor to be replaced with a DHT22, AM2301, or Si7021 temperature and humidity combo sensor).

https://www.youtube.com/watch?v=cGXJnzS7D9g

https://www.youtube.com/watch?v=hQZk3MKJXzI

https://www.youtube.com/watch?v=vg_Jq4Y9b_s

https://www.youtube.com/watch?v=vg_Jq4Y9b_s

https://www.youtube.com/watch?v=DUvWwtvtd6k

Looks like a model each for Europe and North America; “NSPanel-EU” and “NSPanel-US”. It also contains a temperature + humidity sensor and two integrated low-amp relays for 220V/300W or 110V/150W capacity respectively, but the point is really for it to act as remote control of scenes and running widgets (local applications or scripts) such as for example an HVAC thermostat.

As I understand all Nextion displays as their own integrated microcontroller unit (STM32GO ARM Cortex-M0+ 64MHz Onboard MCU Processor) so that will off-load most of the heavy lifting work and all text and graphics, animations, etc. are created using Nextion Editor software, and then then the project files/assets are uploaded directly into the Nextion screen. The screen then has serial commands mapped to UI elements and can be sent and received from ESPHome firmware to control it.

There is some interesting discussions on the Home Assistant community forum about hacking it with ESPHome and/or Tasmota:

https://community.home-assistant.io/t/sonoff-nspanel-smart-scene-wall-switch-by-itead-coming-soon-on-kickstarter/332962/

HA-TB303 and blakadder are two that have especially connected a lot of information about the internal workings of these:

https://espthings.io/nspanel

https://blakadder.com/nspanel-teardown/

Also, the community at the unofficial Nextion/TJC chat room on Discord have been making some discoveries about its display:

https://unofficialnextion.com/t/welcome-to-the-unofficial-nextion-tjc-user-forum/8

The first thing they discovered it that has practically been designed it to be hacked and flashed with third-party firmware. Especially when taking into consideration that Efuses are not burned and pin headers on the board are easy to use for a solderless flash.

The information so far is that it does not use the protocol that ESPHome support for Nextion HMI but instead a custom protocol:

Nextion HMI Project Upload Protocol specifications:

https://nextion.tech/2017/12/08/nextion-hmi-upload-protocol-v1-1/

ITead has also posted specific IO (Input-Output) definition documention for Sonoff NSPanel in a new Kickstarter campaign update:

image

Please describe your use case for this integration and alternatives you've tried:

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions