Werkseinstellungen wären extrem mühsam, da sind mehrere Fahrzeuge mit verschiedenen Ladeprofilen hinterlegt, zwei Ladepunkte, RFID Tags etc., das wäre sehr viel Arbeit das alles wieder einzurichten.
Ich bin die MQTT "Datenbank" durchgegangen und habe alles gefunden was auf den fehlerhaften Speicher verweist, nur bekomme ich es nicht gelöscht. Ich habe ein Skript gemacht:
Code: Alles auswählen
#!/bin/bash
mosquitto_pub -h localhost -p 1884 -t 'openWB/bat/5/set/power' -r -n
mosquitto_pub -h localhost -p 1884 -t 'openWB/bat/5/set/fault_str' -r -n
mosquitto_pub -h localhost -p 1884 -t 'openWB/bat/5/set/fault_state' -r -n
mosquitto_pub -h localhost -p 1884 -t 'openWB/bat/5/set/soc' -r -n
mosquitto_pub -h localhost -p 1884 -t 'openWB/bat/5/set/fault_imported' -r -n
mosquitto_pub -h localhost -p 1884 -t 'openWB/bat/5/set/daily_imported' -r -n
mosquitto_pub -h localhost -p 1884 -t 'openWB/bat/5/set/daily_exported' -r -n
mosquitto_pub -h localhost -p 1884 -t 'openWB/bat/5/set/exported' -r -n
mosquitto_pub -h localhost -p 1884 -t 'openWB/bat/5/set/imported' -r -n
mosquitto_pub -h localhost -p 1884 -t 'openWB/simpleAPI/bat/5/set/power' -r -n
mosquitto_pub -h localhost -p 1884 -t 'openWB/simpleAPI/bat/5/set/fault_str' -r -n
mosquitto_pub -h localhost -p 1884 -t 'openWB/simpleAPI/bat/5/set/fault_state' -r -n
mosquitto_pub -h localhost -p 1884 -t 'openWB/simpleAPI/bat/5/set/soc' -r -n
mosquitto_pub -h localhost -p 1884 -t 'openWB/simpleAPI/bat/5/set/imported' -r -n
mosquitto_pub -h localhost -p 1884 -t 'openWB/simpleAPI/bat/5/set/exported' -r -n
mosquitto_pub -h localhost -p 1884 -t 'openWB/simpleAPI/bat/5/set/daily_exported' -r -n
mosquitto_pub -h localhost -p 1884 -t 'openWB/simpleAPI/bat/5/set/daily_imported' -r -n
mosquitto_pub -h localhost -p 1884 -t 'openWB/counter/set/hierarchy' -m '[{"id": 5, "type": "counter", "children": [{"id": 3, "type": "cp", "children": []}, {"id": 4, "type": "cp", "children": []}, {"id": 7, "type": "inverter", "children": []}, {"id": 8, "type": "bat", "children": []}]}]' -r
mosquitto_pub -h localhost -p 1883 -t 'openWB/bat/5/set/power' -r -n
mosquitto_pub -h localhost -p 1883 -t 'openWB/bat/5/set/fault_str' -r -n
mosquitto_pub -h localhost -p 1883 -t 'openWB/bat/5/set/fault_state' -r -n
mosquitto_pub -h localhost -p 1883 -t 'openWB/bat/5/set/soc' -r -n
mosquitto_pub -h localhost -p 1883 -t 'openWB/bat/5/set/fault_imported' -r -n
mosquitto_pub -h localhost -p 1883 -t 'openWB/bat/5/set/daily_imported' -r -n
mosquitto_pub -h localhost -p 1883 -t 'openWB/bat/5/set/daily_exported' -r -n
mosquitto_pub -h localhost -p 1883 -t 'openWB/bat/5/set/exported' -r -n
mosquitto_pub -h localhost -p 1883 -t 'openWB/bat/5/set/imported' -r -n
mosquitto_pub -h localhost -p 1883 -t 'openWB/simpleAPI/bat/5/set/power' -r -n
mosquitto_pub -h localhost -p 1883 -t 'openWB/simpleAPI/bat/5/set/fault_str' -r -n
mosquitto_pub -h localhost -p 1883 -t 'openWB/simpleAPI/bat/5/set/fault_state' -r -n
mosquitto_pub -h localhost -p 1883 -t 'openWB/simpleAPI/bat/5/set/soc' -r -n
mosquitto_pub -h localhost -p 1883 -t 'openWB/simpleAPI/bat/5/set/imported' -r -n
mosquitto_pub -h localhost -p 1883 -t 'openWB/simpleAPI/bat/5/set/exported' -r -n
mosquitto_pub -h localhost -p 1883 -t 'openWB/simpleAPI/bat/5/set/daily_exported' -r -n
mosquitto_pub -h localhost -p 1883 -t 'openWB/simpleAPI/bat/5/set/daily_imported' -r -n
mosquitto_pub -h localhost -p 1883 -t 'openWB/counter/set/hierarchy' -m '[{"id": 5, "type": "counter", "children": [{"id": 3, "type": "cp", "children": []}, {"id": 4, "type": "cp", "children": []}, {"id": 7, "type": "inverter", "children": []}, {"id": 8, "type": "bat", "children": []}]}]' -r
Danach scheint es weg zu sein, aber wenn ich die openWB dann neu starte ist alles wieder da. Es muss doch einen Weg geben diese Mosquitto-Datenbank zu bearbeiten, so dass die Änderungen permanent übernommen werden? Ich weiß nicht ob es daran liegt das da irgendwie zwei Server am laufen sind (auf den zwei Ports) und die sich gegenseitig irgendwie wieder synchronisieren. Ich steige da durch das Konzept nicht durch.