hn / ginlong-solis

Solis inverter ESP8266 data logger, S3 WiFi stick reverse engineering and ESPhome firmware
90 stars 16 forks source link

Compilation fails with latest LibreTiny #16

Closed Belaial closed 1 year ago

Belaial commented 1 year ago

Just as a test I tried to compile the firmware with the latest version (when writing this - v1.2.0) of LibreTiny and got the following error

python3 -m esphome compile solis-esphome-emw3080.yaml
INFO ESPHome 2023.8.0-dev
INFO Reading configuration solis-esphome-emw3080.yaml...
Failed config

libretiny: [source solis-esphome-emw3080.yaml:44]

  The LibreTiny component is now split between supported chip families.
  Migrate your config file to include a chip-based configuration, instead of the 'libretiny:' block.
  For example 'bk72xx:' or 'rtl87xx:'.
  board: generic-rtl8710bx-4mb-980k
  framework: 
    version: latest

I guess some modifications are needed to make this project compatible with latest LibreTiny.

hn commented 1 year ago

Thanks for reporting. Looks like it is as easy as just changing one line:

-libretiny:
+rtl87xx:

I'll check that later.

Belaial commented 1 year ago

Thanks for reporting. Looks like it is as easy as just changing one line:

-libretiny:
+rtl87xx:

I'll check that later.

I tested this and it now compiled without issues! I would do a pull request but I have never done that and have no clue how to do that correctly so just reporting here that it works.

EDIT

I have now also OTA updated my stick with LibreTiny 1.2.0 and it has been stable for 3+ hours now.