feat: MQTT SoC injection topics (#112)#115
Merged
basmeerman merged 3 commits intomasterfrom Mar 25, 2026
Merged
Conversation
Add Set/InitialSoC, Set/FullSoC, Set/EnergyCapacity, Set/EnergyRequest, and Set/EVCCID MQTT topics to mqtt_parser.c for WiCAN and Home Assistant SoC injection. 26 native tests with SbE annotations. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…113) Wire MQTT_CMD_INITIAL_SOC, MQTT_CMD_FULL_SOC, MQTT_CMD_ENERGY_CAPACITY, MQTT_CMD_ENERGY_REQUEST, and MQTT_CMD_EVCCID_SET to existing SoC variables in esp32.cpp. Calls RecomputeSoC() after each SoC update. Guarded with #if MODEM since the SoC variables (InitialSoC, FullSoC, EnergyCapacity, EnergyRequest, EVCCID) and RecomputeSoC() are only compiled when MODEM=1 (v4 hardware and CH32 builds). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ent 3) (#114) Document Set/InitialSoC, Set/FullSoC, Set/EnergyCapacity, Set/EnergyRequest, and Set/EVCCID MQTT topics. Include WiCAN and Home Assistant automation examples. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Mar 25, 2026
basmeerman
added a commit
that referenced
this pull request
Mar 25, 2026
- Add Capacity Tariff, CircuitMeter, SoC Injection to Key Features table - Add Plans 13-15 to Roadmap table (PRs #115, #116, #117) - Update test stats: 47 suites, 1,046 native tests, 1,200+ total - Add Plans 13-15 sections to upstream-differences.md - Update quality.md test metrics - Update CLAUDE.md priority table and test infrastructure count Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3 tasks
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.
Summary
Set/InitialSoC,Set/FullSoC,Set/EnergyCapacity,Set/EnergyRequest, andSet/EVCCIDMQTT topics tomqtt_parser.cPOST /ev_state)Closes #112
Test plan
🤖 Generated with Claude Code