Re: OpenWB als Wallbox ins die Victron-Welt einbinden
Verfasst: Do Nov 21, 2024 1:49 pm
ja kann man! Ich missbrauche dazu z.B. die Speichervorrangbuttons und deren MQTT topics 

Die modulare Wallbox
https://forum.openwb.de/
und wie geht das?Andi hat geschrieben: Do Nov 21, 2024 1:49 pm ja kann man! Ich missbrauche dazu z.B. die Speichervorrangbuttons und deren MQTT topics![]()
Code: Alles auswählen
......
...
LaufZeitMS = flow.get("laufzeitms");
LaufZeitS = Math.floor(LaufZeitMS/1000);
// Ladevorgang ist mein Status Charging von der SMA Box..
if(Ladevorgang!=200113) { LaufZeitS = 0; }
...
let data = {
"Ac/Energy/Forward": AcWh,
"Ac/L1/Power": AcPowerL1,
"Ac/L2/Power": AcPowerL2,
"Ac/L3/Power": AcPowerL3,
"Ac/Power": AcPower,
"ChargingTime": LaufZeitS,
"Current": AcCurrent,
"Status": Status,
"Mode": Schalter,
"MaxCurrent": 32,
"Position": 1,
"Model": "SMAEVCharger22",
"AutoStart": 1
}
...
Code: Alles auswählen
2025-02-14 20:15:04: boot done :-)
2025-02-14 20:15:07,422 - {root:176} - {DEBUG:MainThread} - Start openWB2.service
2025-02-14 20:15:07,431 - {helpermodules.update_config:556} - {DEBUG:MainThread} - Broker-Konfiguration aktualisieren
2025-02-14 20:15:08,539 - {helpermodules.update_config:644} - {DEBUG:MainThread} - current datastore version: 75
2025-02-14 20:15:08,539 - {helpermodules.update_config:645} - {DEBUG:MainThread} - target datastore version: 75
2025-02-14 20:15:08,676 - {helpermodules.update_config:600} - {DEBUG:MainThread} - Ungültiges Topic zum Startzeitpunkt: openWB/system/serial_number
2025-02-14 20:15:08,678 - {helpermodules.update_config:600} - {DEBUG:MainThread} - Ungültiges Topic zum Startzeitpunkt: openWB/system/mac_address
2025-02-14 20:15:08,679 - {helpermodules.update_config:600} - {DEBUG:MainThread} - Ungültiges Topic zum Startzeitpunkt: openWB/system/messages/1739560500337
2025-02-14 20:15:08,683 - {helpermodules.update_config:600} - {DEBUG:MainThread} - Ungültiges Topic zum Startzeitpunkt: openWB/chargepoint/4/set/current_prev
2025-02-14 20:15:08,689 - {helpermodules.update_config:600} - {DEBUG:MainThread} - Ungültiges Topic zum Startzeitpunkt: openWB/chargepoint/4/get/error_timestamp
2025-02-14 20:15:08,691 - {helpermodules.update_config:600} - {DEBUG:MainThread} - Ungültiges Topic zum Startzeitpunkt: openWB/chargepoint/4/get/charging_current
2025-02-14 20:15:08,692 - {helpermodules.update_config:600} - {DEBUG:MainThread} - Ungültiges Topic zum Startzeitpunkt: openWB/chargepoint/4/get/charging_power
2025-02-14 20:15:08,694 - {helpermodules.update_config:600} - {DEBUG:MainThread} - Ungültiges Topic zum Startzeitpunkt: openWB/chargepoint/4/get/charging_voltage
2025-02-14 20:15:08,697 - {helpermodules.update_config:600} - {DEBUG:MainThread} - Ungültiges Topic zum Startzeitpunkt: openWB/chargepoint/4/control_par
Code: Alles auswählen
2025-02-14 20:15:14,948 - Topic: openWB/chargepoint/4/config, Payload: {"configuration": {"mode": "duo", "ip_address": "localhost", "duo_num": 0}, "ev": 2, "name": "Garage-1", "type": "internal_openwb", "template": 0, "connected_phases": 3, "phase_1": 1, "auto_phase_switch_hw": true, "control_pilot_interruption_hw": true, "id": 4, "ocpp_chargebox_id": null}
2025-02-14 20:15:14,952 - Topic: openWB/chargepoint/4/set/manual_lock, Payload: false
2025-02-14 20:15:14,954 - Topic: openWB/chargepoint/4/set/current, Payload: 0
2025-02-14 20:15:14,955 - Topic: openWB/chargepoint/4/set/charging_ev, Payload: -1
2025-02-14 20:15:14,955 - Topic: openWB/chargepoint/4/set/energy_to_charge, Payload: 0
2025-02-14 20:15:14,956 - Topic: openWB/chargepoint/4/set/plug_state_prev, Payload: false
2025-02-14 20:15:14,957 - Topic: openWB/chargepoint/4/set/plug_time, Payload: null
2025-02-14 20:15:14,958 - Topic: openWB/chargepoint/4/set/charging_ev_prev, Payload: -1
2025-02-14 20:15:14,959 - Topic: openWB/chargepoint/4/set/log, Payload: {"chargemode_log_entry": "_", "costs": 0, "imported_at_mode_switch": 0, "imported_at_plugtime": 0, "imported_since_mode_switch": 0, "imported_since_plugged": 0, "range_charged": 0, "time_charged": "00:00", "timestamp_start_charging": null, "ev": -1, "prio": false, "rfid": null, "serial_number": null, "soc_at_start": null, "soc_at_end": null, "range_at_start": null, "range_at_end": null}
2025-02-14 20:15:14,960 - Topic: openWB/chargepoint/4/set/phases_to_use, Payload: 1
2025-02-14 20:15:14,961 - Topic: openWB/chargepoint/4/set/rfid, Payload: null
2025-02-14 20:15:14,962 - Topic: openWB/chargepoint/4/set/ocpp_transaction_id, Payload: null
2025-02-14 20:15:14,963 - Topic: openWB/chargepoint/4/get/charge_state, Payload: false
2025-02-14 20:15:14,965 - Topic: openWB/chargepoint/4/get/connected_vehicle/info, Payload: {"id": 2, "name": "Michael"}
2025-02-14 20:15:14,966 - Topic: openWB/chargepoint/4/get/connected_vehicle/config, Payload: {"average_consumption": 24000, "charge_template": 0, "chargemode": "pv_charging", "current_plan": null, "ev_template": 2, "priority": false, "time_charging_in_use": false}
2025-02-14 20:15:14,967 - Topic: openWB/chargepoint/4/get/connected_vehicle/soc, Payload: {"fault_str": "Kein Fehler.", "fault_state": 0, "range_charged": 0, "range_unit": "km", "range": 39.0, "soc": 10, "timestamp": 1739556495.101662}
2025-02-14 20:15:14,968 - Topic: openWB/chargepoint/4/get/currents, Payload: [0.0, 0.0, 0.0]
2025-02-14 20:15:14,969 - Topic: openWB/chargepoint/4/get/daily_imported, Payload: 2531.0