MQTT Client Fehler beim Parsen von invaliden JSON Objekten

Fragen zur Nutzung, Features, usw..
Antworten
HandyCap87
Beiträge: 30
Registriert: Do Nov 19, 2020 2:33 am
Has thanked: 3 times
Been thanked: 3 times

MQTT Client Fehler beim Parsen von invaliden JSON Objekten

Beitrag von HandyCap87 »

Hallo,
ich teste gerade openWB 2.1.9 und habe festgestellt, dass iobroker konstant Fehler ins Log schreibt. Scheinbar wird auf "openWB/graph/alllivevaluesJsonXX" eine Collection von JSON Objekten geliefert statt ein valides JSON Objekt:

Code: Alles auswählen

Cannot parse "openWB/graph/alllivevaluesJson13": {"timestamp":1769478190,"time":"02:43:10","grid":1.71,"house-power":0.475,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478200,"time":"02:43:20","grid":1.704,"house-power":0.47,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478211,"time":"02:43:31","grid":1.707,"house-power":0.474,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478221,"time":"02:43:41","grid":1.707,"house-power":0.474,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478231,"time":"02:43:51","grid":1.609,"house-power":0.376,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478240,"time":"02:44:00","grid":1.6,"house-power":0.366,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478250,"time":"02:44:10","grid":1.607,"house-power":0.375,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478260,"time":"02:44:20","grid":1.599,"house-power":0.365,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478271,"time":"02:44:31","grid":1.585,"house-power":0.354,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478281,"time":"02:44:41","grid":1.609,"house-power":0.377,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478291,"time":"02:44:51","grid":1.609,"house-power":0.377,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478302,"time":"02:45:02","grid":1.573,"house-power":0.341,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478311,"time":"02:45:11","grid":1.589,"house-power":0.358,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478321,"time":"02:45:21","grid":1.583,"house-power":0.351,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478331,"time":"02:45:31","grid":1.585,"house-power":0.354,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478341,"time":"02:45:41","grid":1.587,"house-power":0.355,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478350,"time":"02:45:50","grid":1.586,"house-power":0.354,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478360,"time":"02:46:00","grid":1.581,"house-power":0.347,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478370,"time":"02:46:10","grid":1.571,"house-power":0.338,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478380,"time":"02:46:20","grid":1.588,"house-power":0.358,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478391,"time":"02:46:31","grid":1.581,"house-power":0.349,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478401,"time":"02:46:41","grid":1.569,"house-power":0.339,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478411,"time":"02:46:51","grid":1.58,"house-power":0.35,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478421,"time":"02:47:01","grid":1.571,"house-power":0.339,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478430,"time":"02:47:10","grid":1.575,"house-power":0.344,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478440,"time":"02:47:20","grid":1.593,"house-power":0.362,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478450,"time":"02:47:30","grid":1.588,"house-power":0.358,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478460,"time":"02:47:40","grid":1.574,"house-power":0.347,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478471,"time":"02:47:51","grid":1.582,"house-power":0.355,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478481,"time":"02:48:01","grid":1.592,"house-power":0.363,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478491,"time":"02:48:11","grid":1.596,"house-power":0.368,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478501,"time":"02:48:21","grid":1.592,"house-power":0.363,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478510,"time":"02:48:30","grid":1.59,"house-power":0.361,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478520,"time":"02:48:40","grid":1.577,"house-power":0.349,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478530,"time":"02:48:50","grid":1.606,"house-power":0.38,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478540,"time":"02:49:00","grid":1.572,"house-power":0.345,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478551,"time":"02:49:11","grid":1.571,"house-power":0.344,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478561,"time":"02:49:21","grid":1.577,"house-power":0.348,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478571,"time":"02:49:31","grid":1.594,"house-power":0.365,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478581,"time":"02:49:41","grid":1.591,"house-power":0.362,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478590,"time":"02:49:50","grid":1.615,"house-power":0.385,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478602,"time":"02:50:02","grid":1.625,"house-power":0.393,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478611,"time":"02:50:11","grid":1.614,"house-power":0.381,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478621,"time":"02:50:21","grid":1.605,"house-power":0.371,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478630,"time":"02:50:30","grid":1.678,"house-power":0.444,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478640,"time":"02:50:40","grid":1.723,"house-power":0.366,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478650,"time":"02:50:50","grid":1.725,"house-power":0.364,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478661,"time":"02:51:01","grid":1.722,"house-power":0.361,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478671,"time":"02:51:11","grid":1.72,"house-power":0.358,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}{"timestamp":1769478681,"time":"02:51:21","grid":1.756,"house-power":0.396,"charging-all":0.0,"pv-all":-0.0,"bat-all-power":0.0,"bat-all-soc":6}
Ist das bei euch auch so? Wäre es für die Parser nicht besser, wenn da ein valides JSON Objekt drin stehen würde? Warum macht man sowas?

Das Problem ist, dass ich in der aktuellen Version des MQTT Adapter das automatische JSON Parsing nicht deaktivieren kann. Es kommen ständig Fehler im Log, die sich an nicht validen JSON Objekten stören. Es scheint, ich bin der einzige OpenWB Kunde mit iobroker Integration...
openWB
Site Admin
Beiträge: 10003
Registriert: So Okt 07, 2018 1:50 pm
Has thanked: 133 times
Been thanked: 319 times

Re: MQTT Client Fehler beim Parsen von invaliden JSON Objekten

Beitrag von openWB »

Nein, gewiss nicht.
Aber gerade bei MQTT muss man genau schauen wie es konfiguriert ist.
Bei ioBroker bin ich leider raus.
Supportanfragen bitte NICHT per PN stellen.
Hardwareprobleme bitte über die Funktion Debug Daten senden mitteilen oder per Mail an support@openwb.de
mading
Beiträge: 102
Registriert: Do Mai 09, 2019 2:58 pm

Re: MQTT Client Fehler beim Parsen von invaliden JSON Objekten

Beitrag von mading »

HandyCap87 hat geschrieben: Di Jan 27, 2026 2:03 am Es scheint, ich bin der einzige OpenWB Kunde mit iobroker Integration...
Nen sicher nicht, ich bin noch auf der 1.9…
Viele Grüße

mading

Fronius Symo 7.0.3M mit SmartMeter - 6,96kwp | openWB series2 standard+ | Visualisierung + Steuerung mit iobroker/ vis und Grafana | VW ID4
LutzB
Beiträge: 4263
Registriert: Di Feb 25, 2020 9:23 am
Has thanked: 20 times
Been thanked: 154 times

Re: MQTT Client Fehler beim Parsen von invaliden JSON Objekten

Beitrag von LutzB »

Man sollte nur die Topics abonnieren, mit denen man auch arbeiten will.
Die von Dir gezeigten Topics sind nur die Verlaufsdaten für das Diagramm auf der Hauptseite und in einem Format abgelegt, das eine relativ einfache Bearbeitung sowohl im Front- als auch Backend ermöglicht. Das ist quasi eine interne Schnittstelle mit speziellem Datenformat und für Dich und Dein SmartHome System irrelevant.
HandyCap87
Beiträge: 30
Registriert: Do Nov 19, 2020 2:33 am
Has thanked: 3 times
Been thanked: 3 times

Re: MQTT Client Fehler beim Parsen von invaliden JSON Objekten

Beitrag von HandyCap87 »

LutzB hat geschrieben: Di Jan 27, 2026 6:52 am Man sollte nur die Topics abonnieren, mit denen man auch arbeiten will.
Die von Dir gezeigten Topics sind nur die Verlaufsdaten für das Diagramm auf der Hauptseite und in einem Format abgelegt, das eine relativ einfache Bearbeitung sowohl im Front- als auch Backend ermöglicht. Das ist quasi eine interne Schnittstelle mit speziellem Datenformat und für Dich und Dein SmartHome System irrelevant.
Ja, ich muss eine Liste vom Baum anfertigen und iobroker füttern. Umständlich, aber eine Lösung. Bin vom neuen MQTT Baum aber mal gar nicht angetan. Sehr chaotisch. Das war schon mal besser...
Gero
Beiträge: 4863
Registriert: Sa Feb 20, 2021 9:55 am
Has thanked: 60 times
Been thanked: 320 times

Re: MQTT Client Fehler beim Parsen von invaliden JSON Objekten

Beitrag von Gero »

HandyCap87 hat geschrieben: Di Jan 27, 2026 11:46 am Bin vom neuen MQTT Baum aber mal gar nicht angetan. Sehr chaotisch. Das war schon mal besser...
Kuck doch mal unter openWB/simpleAPI - wenn da alles drin ist, was Du brauchst, nimm das. Dann musst Du dich nicht mit den ganzen Internas wie Profilen etc herumschlagen.
openWB-pro+, openWB-Buchse, E3/DC S10pro+19.5kWh, 30kWp Ost-Süd, Model 3 und Ion
Antworten