From 9cc02f2eafb5fa67b87d680f8e5eeeb6193c82a9 Mon Sep 17 00:00:00 2001 From: joBr99 <29555657+joBr99@users.noreply.github.com> Date: Tue, 8 Feb 2022 22:52:01 +0100 Subject: [PATCH 1/2] Update README.md --- README.md | 47 +++++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index f2bbdadb..469144f0 100644 --- a/README.md +++ b/README.md @@ -1,39 +1,42 @@ # NSPanel Lovelance UI This is a custom UI for the NSPanel, with HomeAssistant Lovelance UI Design. + The general idea is that the Nextion Display cycles though a page counter and the esp32 tells the display what to do. If you are changeing the page the nextion display will send and event to the esp32 and it has to answer with the messages, that will update the current page with it's desired components. This enables easy changes, without touching the HMI Project. +# How to install -# Current State -It's currently possible to set the content of the pages through homeassistant/nodered. (Shutter and Lights supported) And the detail page for lights is working. +## Install Nextion Berry Driver -![image](https://user-images.githubusercontent.com/29555657/151848276-30254f2f-318b-445f-ba94-25ed44541522.png) +Create and edit new file named autoexec.be with a line load("nextion.be") and upload nextion.be from tasmota folder of this repo. -![image](https://user-images.githubusercontent.com/29555657/151848537-6da58d5b-20fa-4032-947e-942476cc1b58.png) +or + +Upload "nextion.be" from tasmota folder of this repository and rename to "autoexec.be" + +## Setup Node-Red Flow + +Import the example node-red flow from "node-red-example-flow.json" file and adjust to your needs. + +# Screens from UI + +The following screenshots are from the custom NSPanel UI that will be displayed on NSPanel. + +![screen_cardEntities](doc-pics/screen_cardEntities.png) +![screen_popupLight](doc-pics/screen_popupLight.png) +![screen_popupShutter](doc-pics/screen_cardEntities.png) +![screen_cardThermo](doc-pics/screen_cardThermo.png) -## Halfway done upcoming pages :) +# Message Flow -![image](https://user-images.githubusercontent.com/29555657/149677888-3840fb50-26e5-43e9-86dc-203df1c65a26.png) +HomeAssistant / NodeRed -- MQTT -- Tasmota -- Nextion Screen +See the following picture to get an Idea for the messages send and recived from the screen during cycling though pages. -# Tasmota - -Use autoexec.be from tasmota folder like you would use with the stock tft file. -You will need the java app from to flash the tft file, thanks a lot to @peepshow-21 - https://github.com/peepshow-21/ns-flash - -Driver behaves similar to the stock implementation, messages are published over mqtt. - -See nodered example flow for my implementation. -Pages on nspanel are generated from the array at the begin of the pages function in the flow: - -![image](https://user-images.githubusercontent.com/29555657/151675593-dadd53cb-a38e-49bd-9f40-832fc8edd017.png) +![image](https://user-images.githubusercontent.com/29555657/153079843-8d1eb5ab-059a-444e-a4da-008edc425606.png) # Custom Protocol -``` -55 BB [payload length] [payload] [crc] [crc] -``` -See Readme in HMI Folder \ No newline at end of file +See Readme in HMI Folder for more details on HMI Project / Custom Protocol From 33ce44af6f0c1042e857c418f7127f389bded24a Mon Sep 17 00:00:00 2001 From: joBr99 <29555657+joBr99@users.noreply.github.com> Date: Tue, 8 Feb 2022 22:53:11 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 469144f0..2fb8755d 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ If you are changeing the page the nextion display will send and event to the esp # How to install -## Install Nextion Berry Driver +## Install Nextion Tasmota Berry Driver Create and edit new file named autoexec.be with a line load("nextion.be") and upload nextion.be from tasmota folder of this repo.