Since update 0.203.0 my Solax inerters show 0W power
Describe the bug
Since update 0.203.0 my Solax inerters show 0W power
Steps to reproduce
-
Update to 0.203.0 or later results in showing 0W power for my two Solax inverters.
-
Downgrade to 0.202.1. solves the issue.
Configuration details
Config as following:
- name: Solax-Garage
type: template
template: solax-inverter-cloud
usage: pv
tokenid: '20250427165731090648433'
serial: SRNUPDEXSJ
- name: Solax-Gartenhaus
type: template
template: solax-inverter-cloud
usage: pv
tokenid: '20250427165731090648433'
serial: SWWXHZZDMB
Log details
Trace from V0.202.1
[Solax-Gartenhaus] TRACE 2025/04/27 20:41:15 GET https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=20250427165731090648433&sn=SWWXHZZDMB
[Solax-Garage] TRACE 2025/04/27 20:41:15 GET https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=20250427165731090648433&sn=SRNUPDEXSJ
[Solax-Garage] TRACE 2025/04/27 20:41:15 {"success":true,"exception":"Query success!","result":{"inverterSN":"XM3A33I7484016","sn":"SRNUPDEXSJ","acpower":0.0,"yieldtoday":10.4,"yieldtotal":3315.4,"feedinpower":0.0,"feedinenergy":0.0,"consumeenergy":0.0,"feedinpowerM2":null,"soc":null,"peps1":null,"peps2":null,"peps3":null,"inverterType":"4","inverterStatus":"102","uploadTime":"2025-04-27 20:40:25","batPower":null,"powerdc1":0.0,"powerdc2":0.0,"powerdc3":null,"powerdc4":null,"batStatus":null,"utcDateTime":"2025-04-27T12:40:25.438Z"},"code":0}
[Solax-Gartenhaus] TRACE 2025/04/27 20:41:15 {"success":true,"exception":"Query success!","result":{"inverterSN":"XMT072G6001156","sn":"SWWXHZZDMB","acpower":0.0,"yieldtoday":1.4,"yieldtotal":1120.8,"feedinpower":0.0,"feedinenergy":0.0,"consumeenergy":0.0,"feedinpowerM2":null,"soc":null,"peps1":null,"peps2":null,"peps3":null,"inverterType":"4","inverterStatus":"100","uploadTime":"2025-04-27 20:05:48","batPower":null,"powerdc1":0.0,"powerdc2":0.0,"powerdc3":null,"powerdc4":null,"batStatus":null,"utcDateTime":"2025-04-27T12:05:48.984Z"},"code":0}
[Solax-Garage] TRACE 2025/04/27 20:43:50 GET https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=20250427165731090648433&sn=SRNUPDEXSJ
[Solax-Gartenhaus] TRACE 2025/04/27 20:43:50 GET https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=20250427165731090648433&sn=SWWXHZZDMB
[Solax-Gartenhaus] TRACE 2025/04/27 20:43:50 {"success":true,"exception":"Query success!","result":{"inverterSN":"XMT072G6001156","sn":"SWWXHZZDMB","acpower":0.0,"yieldtoday":1.4,"yieldtotal":1120.8,"feedinpower":0.0,"feedinenergy":0.0,"consumeenergy":0.0,"feedinpowerM2":null,"soc":null,"peps1":null,"peps2":null,"peps3":null,"inverterType":"4","inverterStatus":"100","uploadTime":"2025-04-27 20:05:48","batPower":null,"powerdc1":0.0,"powerdc2":0.0,"powerdc3":null,"powerdc4":null,"batStatus":null,"utcDateTime":"2025-04-27T12:05:48.984Z"},"code":0}
[Solax-Garage] TRACE 2025/04/27 20:43:50 {"success":true,"exception":"Query success!","result":{"inverterSN":"XM3A33I7484016","sn":"SRNUPDEXSJ","acpower":0.0,"yieldtoday":10.4,"yieldtotal":3315.4,"feedinpower":0.0,"feedinenergy":0.0,"consumeenergy":0.0,"feedinpowerM2":null,"soc":null,"peps1":null,"peps2":null,"peps3":null,"inverterType":"4","inverterStatus":"102","uploadTime":"2025-04-27 20:40:25","batPower":null,"powerdc1":0.0,"powerdc2":0.0,"powerdc3":null,"powerdc4":null,"batStatus":null,"utcDateTime":"2025-04-27T12:40:25.438Z"},"code":0}
Trace from V0.203.3
[Solax-Garage] TRACE 2025/04/27 20:46:09 GET https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=%2720250427165731090648433%27&sn=SRNUPDEXSJ
[Solax-Gartenhaus] TRACE 2025/04/27 20:46:09 GET https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=%2720250427165731090648433%27&sn=SWWXHZZDMB
[Solax-Garage] TRACE 2025/04/27 20:46:09 {"exception":"token invalid!","code":103,"tokenId":"'20250427165731090648433'","success":false}
[Solax-Gartenhaus] TRACE 2025/04/27 20:46:09 {"exception":"token invalid!","code":103,"tokenId":"'20250427165731090648433'","success":false}
What type of operating system or environment does evcc run on?
Docker container
External automation
- [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.
Nightly build
- [x] I have verified that the issue is reproducible with the latest nightly build
Version
evcc 0.203.3
tokenId=20250427165731090648433 alt vs.
tokenId=%2720250427165731090648433%27
Da geht was bei der Verarbeitung des Strings aus der yaml schief.
Geht's ohne die ' quotes in der yaml? Könnte von der Art des fehlers her mit https://github.com/evcc-io/evcc/pull/20376 zusammenhängen.
Das war auch meine erste Idee, aber wenn ich die ' weglasse sieht es ähnlich aus:
[Solax-Gartenhaus] TRACE 2025/04/27 22:00:22 GET https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=2.025042716573109e%2B22&sn=SWWXHZZDMB [Solax-Garage] TRACE 2025/04/27 22:00:22 GET https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=2.025042716573109e%2B22&sn=SRNUPDEXSJ [Solax-Gartenhaus] TRACE 2025/04/27 22:00:22 {"exception":"token invalid!","code":103,"tokenId":"2.025042716573109e+22","success":false} [Solax-Garage] TRACE 2025/04/27 22:00:22 {"exception":"token invalid!","code":103,"tokenId":"2.025042716573109e+22","success":false}
Oh, dann wird es in eine Zahl mit exponent verwandelt :D
Closed in b6f5293d9693b7a2e5a971eb84bb1c0913bfafd5
Hi @andig I think it is still broken in 0.203.5. My trace still shows the "%27": [battery3] TRACE 2025/05/06 23:03:41 GET https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=%27xxxxxx12%27&sn=xxxxxx
I think it is still broken in 0.203.5.
It isn't ;). Working using your config above (you've exposed your credentials):
[main ] INFO 2025/05/07 20:25:19 using config file: solax.yaml
[Solax-Garage] TRACE 2025/05/07 20:25:19 GET https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=20250427165731090648433&sn=SRNUPDEXSJ
[Solax-Garage] TRACE 2025/05/07 20:25:20 {"success":true,"exception":"Query success!","result":{"inverterSN":"XM3A33I7484016","sn":"SRNUPDEXSJ","acpower":0.0,"yieldtoday":8.7,"yieldtotal":3397.9,"feedinpower":0.0,"feedinenergy":0.0,"consumeenergy":0.0,"feedinpowerM2":null,"soc":null,"peps1":null,"peps2":null,"peps3":null,"inverterType":"4","inverterStatus":"102","uploadTime":"2025-05-07 20:25:05","batPower":null,"powerdc1":8.0,"powerdc2":0.0,"powerdc3":null,"powerdc4":null,"batStatus":null,"utcDateTime":"2025-05-07T12:25:05.936Z"},"code":0}
Power: 0W
@andig Thanks for your quick response. After a lot of trys i finally found the problem: Only the solax-inverter-cloud.yaml is fixed and working. Could you please also update solax-hybrid-cloud.yaml (and there for all 3 usage types) That would be nice!
Only the solax-inverter-cloud.yaml is fixed and working.
That's what you've shown above.
Could you please also update solax-hybrid-cloud.yaml (and there for all 3 usage types)
Done.
Hallo andig,
die Solax-Hybrid-Cloud.yaml scheint immer noch defekt zu sein. Gebe ich den Token und Seriennummer bei Solax PV Wechselrichter (Cloud) ein ist die Prüfung erfolgreich (2.tes Bild). Als Solax Hybrid Wechselrichter (Cloud) wird weiterhin der Syntax-Fehler (1.tes Bild) bei der Prüfung angezeigt. Ich kann daher die PV-Anlage nicht ins evcc einbinden. Kannst du das bitte noch Mal prüfen?
Vielen Dank.
Es braucht bitte ein
evcc meter --log trace
Es braucht bitte ein
evcc meter --log trace
Hallo andig,
sorry ich nutze EVCC über HA und das HASSIO-Addon. Wie kann ich dir hieraus die benötigten Informationen zukommen lassen? Sorry bin Anfänger in dem Bereich.
Gruß
Im Zweifel neue Installation auf einem PC
/cc @naltatis das wäre auch noch eine Hilfreiche Erweiterung fürs UI?
Kannst du das bitte formatieren, httpd/db/mqtt raus? Ich sehe vor lauter Wald den Baum nicht- wo ist der Solaxaufruf? Dein Adminpasswort ist auch im Log enthalten und damit verbrannt :/
/cc @naltatis ist Logredaction für Admin PW möglich?
Hallo andig,
anbei das benötigte Trace
[db:3 ] TRACE 2025/06/22 17:15:47 GET https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=2025*******************&sn=SR******** [db:2 ] TRACE 2025/06/22 17:15:47 GET https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=2025*******************&sn=SR********** [db:1 ] TRACE 2025/06/22 17:15:47 GET https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=2025*******************&sn=SR********** [db:2 ] TRACE 2025/06/22 17:15:47 {"exception":"token invalid!","code":103,"tokenId":"2025*****************","success":false}** [db:3 ] TRACE 2025/06/22 17:15:47 {"exception":"token invalid!","code":103,"tokenId":"2025*****************","success":false}** [db:1 ] TRACE 2025/06/22 17:15:47 {"exception":"token invalid!","code":103,"tokenId":"2025*****************","success":false}** [site ] ERROR 2025/06/22 17:15:54 battery 1 power: strconv.ParseFloat: parsing "": invalid syntax [site ] ERROR 2025/06/22 17:15:54 battery 1 soc: strconv.ParseFloat: parsing "": invalid syntax [site ] ERROR 2025/06/22 17:15:55 2025-06-22 17:15:47.282006776 +0200 CEST m=+2.355685903 !! 166ms add[0]: strconv.ParseFloat: parsing "": invalid syntax 2025-06-22 17:15:47.470997607 +0200 CEST m=+2.544676753 !! 0ms add[0]: strconv.ParseFloat: parsing "": invalid syntax 2025-06-22 17:15:47.506572777 +0200 CEST m=+2.580251905 !! 0ms add[0]: strconv.ParseFloat: parsing "": invalid syntax 2025-06-22 17:15:47.558129528 +0200 CEST m=+2.631808655 !! 0ms add[0]: strconv.ParseFloat: parsing "": invalid syntax 2025-06-22 17:15:47.604590146 +0200 CEST m=+2.678269273 !! 0ms add[0]: strconv.ParseFloat: parsing "": invalid syntax 2025-06-22 17:15:47.6786282 +0200 CEST m=+2.752307346 !! 0ms add[0]: strconv.ParseFloat: parsing "": invalid syntax 2025-06-22 17:15:47.794052798 +0200 CEST m=+2.867731926 !! 0ms add[0]: strconv.ParseFloat: parsing "": invalid syntax 2025-06-22 17:15:48.048277887 +0200 CEST m=+3.121957014 !! 0ms add[0]: strconv.ParseFloat: parsing "": invalid syntax 2025-06-22 17:15:48.382123065 +0200 CEST m=+3.455802192 !! 0ms add[0]: strconv.ParseFloat: parsing "": invalid syntax 2025-06-22 17:15:49.082067851 +0200 CEST m=+4.155746979 !! 0ms add[0]: strconv.ParseFloat: parsing "": invalid syntax 2025-06-22 17:15:49.525850619 +0200 CEST m=+4.599529765 !! 0ms add[0]: strconv.ParseFloat: parsing "": invalid syntax 2025-06-22 17:15:50.377851261 +0200 CEST m=+5.451530388 !! 0ms add[0]: strconv.ParseFloat: parsing "": invalid syntax 2025-06-22 17:15:51.803450189 +0200 CEST m=+6.877129335 !! 0ms add[0]: strconv.ParseFloat: parsing "": invalid syntax 2025-06-22 17:15:55.057299292 +0200 CEST m=+10.130978419 !! 0ms add[0]: strconv.ParseFloat: parsing "": invalid syntax [site ] ERROR 2025/06/22 17:15:55 pv 1 power: add[0]: strconv.ParseFloat: parsing "": invalid syntax [site ] ERROR 2025/06/22 17:15:55 grid power: strconv.ParseFloat: parsing "": invalid syntax [site ] DEBUG 2025/06/22 17:16:25 ---- [site ] ERROR 2025/06/22 17:16:34 pv 1 power: add[0]: strconv.ParseFloat: parsing "": invalid syntax [site ] ERROR 2025/06/22 17:16:34 grid power: strconv.ParseFloat: parsing "": invalid syntax
Guten Morgen andig,
danke für den Hinweis...wenn man halt von den Sachen keine Ahnung hat :/
anbei noch ein früherer Trace
[db:3 ] TRACE 2025/06/22 16:56:47 GET https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=2025************************&sn=SR************ [db:3 ] TRACE 2025/06/22 16:56:47 {"exception":"token invalid!","code":103,"tokenId":"2025########################","success":false}
Ich denke es geht einfach nur um die ""
Die Meldung ist ja eindeutig
Hallo andig,wie in den Bildern zuvor gezeigt, habe ich aber keine "" gesetzt. Die werden durchs Programm gesetzt. Danke für deine Mühe.
Dein Token ist falsch und wird dann "richtig" übergeben:
[db:3 ] TRACE 2025/06/22 16:56:47 GET https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do?tokenId=2025************************&sn=SR************
Hallo andig,der Token ist zu 100% richtig. Einerseits copy/paste und anderseits mehrfach geprüft. Siehe die Bilder im vorherigen Chat-Verlauf. Habe den Token beides mal gleich eingegeben. Bei der Auswahl Solax-Hybridwechselrichter (Cloud) kommen die besagten Fehlermeldungen. Wenn ich Solax-PV-Wechselrichter (Cloud) auswähle, kommen keine Fehlermeldungen, aber dafür keine Daten. Ich musste bisher nie (Version < 0.203) irgendwelche Gänsefüßchen eintragen. Die "" werden durch evcc gesetzt bzw. werden zur Anmeldung in der Solax-Cloud nicht benötigt. Selbst wenn ich die "" oder ' ' in der UI setzen würde, dann steht dass doppelt im Trace bei der Anmeldung an die Solax-Cloud drin.
Das mag alles sein. Ich sehe im Log aber keine falschen Zeichen. Auf welches Log beziehst Du Dich also?