mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-21 15:04:24 +01:00
Merge branch 'main' of github.com:joBr99/nspanel-widget-ui
This commit is contained in:
47
README.md
47
README.md
@@ -1,39 +1,42 @@
|
|||||||
# NSPanel Lovelance UI
|
# NSPanel Lovelance UI
|
||||||
This is a custom UI for the NSPanel, with HomeAssistant Lovelance UI Design.
|
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.
|
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.
|
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
|
## Install Nextion Tasmota Berry Driver
|
||||||
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.
|
|
||||||
|
|
||||||

|
Create and edit new file named autoexec.be with a line load("nextion.be") and upload nextion.be from tasmota folder of this repo.
|
||||||
|
|
||||||

|
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.
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
## Halfway done upcoming pages :)
|
# Message Flow
|
||||||
|
|
||||||

|
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:
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
|
|
||||||
# Custom Protocol
|
# Custom Protocol
|
||||||
```
|
|
||||||
55 BB [payload length] [payload] [crc] [crc]
|
|
||||||
```
|
|
||||||
|
|
||||||
See Readme in HMI Folder
|
See Readme in HMI Folder for more details on HMI Project / Custom Protocol
|
||||||
|
|||||||
Reference in New Issue
Block a user