PylontechTasmota

Pylontech using Tasmota

The purpose of this repository is to help you to read the status of Pylontech battery using Tasmota
Unfortunately there is not a STD tasmote firmware which has all the required features we need, which means you have to compile a fresh one with the right features
Start a new workspace in Gitpod here: https://gitpod.io/new#https://github.com/arendst/Tasmota
Open /tasmota/user_config_override.h
Edit this file with the parts from the Mods_user_config_override.h Simply cut and paste from this page

#ifndef USE_SCRIPT
#define USE_SCRIPT # adds about 17k flash size, variable ram size
#endif
#ifdef USE_RULES
#undef USE_RULES
#endif
#ifndef USE_I2C
#define use USE_I2C
#endif
#ifndef USE_DISPLAY
#define USE_DISPLAY
#endif
#ifndef USE_DISPLAY_LCD
#define USE_DISPLAY_LCD
#endif
#ifndef USE_DISPLAY_MODES1TO5
#define USE_DISPLAY_MODES1TO5
#endif
#define USE_SCRIPT_SERIAL
#define SCRIPT_MAXSSIZE 64
#define USE_SCRIPT_WEB_DISPLAY
#define USE_SCRIPT_JSON_EXPORT
#ifndef SUPPORT_MQTT_EVENT
#define SUPPORT_MQTT_EVENT
#endif

This file you can find here https://github.com/krulkip/PylontechTasmota/blob/main/Mods_user_config_override
Find the following prompt at the bottom of the page /workspace/Tasmota (development) $
At this point type: platformio run -e tasmota
After the compile has completed a file will appear under build_output/firmware called firmware.bin
Program your ESP8266 with that code. I use tasmotiser for that. You simply select this bin file and make sure the settings for self resetting device is set correctly
The firmware activates Display-LCD and Scripting language amongst other things.
After the upload is complete the firmware is restarted and after a short wait you can click on the Get IP button to reveal the IP. Go to this IP in a webbrowser.
Click on the configuration button and then configure template. This will take you to a new page with possibilities.
Edit these until you get the below settings.

Now go to back and then to configure other. Please change the friendly name to Pylontech etc.

Dont forget to click on the activate button
After completing this part your screen will look something like below.





There are several commands you need to enter in the Console.

  • DisplayModel 1
  • DisplayMode 0
  • DisplayRefresh 2
  • DisplayAddress 63
  • Teleperiod 12
  • DisplayCols 16 according to your LCD
  • DisplayRows 4 according to your LCD
  • WebButton1 LED
  • WebButton2 LCD