SOLAX: tasmota oder ESPHome auf ESP8266 und ESP32 flashen

Hi Zusammen,

sorry das ich den Thread hier wieder hochholen muss. Mit einem der letzten Updates zeigt mir der ESP weder die Daten über den Webserver an, noch werden MQTT Nachrichten erzeugt.

Dadurch passt natürlich wieder die Anzeige im VRM Portal nicht mehr.

Hat jemand das selbe Problem? (ESPHome 2024.2.1)

Wenn ich mir das logfile anschauen

[14:29:19][I][solax_x1_mini:224]: Status frame received
[14:29:19][V][sensor:043]: 'solax-x1-mini temperature': Received new state 25.000000
[14:29:19][D][sensor:094]: 'solax-x1-mini temperature': Sending state 25.00000 °C with 0 decimals of accuracy
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 88 bytes
[14:29:19][V][mqtt:474]: Publish(topic='solax-x1-mini/sensor/solax-x1-mini_temperature/state' payload='25' retain=1)
[14:29:19][V][sensor:043]: 'solax-x1-mini energy today': Received new state 3.400000
[14:29:19][D][sensor:094]: 'solax-x1-mini energy today': Sending state 3.40000 kWh with 1 decimals of accuracy
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 16 bytes
[14:29:19][V][mqtt:474]: Publish(topic='W/48e7da881457/pvinverter/2/Ac/Energy/Forward' payload='{"value":3.4}' retain=0)
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 16 bytes
[14:29:19][V][mqtt:474]: Publish(topic='W/48e7da881457/pvinverter/2/Ac/L1/Energy/Forward' payload='{"value":3.4}' retain=0)
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 16 bytes
[14:29:19][V][mqtt:474]: Publish(topic='W/48e7da881457/pvinverter/2/Ac/L2/Energy/Forward' payload='{"value":0}' retain=0)
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 16 bytes
[14:29:19][V][mqtt:474]: Publish(topic='W/48e7da881457/pvinverter/2/Ac/L3/Energy/Forward' payload='{"value":0}' retain=0)
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 92 bytes
[14:29:19][V][mqtt:474]: Publish(topic='solax-x1-mini/sensor/solax-x1-mini_energy_today/state' payload='3.4' retain=1)
[14:29:19][V][sensor:043]: 'solax-x1-mini dc1 voltage': Received new state 295.700012
[14:29:19][D][sensor:094]: 'solax-x1-mini dc1 voltage': Sending state 295.70001 V with 1 decimals of accuracy
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 92 bytes
[14:29:19][V][mqtt:474]: Publish(topic='solax-x1-mini/sensor/solax-x1-mini_dc1_voltage/state' payload='295.7' retain=1)
[14:29:19][V][sensor:043]: 'solax-x1-mini dc2 voltage': Received new state 0.000000
[14:29:19][D][sensor:094]: 'solax-x1-mini dc2 voltage': Sending state 0.00000 V with 1 decimals of accuracy
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 88 bytes
[14:29:19][V][mqtt:474]: Publish(topic='solax-x1-mini/sensor/solax-x1-mini_dc2_voltage/state' payload='0.0' retain=1)
[14:29:19][V][sensor:043]: 'solax-x1-mini dc1 current': Received new state 1.300000
[14:29:19][D][sensor:094]: 'solax-x1-mini dc1 current': Sending state 1.30000 A with 1 decimals of accuracy
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 88 bytes
[14:29:19][V][mqtt:474]: Publish(topic='solax-x1-mini/sensor/solax-x1-mini_dc1_current/state' payload='1.3' retain=1)
[14:29:19][V][sensor:043]: 'solax-x1-mini dc2 current': Received new state 0.000000
[14:29:19][D][sensor:094]: 'solax-x1-mini dc2 current': Sending state 0.00000 A with 1 decimals of accuracy
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 88 bytes
[14:29:19][V][mqtt:474]: Publish(topic='solax-x1-mini/sensor/solax-x1-mini_dc2_current/state' payload='0.0' retain=1)
[14:29:19][V][sensor:043]: 'solax-x1-mini ac current': Received new state 1.700000
[14:29:19][D][sensor:094]: 'solax-x1-mini ac current': Sending state 1.70000 A with 1 decimals of accuracy
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 16 bytes
[14:29:19][V][mqtt:474]: Publish(topic='W/48e7da881457/pvinverter/2/Ac/Current' payload='{"value":1.7}' retain=0)
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 16 bytes
[14:29:19][V][mqtt:474]: Publish(topic='W/48e7da881457/pvinverter/2/Ac/L1/Current' payload='{"value":1.7}' retain=0)
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 16 bytes
[14:29:19][V][mqtt:474]: Publish(topic='W/48e7da881457/pvinverter/2/Ac/L2/Current' payload='{"value":0}' retain=0)
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 16 bytes
[14:29:19][V][mqtt:474]: Publish(topic='W/48e7da881457/pvinverter/2/Ac/L3/Current' payload='{"value":0}' retain=0)
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 88 bytes
[14:29:19][V][mqtt:474]: Publish(topic='solax-x1-mini/sensor/solax-x1-mini_ac_current/state' payload='1.7' retain=1)
[14:29:19][V][sensor:043]: 'solax-x1-mini ac voltage': Received new state 236.100006
[14:29:19][D][sensor:094]: 'solax-x1-mini ac voltage': Sending state 236.10001 V with 1 decimals of accuracy
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 16 bytes
[14:29:19][V][mqtt:474]: Publish(topic='W/48e7da881457/pvinverter/2/Ac/Voltage' payload='{"value":236.1}' retain=0)
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 16 bytes
[14:29:19][V][mqtt:474]: Publish(topic='W/48e7da881457/pvinverter/2/Ac/L1/Voltage' payload='{"value":236.1}' retain=0)
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 16 bytes
[14:29:19][V][mqtt:474]: Publish(topic='W/48e7da881457/pvinverter/2/Ac/L2/Voltage' payload='{"value":0}' retain=0)
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 16 bytes
[14:29:19][V][mqtt:474]: Publish(topic='W/48e7da881457/pvinverter/2/Ac/L3/Voltage' payload='{"value":0}' retain=0)
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 88 bytes
[14:29:19][V][mqtt:474]: Publish(topic='solax-x1-mini/sensor/solax-x1-mini_ac_voltage/state' payload='236.1' retain=1)
[14:29:19][V][sensor:043]: 'solax-x1-mini ac frequency': Received new state 49.980000
[14:29:19][D][sensor:094]: 'solax-x1-mini ac frequency': Sending state 49.98000 Hz with 2 decimals of accuracy
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 92 bytes
[14:29:19][V][mqtt:474]: Publish(topic='solax-x1-mini/sensor/solax-x1-mini_ac_frequency/state' payload='49.98' retain=1)
[14:29:19][V][sensor:043]: 'solax-x1-mini ac power': Received new state 389.000000
[14:29:19][D][sensor:094]: 'solax-x1-mini ac power': Sending state 389.00000 W with 0 decimals of accuracy
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 16 bytes
[14:29:19][V][mqtt:474]: Publish(topic='W/48e7da881457/pvinverter/2/Ac/Power' payload='{"value":389}' retain=0)
[14:29:19][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:19][V][json:058]: Size after shrink 16 bytes
[14:29:20][V][mqtt:474]: Publish(topic='W/48e7da881457/pvinverter/2/Ac/L1/Power' payload='{"value":389}' retain=0)
[14:29:20][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:20][V][json:058]: Size after shrink 16 bytes
[14:29:20][V][mqtt:474]: Publish(topic='W/48e7da881457/pvinverter/2/Ac/L2/Power' payload='{"value":0}' retain=0)
[14:29:20][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:20][V][json:058]: Size after shrink 16 bytes
[14:29:20][V][mqtt:474]: Publish(topic='W/48e7da881457/pvinverter/2/Ac/L3/Power' payload='{"value":0}' retain=0)
[14:29:20][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:20][V][json:058]: Size after shrink 84 bytes
[14:29:20][V][mqtt:474]: Publish(topic='solax-x1-mini/sensor/solax-x1-mini_ac_power/state' payload='389' retain=1)
[14:29:20][V][sensor:043]: 'solax-x1-mini energy total': Received new state 4001.600098
[14:29:20][D][sensor:094]: 'solax-x1-mini energy total': Sending state 4001.60010 kWh with 1 decimals of accuracy
[14:29:20][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:20][V][json:058]: Size after shrink 96 bytes
[14:29:20][V][mqtt:474]: Publish(topic='solax-x1-mini/sensor/solax-x1-mini_energy_total/state' payload='4001.6' retain=1)
[14:29:20][V][sensor:043]: 'solax-x1-mini runtime total': Received new state 6954.000000
[14:29:20][D][sensor:094]: 'solax-x1-mini runtime total': Sending state 6954.00000 h with 0 decimals of accuracy
[14:29:20][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:20][V][json:058]: Size after shrink 92 bytes
[14:29:20][V][mqtt:474]: Publish(topic='solax-x1-mini/sensor/solax-x1-mini_runtime_total/state' payload='6954' retain=1)
[14:29:20][V][sensor:043]: 'solax-x1-mini mode': Received new state 2.000000
[14:29:20][D][sensor:094]: 'solax-x1-mini mode': Sending state 2.00000 with 0 decimals of accuracy
[14:29:20][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:20][V][json:058]: Size after shrink 76 bytes
[14:29:20][V][mqtt:474]: Publish(topic='solax-x1-mini/sensor/solax-x1-mini_mode/state' payload='2' retain=1)
[14:29:20][V][text_sensor:013]: 'solax-x1-mini mode name': Received new state Normal
[14:29:20][D][text_sensor:064]: 'solax-x1-mini mode name': Sending state 'Normal'
[14:29:20][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:20][V][json:058]: Size after shrink 92 bytes
[14:29:20][V][mqtt:474]: Publish(topic='solax-x1-mini/sensor/solax-x1-mini_mode_name/state' payload='Normal' retain=1)
[14:29:20][V][sensor:043]: 'solax-x1-mini error bits': Received new state 0.000000
[14:29:20][D][sensor:094]: 'solax-x1-mini error bits': Sending state 0.00000 with 0 decimals of accuracy
[14:29:20][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:20][V][json:058]: Size after shrink 84 bytes
[14:29:20][V][mqtt:474]: Publish(topic='solax-x1-mini/sensor/solax-x1-mini_error_bits/state' payload='0' retain=1)
[14:29:20][V][text_sensor:013]: 'solax-x1-mini errors': Received new state
[14:29:20][D][text_sensor:064]: 'solax-x1-mini errors': Sending state ''
[14:29:20][V][json:038]: Attempting to allocate 512 bytes for JSON serialization
[14:29:20][V][json:058]: Size after shrink 84 bytes
[14:29:20][V][mqtt:474]: Publish(topic='solax-x1-mini/sensor/solax-x1-mini_errors/state' payload='' retain=1)
[14:29:20][D][solax_x1_mini:267]: CT Pgrid: 0 W
[14:29:20][W][component:214]: Component solax_modbus took a long time for an operation (1.04 s).
[14:29:20][W][component:215]: Components should block for at most 20-30ms.

gibt es nur zwei Warnings am Ende mit denen ich nichts anfangen kann. Aber insgesamt bekommt der ESP die Daten vom Solix WR.
Sie werden nur nicht im Webserver angezeigt noch per MQTT übertragen.

Gruß

Udo

Ich antworte mir mal selber, der Fehler liegt an der Firmware des Cerbo GX, anscheinend ist mit Firmwareversion >=3.2 der MQTT Server gewechselt worden.
Offensichtlich funktioniert der neue MQTT nicht mehr mit dem Code (falls jemand weiß wie die Nachrichten formatiert werden muss, bitte um Info).

https://github.com/victronenergy/dbus-mqtt?tab=readme-ov-file

Steht das nicht in deinem Link?

Important notice

UPDATE 2024-02-15: Since Venus OS version 3.20, this project has been replaced with dbus-flashmq.

@und-mehr

ja genau, steht in dem Link. Da ich den Code für notwendigen Anpassungen für flashmq für ESPHome nicht kenne funktioniert mein ESP eben nicht mehr.
Die Informationen von Victron sind für mich leider zu generisch als das ich die notwendigen Anpassunge für den ESP Code ableiten könnte. Zwischen dem Cerbo und dem ESP hängt ja auch noch ein "Übersetzer" https://github.com/victronenergy/dbus-flashmq?tab=readme-ov-file#connecting-to-the-vrm-mqtt-servers dieser wurde anscheinend schon angepasst und sollte mit den neuen (und den alten) Firmwareversionen kompatibel sein.

Es muss also am ESP code liegen. Ich vermute mal das ich nicht der Einzige bin der davon betroffen ist (Solax und Growattnutzer die ihre WR im VRM anzeigen lassen wollen).

Falls also jemand weiß an welchen Stellen der Code angepasst werden muss damit er mit flashmq kompatibel ist wäre ich sehr dankbar.