Flashing the Sonoff NSPanel with ESPHome - how to get a custom UI for Home Assistant!

  Рет қаралды 222,661

Christopher Masto

Christopher Masto

Күн бұрын

Here's how to put ESPHome on a Sonoff NSPanel, opening up the ability to custom design your own touchscreen Home Assistant control panel. Links below:
00:00 Introduction
03:00 Unboxing
06:07 Factory firmware demo
10:59 Opening it up
16:53 Installing ESPHome
19:02 ESPHome Configuration
21:18 Flashing the NSPanel
24:46 Home Assistant integration
26:26 Making a custom UI with Nextion Editor
32:41 Uploading the TFT file
37:57 Testing the custom interface
44:37 Outroduction
🔗 Useful links 🔗
‣ Sonoff NSPanel: amzn.to/34fqZ5y
‣ USB to TTL adapter: amzn.to/3qHKdZa
✓ Sample files
‣ My demo YAML and HMI files: github.com/masto/NSPanel-Demo...
✓ Software
‣ Home Assistant: home-assistant.io
‣ ESPHome: esphome.io
‣ Nextion Editor: nextion.tech/nextion-editor/
‣ OpenHASP: haswitchplate.github.io/openH...
✓ Touch Displays
‣ Sonoff NSPanel (US model): amzn.to/34fqZ5y
‣ Lanbon L8 (US model): amzn.to/3sV8w8N
‣ HA SwitchPlate HASPone: github.com/HASwitchPlate/HASPone
✓ Tools and equipment
‣ USB to TTL adapter: amzn.to/3qHKdZa
‣ Breadboard alligator clip jumpers: amzn.to/3HpU6kX
‣ Dupont jumpers: amzn.to/3zfr2JS
‣ Pin headers: amzn.to/3sQAHpk
‣ 4-pin I2C cables: amzn.to/3JworA5
‣ Assorted Dupont connectors: amzn.to/3mNOg52
‣ Crimp tool for Dupont connectors: amzn.to/3Hn2TE6
‣ Silicone wires (convenient for bench testing): amzn.to/3Hpr1pG
‣ Ferrules: amzn.to/3mO13UU
‣ Hex crimper for ferrules: amzn.to/32QlJ7G
‣ WAGO wire connectors: amzn.to/3ELDke8
‣ Precision screwdriver set: amzn.to/3FM5w1L
‣ Cliff Quicktest (US model): amzn.to/3zic85B or www.newark.com/cliff-electron...

Пікірлер: 223
@ChrisMasto
@ChrisMasto 2 жыл бұрын
I started a Wiki on GitHub where we can collect useful links, tips and tricks, etc. Feel free to contribute to it: github.com/masto/NSPanel-Demo-Files/wiki
@TradieTrev
@TradieTrev 2 жыл бұрын
You legend! There's so many possibilities with this device! My mind goes straight to gutter and I'm going to have titty girls on mine hahaha
@ricardoramirez-ue5li
@ricardoramirez-ue5li Жыл бұрын
Great stuff at the wiki! & a million thanks for sharing all this :)
@thisfeatureisbad
@thisfeatureisbad 2 жыл бұрын
THIS IS WHAT I WAS WAITING FOR 2 MONTHS, the custom UI. 😍 Sorry for caps.
@stephenwatson2509
@stephenwatson2509 2 жыл бұрын
Great to see progress on these! The form factor looks perfect a couple of bottoms for the frequent items and soft buttons for the less frequent. Throw in 2 built in relays and a temp sensor is almost just a bonus. I hope they get certified for Australian market.
@EngineerK
@EngineerK 2 жыл бұрын
You have a great pace with how you present, not wasting time on trivial stuff. Good job. I think we need lovelace-mini for this device.
@Lmoooo
@Lmoooo 2 жыл бұрын
Thank you for a great tutorial! Got me started with my custom HMI and HA integration. Great work!
@MarionMakarewicz
@MarionMakarewicz 2 жыл бұрын
What a sweet project. Thanks for the detailed instructions. Definitely something I'd like to look into.
@fonte935
@fonte935 2 жыл бұрын
Awesome, thank you! Looks both fun and maddening at the same time, but a great learning opportunity for sure.
@UnaKarlsen
@UnaKarlsen 2 жыл бұрын
Excellent work! Thank you so much for sharing. I look forward to trying this in my own setup in the not too distant future.
@sven1858
@sven1858 2 жыл бұрын
Great video - thanks for this, being able to flash these panels makes me realise the potential for these 👍👍 {i've never looked at ESP home before}
@scpowered
@scpowered 2 жыл бұрын
Awesome! Gives me motivation to get back to work on my home automation setup!
@NathanOKane
@NathanOKane 2 жыл бұрын
Great job! I've grown to like esphome over tasmota at this point. I really wish stuff like this could be more approachable, but with the way you organized the video I can follow it. Looking forward to trying this with similar products.
@jordancoleman1608
@jordancoleman1608 2 жыл бұрын
Fantastic video, and great timing for my two NSPanels that just arrived. Looking forward to getting them connected to Home Assistant with custom UIs. Thanks!
@andybgrant33
@andybgrant33 2 жыл бұрын
Oh boy. I can see GUI development becoming quite the rabbit hole. Can't wait!
@michiganmitten
@michiganmitten 2 жыл бұрын
Same here! Thankyou! Great video walkthrough!
@jasongoldenberg973
@jasongoldenberg973 2 жыл бұрын
i am playing with these too jordan!.. you running HA at home? I cant fit all my code on one page, which is your must have!
@robotron3000
@robotron3000 2 жыл бұрын
Fantastic attention to detail, super inspiring!
2 жыл бұрын
Awesome Video and very well explained! Just got mine, and this weekend will be fun! Thank you! Cheers!
@TwanJaarsveld1
@TwanJaarsveld1 2 жыл бұрын
Simply the best video about the NSpanel
@andybgrant33
@andybgrant33 2 жыл бұрын
This was excellent. Thank you for the great reference.
@boomsig9069
@boomsig9069 2 жыл бұрын
Awesome tutorial! Was looking for a light switch display solution that works with HA for my entrance way. Thanks for sharing!
@PaulMorley1
@PaulMorley1 2 жыл бұрын
Fantastic video. Thank you so much for all the effort. This has definitely inspired me to buy one of these panels.
@schulz461
@schulz461 Жыл бұрын
Absolutely amazing video! I have no intention of ever using this product, and I find most other home automation tutorials to be either extremely slow and boring, or, too quickly paced with little or poor explanation of what was actually done. You explained everything perfectly and I look forward to watching your future content! THANK YOU! ❤
@shadowpuck99
@shadowpuck99 2 жыл бұрын
thank you for posting this video - i now have some new hardware to check out! thank you also for posting the tools and such that you are using.
@kamilosxd678
@kamilosxd678 2 жыл бұрын
Amazing video - exactly what I wanted!!!
@SurfSailKayak
@SurfSailKayak 2 жыл бұрын
Thanks for showing this off. I may have to pickup one to play.
@mrmike1972
@mrmike1972 2 жыл бұрын
Cool, I just bought a couple panels, downloaded all the software. Can't wait to try it out.
@ThAt0n36Uy
@ThAt0n36Uy 2 жыл бұрын
Really enjoyed this informative video, been waiting for someone to go in depth on this device and custom firmwares. I would definitely look forward to any future videos on this exact subject in the future if you're so inclined.
@ChrisMasto
@ChrisMasto 2 жыл бұрын
I plan to do one about the Lanbon L8 with OpenHASP, since that may be a better choice to avoid fighting with the Nextion Editor.
@cam_DA_Hawkdriver
@cam_DA_Hawkdriver 2 жыл бұрын
Good video! I bought two for a house I’m building and wanted more info after I received them. I stumbled upon your channel. Now, I’m waiting for your next video that makes this thing prettier after you custom load with ESP Home.
@shaneduffy4853
@shaneduffy4853 2 жыл бұрын
Great video - thanks for the content would love to see more like this on your channel
@AnisKadri
@AnisKadri 2 жыл бұрын
Great video! Very funny at times too :) Thanks for sharing this.
@geneliverman6827
@geneliverman6827 2 жыл бұрын
Awesome job, this is super helpful!
@ddean3732
@ddean3732 2 жыл бұрын
Keep grinding Chris... Don't give up. Great vid!
@jflecool
@jflecool 2 жыл бұрын
Very good video cant wait to receive mine and watch your video again!!
@PM13501
@PM13501 2 жыл бұрын
Great video with lots of details!!
@sekt1953
@sekt1953 2 жыл бұрын
Just one more thing: Your documentation on github is great, keep it up. Thanks
@pista01slk
@pista01slk 2 жыл бұрын
Excellent video! Well done!
@alconaft4343
@alconaft4343 2 жыл бұрын
Awesome video, has ordered for myself for test.
@ChrisS-oo6fl
@ChrisS-oo6fl 2 жыл бұрын
Thank you! More videos like this will definitely warrant a sub.
@stronati
@stronati 2 жыл бұрын
Great video and marvellous guide. Thanks a lot.
@jenslyn42
@jenslyn42 2 жыл бұрын
Great video! If/when this gets a bit cheaper I'm definitely going to try this too!
@kevinbodell5092
@kevinbodell5092 2 жыл бұрын
Great video! I have 4 nspanels and have not jumped into setting this up with home assistant, but now I will be. Your video save me a lot of time, thanks! Would love to see your final screen for use with home assistant.
@rmbr
@rmbr 2 жыл бұрын
Excellent video, thank you very much for it!
@MegaUndertaker3
@MegaUndertaker3 2 жыл бұрын
excellent job! keep up the good work!
@mikesmods317
@mikesmods317 2 жыл бұрын
Absolutely great video thank you very much for posting it I’ve been thinking about getting with these this makes the decision for me
@Dean_Smith
@Dean_Smith 2 жыл бұрын
What a great walk through - Thank you very much ! I have my Kickstarter EU version on the bench. Torn between keeping the Sonoff HMI and waiting for the ESPHome component to implement all the Widget functionality, or diving in with the Nextion Editor. Now if only Sonoff would go the whole way and release their HMI and we could amend the default with the nice graphics !
@TheMoistpotato
@TheMoistpotato 2 жыл бұрын
Same here, i just got mine today, and currently just having it idle using the stock eweelink firmware. It will be great once these becoming more widespread and all the ESPhome/tasmota features/goodies become implemented.. I basically for now just want the stock UI with the realtime weather, time, and room temp. but eventually would like some slick customization. Vids like this though are great that there is hope to fully unlocking and enjoying these LCD smart switch units. I definitely want to put these in all my rooms considering that once we put open flashed firmware, these units basically become a local lifetime unit without worrying about shutdown cloud services.
@marl0wd
@marl0wd Жыл бұрын
@@TheMoistpotato @Dean Smith I know this is from a year ago, do you know if ESPhome has now implemented the widgets for home assistant? Wondering if you can now use the stock GUI but add devices / scenes from other sources (not ewelink)?
@tedev
@tedev 2 жыл бұрын
omg. i admire your patience man. i am a software developer and when i saw this video i was like "no way. i am not doing all that just to make a poorly-made wall-monitor-switch useful! but ... as i said. good work. i believe it was very detailed
@qwarlockz8017
@qwarlockz8017 2 жыл бұрын
What what a great video! you did a spectacular job taking a cool piece of hardware and showing how it can be totally customized! Brilliant. Seems like it is a bit raw still. Maybe someone will come out with a cool integration a bit more like lovelace. But this was cool!
@etiennedeklerk
@etiennedeklerk 2 жыл бұрын
oh wow nice. This is awesome, thanks for the vid. !
@marcoernst22
@marcoernst22 2 жыл бұрын
Excellent tut. Thanks!
@Poundy
@Poundy 2 жыл бұрын
interesting looking device, thanks for doing the vid!
@tankgrrl
@tankgrrl Жыл бұрын
This was a fantastic video. Thanks! I have two panels set up now and, after braving Nextion Editor and my anti-virus freaking out over one of its files, I got some nice displays set up. Thanks!!!
@ChrisMasto
@ChrisMasto Жыл бұрын
Glad it helped!
@corypechon
@corypechon 2 жыл бұрын
Excellent video!
@OdisHarkins
@OdisHarkins Жыл бұрын
Great job love the detail, excited to see somthing other than a tablet hanging from the wall for HA
@Lup3r
@Lup3r Жыл бұрын
Great video, I learned a lot! Thank you for the tutorial
@NoiseEverywhere
@NoiseEverywhere 8 ай бұрын
Thank you for this video. I'll try to use the Esphome configuration 'concept' on a different panel.
@seadbutkovic8014
@seadbutkovic8014 2 жыл бұрын
Thank you so much for this Tutorial
@tincanpete
@tincanpete 2 жыл бұрын
Super helpful, thanks!!!
@chrisgardner4144
@chrisgardner4144 2 жыл бұрын
Thank you, that was hard !!!
@JBR.1974
@JBR.1974 2 жыл бұрын
thanks for the video...really enjoyed seeing your steps...and has given me lots of ideas....subscribed too so looking forward to your future videos
@riens3881
@riens3881 2 жыл бұрын
Nice! Thank you 🙏🏼
@VAKUL-DC
@VAKUL-DC 2 жыл бұрын
Thanks for the tutorial.
@aswinramachandran
@aswinramachandran 2 жыл бұрын
Thank you Christopher
@tjalkuip
@tjalkuip 2 жыл бұрын
Don't comment that often, but here I am : great video, thanks!
@JanicekTrnecka
@JanicekTrnecka 2 жыл бұрын
Hmm, finally a panel that can be "easily" added to HA and fully customized. I am definitely going to order one and try my luck with it.
@jmorris644
@jmorris644 2 жыл бұрын
Thanks so much for this video. It gets me everywhere with the exception of my final 2 steps. I do not use HA so I need to research how to load tft files using Tasmota and I also need to figure out how to send the actions via MQTT.
@FelixMoBu
@FelixMoBu 2 жыл бұрын
I had an eye on this things for a few months and your video made me bying one. I only use Hue devices and I am hoping to make this thing a 'friend of Hue' by my self ^^
@joaquimribeiro2819
@joaquimribeiro2819 2 жыл бұрын
Excellent thanks !
@mogenslundjepsen5158
@mogenslundjepsen5158 2 жыл бұрын
Thanks for sharing
@Bartek2OO219
@Bartek2OO219 2 жыл бұрын
Nice video!
@stephenanderson2577
@stephenanderson2577 2 жыл бұрын
Fantastic.
@5mxg
@5mxg 2 жыл бұрын
Thanks!
@chrislauyp
@chrislauyp Жыл бұрын
thanks Chris
@stevechilvers5631
@stevechilvers5631 2 жыл бұрын
Thank you for this video. Managed to download my own screens and integrated into home assistant in a couple of hours. I did get stuck at one point but looked at your GIThub and noticed I was missing the dependency to the github assume this is for the nexition support as I was seeing communication errors before I added this.
@AmonReich
@AmonReich 2 жыл бұрын
Thank you ❤️ Best quote: Like in a cooking show I ve prepared something 🤣 👨‍🍳🥧🍽️🥘🍽️
@krelis77
@krelis77 2 жыл бұрын
That cable out of a PC is a analog audio cable which must be connected from your cd-rom drive to your intern soundcard back in the days. Nice topic 👍💪
@calebjpryor
@calebjpryor 2 жыл бұрын
Sonoff Needs Software Panel.. AKA NSPanel. :D. I'm glad to see you present a solution for a product looking for one. the EWW app as I call it is really not good. I'm very happy to hear you call out it as a downside.
@AlWhilby
@AlWhilby 2 жыл бұрын
Thank you.
@hamadalmarri2141
@hamadalmarri2141 2 жыл бұрын
Very cool , this is what I am waiting for . How many pages and buttons I can add ? Is there any limitations ? Excellent video and thanks a lot
@clairerovic
@clairerovic 2 жыл бұрын
Late to the game, will order some panels today. How much fun, this will be. Looking at this video I might be forced to change my 20+ Tasmota devices to ESPHome.
@19763862
@19763862 2 жыл бұрын
Nicely done. Wondering if the same can be achieved with the Brilliant Smart Home Control panels?
@jeffeberl12
@jeffeberl12 2 жыл бұрын
I wish there were more people doing portrait designs. I want to eventually make my own HMI, but I would like to have a decent HMI to start with that is in portrait mode. Most resources are for the landscape EU version, and even your newer videos have moved to the landscape mode.
@jspafford
@jspafford 2 жыл бұрын
I’ve been seeing this thing around and was curious. Exactly what I expected. I wish apple would make this but with a better screen and iOS. That would be amazing. $99 price point. You could justify that because it’s buying into their ecosystem. The pods and Apple TV and all the accessories.
@nilsbebelaar
@nilsbebelaar 2 жыл бұрын
Amazing video, works like a charm! Do you know what Nextion screen model the EU version uses, or how I can find out which version to select in the Nextion Editor?
@nilsbebelaar
@nilsbebelaar 2 жыл бұрын
I just realized that even though the US version looks bigger, the EU version uses the same screen type, positioned in landscape.
@treestuffer
@treestuffer 5 ай бұрын
Great video! could I use the interface to create a puzzle for a door lock keypad as part of an escape room?
@Nicktals
@Nicktals 4 ай бұрын
Using this as a project to try and learn esphome, as a bit of a HA noob. 🤞
@martinottolangui4667
@martinottolangui4667 2 жыл бұрын
love this ,and perfect as my order turned up weds ,just a couple of q's in my limited knowledge i've got a ft232 usb to serial ,can i use that or does it have to be the 232rl ? then the physical buttons used in combination of either a fibaro dimmer 2 or say a sonof mini ,so the modules dealing with the load and the relays becoming a momentary switch ?
@markoukraine
@markoukraine 2 жыл бұрын
Thank you for your video! Do you think it would be possible to use esp32 extra pins to connect more perifferals? For example ds18b20 from the floor heating.
@74357175
@74357175 2 жыл бұрын
Fantastic video! Can you elaborate on your thoughts against using this as a thermostat? How do the Chinese users use it? I was thinking of having a backup thermostat/remote switch in case I'm not around but want to switch the heating on while away. Thoughts?
@Yoggi211
@Yoggi211 2 жыл бұрын
Thanks for the video! Will this also work with the 86/EU Type NSPanel?
@vpsrj
@vpsrj 2 жыл бұрын
Congratulations! It’s really awesome and now I’m encouraged to buy one nspanel! #golocal
@Invictum594
@Invictum594 2 жыл бұрын
Amazing video, got a new sub in me! Would love to see follow up videos of it installed and what you were able to do with it!
@TecSanento
@TecSanento 2 жыл бұрын
You could use this to power the valve of the floor heating system for that room
@serhioromano
@serhioromano 2 жыл бұрын
If I flash this panel with tasmota, will I still be ably to flash with TFT?
@rfitzgerald2004
@rfitzgerald2004 2 жыл бұрын
The cable at 13:20 is a CDROM audio cable :)
@thisfeatureisbad
@thisfeatureisbad 2 жыл бұрын
You can set the 2 buttons to do something else by going into the scenes and add a smart device after pressing the physical button. But, I would like to see that thing in the ESPHome or a Tasmota to control the Sonoff light bulbs.
@ChrisMasto
@ChrisMasto 2 жыл бұрын
Thanks! I only spent 30 seconds with their app, so I probably missed a lot of features it has. I knew I had no plans to keep it around.
@haraldprior5291
@haraldprior5291 2 жыл бұрын
Amazing video! Really helped me to get started with my two NSPanels. One question: did you get the slider working? I could not get it up and running...
@ChrisMasto
@ChrisMasto 2 жыл бұрын
Thanks. What slider do you mean?
@haraldprior5291
@haraldprior5291 2 жыл бұрын
@@ChrisMasto The slider element in Nextion I would like to use. You can define a slider item in the Nextion editor. But I couldn't send the slider value to Home Assistant. I guess, you must set in the "Touch Move" to send the value. But I couldn't get this work.
@ChrisMasto
@ChrisMasto 2 жыл бұрын
@@haraldprior5291 I haven't tried it yet. There do seem to be some differences with this capacitive screen, especially when it comes to what events it triggers. You might have to use something like esphome.io/components/sensor/nextion.html#nextion-custom-sensor-protocol for updates on a slider, I don't know. I'll check it out over the weekend.
@haraldprior5291
@haraldprior5291 2 жыл бұрын
@@ChrisMasto That is exactly where I am stuck. I tried to enter "printh 91" to initialize that sensor data is coming and then "prints h0.val,0" to send the slider data. But that didn't work out. I can't see any data in the log of the ESP. Would be great if you take a look. And again: amazing work! I really was looking for an easy way to get the NSPanel into ESPHome and Home Assistant. What you showed in the video was exactly what I need! Thank you!
@theZ3r0CooL
@theZ3r0CooL Жыл бұрын
I was going to attach headers but I feared they wouldn’t fit under the lid as the existing 8 were in a cutout. So I pushed female duponts onto headers passed through the underside. You also don’t have to attach to that ic, just short IO to ground and hold the reset button on the bottom on the board near the thermistor while powering and connecting the serial UART to usb.
@irelandshane1984
@irelandshane1984 2 жыл бұрын
Chris, is it possible to upload the sonoff program from the NS Panel, and edit there HMI file? keeping the swipe feature, maybe adding extra widgets etc? 👍
@mrteausaable
@mrteausaable 2 жыл бұрын
When you turn on/off from the light switch with the status also update the Nextion panel? If not what is the additional codes you need to add.
@billysgeo
@billysgeo 2 жыл бұрын
you can get a nice 7" used tablet for $100 and have this functionality + much more
@ChrisMasto
@ChrisMasto 2 жыл бұрын
Just a few reasons why that might not be a direct equivalent: * Form factor doesn't work as a switch replacement * No physical buttons * Doesn't control loads * More complex interface, have to deal with kiosk browsers etc. * Mounting more complex to avoid unsightly USB cable * Battery swelling issues if charging isn't managed (or batteries removed) I also have a tablet where it makes sense and I like it for that application. But it's not the same at all.
@tommywijnands4662
@tommywijnands4662 2 жыл бұрын
👍👍
@theZ3r0CooL
@theZ3r0CooL 2 жыл бұрын
You can build it into a range hood and if you forget to turn on the fan, the heat will turn it on for you
@dave412r
@dave412r 2 жыл бұрын
Would be really good to make an alarm panel.
HOW TO - Flash Sonoff NSPanel with ESPHome
18:56
Mark Watt Tech
Рет қаралды 109 М.
Haha😂 Power💪 #trending #funny #viral #shorts
00:18
Reaction Station TV
Рет қаралды 14 МЛН
Which one is the best? #katebrush #shorts
00:12
Kate Brush
Рет қаралды 27 МЛН
Getting started with ESPHome
15:24
Let's Automate
Рет қаралды 40 М.
Flashing the Sonoff SwitchMan with ESPHome!
11:14
Everything Smart Home
Рет қаралды 45 М.
Was I Wrong About The Sonoff NSPanel Pro?!
13:25
Everything Smart Home
Рет қаралды 198 М.
This thing is awesome!  4" Android In-Wall Smart Home Control Panel
34:53
HOW TO - Setup the SIMPLEST Smart Home Scene Controller
20:02
Mark Watt Tech
Рет қаралды 115 М.
How to make a Sonoff NSPanel turn off the screen when you're not using it
20:42
Flashing the Sonoff NSPanel with Tasmota!
13:31
Everything Smart Home
Рет қаралды 102 М.
Making an E-paper Dashboard with ESPHome
22:59
Tech Dregs
Рет қаралды 163 М.
English or Spanish?
0:13
ARGEN
Рет қаралды 8 МЛН
Невестка с приколом 😱
0:23
ТРЕНДИ ШОРТС
Рет қаралды 2 МЛН
When everyone is eyeing your car, let HornGun handle it! 🚗📸 #girl  #horngun #car
0:35
BossHorn - Train Horns with Remote Control
Рет қаралды 108 МЛН
СТИЛЬНЫЙ ЧЕХОЛ *из клея*🤓💧
0:50
polya_tut
Рет қаралды 4 МЛН
ВЫРАЩИВАЮ МУРАВЬЕВ С АВИТО ЧАСТЬ 2
0:58
Натали Макколи
Рет қаралды 4,9 МЛН