mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-21 15:04:24 +01:00
83 lines
2.3 KiB
Markdown
83 lines
2.3 KiB
Markdown
# Nextion Berry Driver
|
|
|
|
This berry driver is intended for the usage with a custom HMI/TFT firmware on nspanel and is a customisted version form [peepshow-21's ns-flash](https://github.com/peepshow-21/ns-flash)
|
|
|
|
It adds the following commands to Tasmota:
|
|
|
|
- `Nextion Payload`
|
|
|
|
Send's normal Nextion Commands to the Screen (suffixed by 0xFFFFFF)
|
|
|
|
|
|
- `CustomSend Payload`
|
|
|
|
Send's normal Custom Commands to the Screen in the following format:
|
|
`55 BB [payload length] [payload] [crc] [crc]`
|
|
|
|
- `FlashNextion URL`
|
|
|
|
Start's flashing a tft file to the nextion screen via Nextion Upload Protocol 1.2
|
|
|
|
Webserver must be reachable via HTTP
|
|
|
|
Example: `FlashNextion http://192.168.75.30:8123/local/nspanel.tft`
|
|
|
|
- `GetDriverVersion`
|
|
|
|
Returns the version currently defined in the berry script
|
|
|
|
- `UpdateDriverVersion URL`
|
|
|
|
Downloads the autoexec.be script from the specified URL and loads it.
|
|
|
|
|
|
Besides the commands, serial input will be published on 'RESULT' Topic, depending on the input in one of the following formats:
|
|
- `{"CustomRecv":%s}`
|
|
- `{"nextion":%s}`
|
|
|
|
|
|
|
|
# Nextion Berry Driver Legacy Range (Old version with HTTP Range Method)
|
|
|
|
This berry driver is intended for the usage with a custom HMI/TFT firmware on nspanel.
|
|
|
|
It adds the following commands to Tasmota:
|
|
|
|
- `Nextion Payload`
|
|
|
|
Send's normal Nextion Commands to the Screen (suffixed by 0xFFFFFF)
|
|
|
|
|
|
- `CustomSend Payload`
|
|
|
|
Send's normal Custom Commands to the Screen in the following format:
|
|
`55 BB [payload length] [payload] [crc] [crc]`
|
|
|
|
|
|
- `FlashNextion URL`
|
|
|
|
Start's flashing a tft file to the nextion screen via Nextion Upload Protocol 1.1
|
|
Might be required to send the command twice (known issue, didn't investigate yet)
|
|
|
|
- `FlashNextionFast URL`
|
|
|
|
Start's flashing a tft file to the nextion screen via Nextion Upload Protocol 1.2
|
|
Might be required to send the command twice (known issue, didn't investigate yet)
|
|
|
|
Webserver must be reachable via HTTP and support Range Header
|
|
|
|
Example: `FlashNextion http://192.168.75.30:8123/local/nspanel.tft`
|
|
|
|
- `GetDriverVersion`
|
|
|
|
Returns the version currently defined in the berry script
|
|
|
|
- `UpdateDriverVersion URL`
|
|
|
|
Downloads the autoexec.be script from the specified URL and loads it.
|
|
|
|
|
|
Besides the commands, serial input will be published on 'RESULT' Topic, depending on the input in one of the following formats:
|
|
- `{"CustomRecv":%s}`
|
|
- `{"nextion":%s}`
|