Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Chargepoint Topic Transformation - Before/After Comparison
Overview of Changes
The chargepoint topics have been simplified to provide only the most important information and create a clearer structure.
Configuration Topics (
config)Kept (unchanged)
openWB/simpleAPI/chargepoint/2/config/configuration/ip_addressopenWB/simpleAPI/chargepoint/2/config/configuration/ip_addressopenWB/simpleAPI/chargepoint/2/config/configuration/duo_numopenWB/simpleAPI/chargepoint/2/config/configuration/duo_numopenWB/simpleAPI/chargepoint/2/config/evopenWB/simpleAPI/chargepoint/2/config/evopenWB/simpleAPI/chargepoint/2/config/nameopenWB/simpleAPI/chargepoint/2/config/nameopenWB/simpleAPI/chargepoint/2/config/typeopenWB/simpleAPI/chargepoint/2/config/typeopenWB/simpleAPI/chargepoint/2/config/templateopenWB/simpleAPI/chargepoint/2/config/templateopenWB/simpleAPI/chargepoint/2/config/connected_phasesopenWB/simpleAPI/chargepoint/2/config/connected_phasesopenWB/simpleAPI/chargepoint/2/config/phase_1openWB/simpleAPI/chargepoint/2/config/phase_1openWB/simpleAPI/chargepoint/2/config/auto_phase_switch_hwopenWB/simpleAPI/chargepoint/2/config/auto_phase_switch_hwopenWB/simpleAPI/chargepoint/2/config/control_pilot_interruption_hwopenWB/simpleAPI/chargepoint/2/config/control_pilot_interruption_hwopenWB/simpleAPI/chargepoint/2/config/idopenWB/simpleAPI/chargepoint/2/config/idopenWB/simpleAPI/chargepoint/2/config/ocpp_chargebox_idopenWB/simpleAPI/chargepoint/2/config/ocpp_chargebox_idSet Topics (Control Commands)
Removed Topics
The following topics are no longer provided in the simpleAPI:
charge_templatesubtopics (very complex, available via separate Set-API)logsubtopics (logging information)phases_to_use,rfid(available via Set-API)Get Topics (Measurements and Status)
Special Renamings
openWB/simpleAPI/chargepoint/2/get/connected_vehicle/info/nameopenWB/simpleAPI/chargepoint/2/vehicle_nameopenWB/simpleAPI/chargepoint/2/get/connected_vehicle/config/chargemodeopenWB/simpleAPI/chargepoint/2/chargemodeSimplified Topics (without
/get/)openWB/simpleAPI/chargepoint/2/get/charge_stateopenWB/simpleAPI/chargepoint/2/charge_stateopenWB/simpleAPI/chargepoint/2/get/charging_currentopenWB/simpleAPI/chargepoint/2/charging_currentopenWB/simpleAPI/chargepoint/2/get/charging_poweropenWB/simpleAPI/chargepoint/2/charging_poweropenWB/simpleAPI/chargepoint/2/get/charging_voltageopenWB/simpleAPI/chargepoint/2/charging_voltageopenWB/simpleAPI/chargepoint/2/get/currents/1openWB/simpleAPI/chargepoint/2/currents/1openWB/simpleAPI/chargepoint/2/get/currents/2openWB/simpleAPI/chargepoint/2/currents/2openWB/simpleAPI/chargepoint/2/get/currents/3openWB/simpleAPI/chargepoint/2/currents/3openWB/simpleAPI/chargepoint/2/get/daily_importedopenWB/simpleAPI/chargepoint/2/daily_importedopenWB/simpleAPI/chargepoint/2/get/daily_exportedopenWB/simpleAPI/chargepoint/2/daily_exportedopenWB/simpleAPI/chargepoint/2/get/error_timestampopenWB/simpleAPI/chargepoint/2/error_timestampopenWB/simpleAPI/chargepoint/2/get/evse_currentopenWB/simpleAPI/chargepoint/2/evse_currentopenWB/simpleAPI/chargepoint/2/get/exportedopenWB/simpleAPI/chargepoint/2/exportedopenWB/simpleAPI/chargepoint/2/get/fault_stropenWB/simpleAPI/chargepoint/2/fault_stropenWB/simpleAPI/chargepoint/2/get/fault_stateopenWB/simpleAPI/chargepoint/2/fault_stateopenWB/simpleAPI/chargepoint/2/get/importedopenWB/simpleAPI/chargepoint/2/importedopenWB/simpleAPI/chargepoint/2/get/phases_in_useopenWB/simpleAPI/chargepoint/2/phases_in_useopenWB/simpleAPI/chargepoint/2/get/plug_stateopenWB/simpleAPI/chargepoint/2/plug_stateopenWB/simpleAPI/chargepoint/2/get/poweropenWB/simpleAPI/chargepoint/2/poweropenWB/simpleAPI/chargepoint/2/get/rfid_timestampopenWB/simpleAPI/chargepoint/2/rfid_timestampopenWB/simpleAPI/chargepoint/2/get/rfidopenWB/simpleAPI/chargepoint/2/rfidopenWB/simpleAPI/chargepoint/2/get/serial_numberopenWB/simpleAPI/chargepoint/2/serial_numberopenWB/simpleAPI/chargepoint/2/get/socopenWB/simpleAPI/chargepoint/2/socopenWB/simpleAPI/chargepoint/2/get/soc_timestampopenWB/simpleAPI/chargepoint/2/soc_timestampopenWB/simpleAPI/chargepoint/2/get/state_stropenWB/simpleAPI/chargepoint/2/state_stropenWB/simpleAPI/chargepoint/2/get/vehicle_idopenWB/simpleAPI/chargepoint/2/vehicle_idopenWB/simpleAPI/chargepoint/2/get/voltages/1openWB/simpleAPI/chargepoint/2/voltages/1openWB/simpleAPI/chargepoint/2/get/voltages/2openWB/simpleAPI/chargepoint/2/voltages/2openWB/simpleAPI/chargepoint/2/get/voltages/3openWB/simpleAPI/chargepoint/2/voltages/3openWB/simpleAPI/chargepoint/2/get/power_factors/1openWB/simpleAPI/chargepoint/2/power_factors/1openWB/simpleAPI/chargepoint/2/get/power_factors/2openWB/simpleAPI/chargepoint/2/power_factors/2openWB/simpleAPI/chargepoint/2/get/power_factors/3openWB/simpleAPI/chargepoint/2/power_factors/3openWB/simpleAPI/chargepoint/2/get/powers/1openWB/simpleAPI/chargepoint/2/powers/1openWB/simpleAPI/chargepoint/2/get/powers/2openWB/simpleAPI/chargepoint/2/powers/2openWB/simpleAPI/chargepoint/2/get/powers/3openWB/simpleAPI/chargepoint/2/powers/3openWB/simpleAPI/chargepoint/2/get/frequencyopenWB/simpleAPI/chargepoint/2/frequencyopenWB/simpleAPI/chargepoint/2/get/max_charge_poweropenWB/simpleAPI/chargepoint/2/max_charge_poweropenWB/simpleAPI/chargepoint/2/get/max_discharge_poweropenWB/simpleAPI/chargepoint/2/max_discharge_poweropenWB/simpleAPI/chargepoint/2/get/versionopenWB/simpleAPI/chargepoint/2/versionopenWB/simpleAPI/chargepoint/2/get/evse_signalingopenWB/simpleAPI/chargepoint/2/evse_signalingRemoved Topics
The following topics are no longer provided:
connected_vehiclesubtopics (except the renamed ones above)max_evse_current(redundant to other current values)current_branch,current_commit(version information)Benefits of Simplification
/get/and/set/Example Output (After Changes)
Implementation Details
The changes were implemented in the
_transform_chargepoint_topic()function and include:/get/and/set/prefixesTechnical Notes
/2/) and simplified chargepoints (/chargepoint/) are supported📋 Overview
Added three new write operations to configure instant charging limits via simplified MQTT API topics.
✨ New Features
1. Instant Charging Limit Type
openWB/simpleAPI/set/instant_charging_limitnone,soc,amountmosquitto_pub -t "openWB/simpleAPI/set/instant_charging_limit" -m "soc"2. Instant Charging SoC Limit
openWB/simpleAPI/set/instant_charging_limit_socmosquitto_pub -t "openWB/simpleAPI/set/instant_charging_limit_soc" -m "80"3. Instant Charging Energy Limit
openWB/simpleAPI/set/instant_charging_limit_amountmosquitto_pub -t "openWB/simpleAPI/set/instant_charging_limit_amount" -m "25"🔧 Technical Implementation
Automatic Chargepoint Selection
✅ Validation & Error Handling
none,soc,amount)🧪 Testing Recommendations