NSPanel-shaf is based on marcfagers original work and MarkWattTech update.
Thank you to @MarkWattTech for putting a Tutorial togther on how to flash the the Sonoff NSPanel (https://youtu.be/p-AK4o5jOSI). I have taken what he has put togther and simplified the code for easier editing. Addtioanlly, I also have created a new HMI to add additional items to the the Main Page.
We will work on getting a video uploaded to our youtube Channel https://www.youtube.com/SmartHomeAF, but in the meantime use @MarkWattTech channel to get Started and use my nspanel.yaml and hmi.tft files instead.
1 - Temp Outsdie based on Weather integration
2 - Temp Outside based on Sensor
3 - Display whatver you want (example is House Mode)
4 - Display anything you want (Mean Temp on 1st Floor)
5 - Temp as recorded by NSPanel
6 - Status of any Lock (taping Status will lock Door)
marcfagers - https://github.com/marcfager/nspanel-mf
MarkWattTech https://github.com/MarkWattTech/MWT-NSPanel
The weather entities, media entities, lights etc. are selected in the ESPHome config (nspanel.yaml). You can navigate between screens by using a swipe gesture on the screen (left or right). The code is prepared for swipe up and down as well. The media player is on the left side, and the lights on the right side.
In the example config a big part of the config is done in the nspanel.yaml file. See Configuration below on what shoudl be changed.
Any information and/or code found here is used on your own risk.
- Install and configure ESPHome. Make sure to use the new ESPHome from teh ESPhome repo (https://esphome.io/changelog/2022.2.0.html) rather than Community Repo.
- Prepare the NSPanel for flashing (see MarkWattTech Video https://youtu.be/p-AK4o5jOSI).
- Ensure that the ESPhome Secrets are configured with the appropriate SSID, Password, and TFT path. Use the secrets.yaml in repo as an example.
- Flash the NSPanel with nspanel.yaml "as is" for instalation (We will edit in a bit). Pay special attention to the tft_url parameter and ensure it is accessible by the NSPanel. Recommend using the www folder in your HA install
- Download the HMI.tft file and save it to the tft_url location.
- Add the unit to Home Assistant through the ESPHome integration. (If IP of NSpanel is on smae Network as Home Assisatnt it will automatically be added)
- Run the esphome.nspanel_upload_tft service from Home Assistant. This will download the HMI to the NSPanel. Please note that this will block the ESPHome connection during the update. Follow the progress on the HMI screen. When the HMI is installed, reboot the unit.
- Use steps in the Configuration Section below to customize what is being displayed in the LCD
-
In the ESPHome Addon Edit the NSPanel Device
-
Edit the Below Section only
-
Validate the Config
-
Install Config Wirelessly
- Only single page of lights is currently available
- Media Player is CUrrently not working
- Pressing physical buttons does not currenty wake up panel
- Currently only configured for 3 Lights in the light page
- Add multiple Page for Lights
- Fix Media Player
- Allow Panel to wake up when Physical buttons are pressed
- Add Additional Icons for the lights Page
- Simplify the changing of icons on the light page
- Create a Portrait HMI
- Add all 8 buttons on the Lights page