Skip to content

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

Docs

  • Extension registers from an evening read-only run (2026-11-06), a week of the Modbus bridge's point history and the Direct Connect bridge's metrics (#132). 15013 is confirmed as battery power both ways: positive = discharging, negative = charging. 15035 = SoC × 10 is confirmed over 0–100 %. 15016 status values: 2 normal, 6 dispatch, 3 likely off-grid, 1 likely start-up. 15040 is inferred to be PV power (int16) as Direct Connect reports it, reading −9 W after dark. 15006–15007, 15014–15015 and 15022 are still unknown.
  • Extension registers confirmed by a read-only correlation run on V12R02B60D00 (2026-11-03, charging, 54 samples, one site). 15003 is PV power (= M502 OutPw). 15011 is home load (= 16000). 15013 is battery power (int16, negative = charging; tracks M714 DCW at ~1 W where DCW moves in 100 W steps). 15025 is grid voltage × 10 (= M701 LNV). 15029–15030 and 15033–15034 are M701 TotWhInj and TotWhAbs. 15035 is SoC × 10, in 0.1 % steps. 15506 has ~1 W resolution on V12, not ~100 W as on V10. firmware_quirks.json marks these mapped: true (#132).
  • Extension Registers has an Extension → SunSpec mapping. It lists every register in 15000–15043, 15500–15513 and 16000–16002 with its type, scale, units, sign and SunSpec equivalent (or none). Each row has a status (confirmed, inferred or unknown) with evidence, and says whether a client should prefer the extension value. All 150xx rows stay inferred until a correlation run (#132).

0.13.0 - 2026-11-02

⚠️ Breaking changes

  • read_battery_status(): battery_temp_c, battery_current_a and the power_w/voltage_v/current_a/temp_c values in individual_batteries are now None when the aGate doesn't report them, instead of 0. On V12R02B60D00 they are always None, because the aGate returns 0 for the whole M714 port block (#129). Code that does arithmetic or formatting on them must handle None. individual_batteries[i].power_w is now the port's own DCW; before, it was the model total. battery_power_w and battery_state are unchanged (#130).

Fixed

  • read_battery_status() never read the M714 port block. It looked for a blocks attribute that pysunspec2 models don't have, so temperature, voltage and current were always 0 on any firmware. Ports are now read from the Prt repeating group (#130).
  • SunSpecSequencer.get_point('714.DCW_2'): the _N suffix now resolves the Nth instance of a repeating group. Before, it raised "Point not found" on real pysunspec2 models (#130).
  • The CLI monitor shows "—" for battery current when it isn't reported (#130).
  • disconnect() now closes the TCP socket. It called pysunspec2's close(), which does nothing for TCP, so after a raw-socket read (read_solar_status(), read_native_mode(), the extension helpers) the socket stayed open and held the aGate's single Modbus session until garbage collection (#138).
  • read_alarms(): vendor_info is now empty when M701 MnAlrmInfo holds the fixed placeholder "Manufacturer custom error info", which is all it has read on V10R01B04D00 and V12R02B60D00. The CLI no longer prints it as vendor alarm info. The string as read is in the new vendor_info_raw (#136).

Docs

  • New Alarms, Errors and Exceptions: each alarm and status point, Modbus exception and silently discarded write, per firmware (V10R01B04D00, V12R02B60D00), with sources and library handling. firmware_quirks.json adds m701_mnalrminfo, m701_throttle_points and alarm_points_quiet. The QUIRKS ThrotPct row is corrected: not implemented on both firmwares (#136).
  • New SunSpec Point Reference: every point in the 17 models the aGate reports on V12R02B60D00, with its SunSpec label, description, type, units, scale factor, access, mandatory/optional flag, PDU address and 40000-mirror address, plus the extension register table. Generated by tools/gen_point_reference.py from the pysunspec2 model JSON and the 2026-10-20 snapshot. The Extensions Manifest's correlation table is marked superseded (#127).
  • Extension registers 15000–15043 are recorded one by one (#132): firmware_quirks.json has an entry for each register, with raw values on V10R01B04D00 and V12R02B60D00 and a mapped flag on every extension entry. Extension Registers has a per-register table with candidate meanings marked as inferred. 15029–15030 and 15033–15034 equal M701 TotWhInj/TotWhAbs exactly in one capture.
  • Model 714 corrected per firmware (#129). On V10 and V12, model DCA reads 0 while DCW is non-zero. On V12 the whole port 1 block reads 0 (PrtTyp = PV, DCSta = OFF, DCV, Tmp and port DCW all 0). FranklinWH's PICS declares all of these supported, and plain 0 is not SunSpec's not-implemented value. Earlier docs listed DCV/Tmp as working on V10 without any raw read, and called the DCA workaround robust; both are corrected. firmware_quirks.json adds m714_dca and m714_port_block and corrects m714_dcv_tmp. The PICS cross-reference gains an M714 table. The library defect behind the 0 °C / 0 A readings is #130.

0.12.0 - 2026-10-30

Added

  • Opt-in write trace: FranklinWHController(..., write_trace=callback) gets one WriteRecord for every Modbus write the library sends. Each record has the register, function code, raw values, the aGate's reply (OK, the exception code, or an error), the point name, the firmware and a caller-set write_source. It covers model writes, the extension setters, clear_alarms and SunSpecSequencer raw writes. The same records go to the franklinwh_modbus.writes logger at DEBUG (#124).

Fixed

  • set_native_mode, set_self_consumption_reserve and set_tou_reserve now log at WARNING when the aGate refuses the write, when the read-back differs from the value written, or when the read-back fails. For example: Extension write not applied: register 15508 wrote 20, read back 8, firmware V12R02B60D00. Before, they only returned the message. No claim is made that these registers can be written (#114 A5).

Docs

  • QUIRKS: M714 DCW sign corrected to positive = discharging; WSetEnaRvrt read-back no longer called "works"; the V10 reversion section names its firmware (#114 C2, C3).

0.11.0 - 2026-10-29

⚠️ Breaking changes

  • Enum descriptions change (get_pics_enum_desc / get_enum_desc): 17 PICS_ENUMS entries were one higher than SunSpec. For example, WSetEna 1 returned DISABLED, and InvSt 3 returned STARTING instead of RUNNING. They now follow the SunSpec 2 model JSON (0 DISABLED, 1 ENABLED; InvSt 0 OFF … 7 STANDBY). This affects 701 ACType, St, InvSt, ConnSt, DERMode; 703 ES; and the 704 *Ena / *EnaRvrt points (#114 A1).
  • ControlMode has the two SunSpec WSetMod values: W_MAX_PCT (0) and WATTS (1). LIMIT_ABS, LIMIT_PCT, SET_EXPORT and SET_IMPORT are removed; use ControlMode.WATTS where code used LIMIT_ABS. BatteryCommand.mode defaults to WATTS. send_command used to ignore the mode; it now sends WATTS through WSet and W_MAX_PCT through WSetPct (#114 A2, A6, B1).
  • check_state(): actual_power was the setpoint, not measured power. Read setpoint_w (the Modbus setpoint) or measured_dc_w (M714 DCW). Both use the hardware sign: positive = discharge. actual_power remains as a deprecated alias that raises a DeprecationWarning when read. Under Modbus control, battery_activity now comes from measured DC power and shows the setpoint alongside, for example Discharging (400W, setpoint 1000W) (#114 A3).
  • Percent is sent as percent (#114 B1). dispatch(..., '40%') used to convert the percentage to watts of the rating, without logging it. It now sends WSetPct with WSetMod=0. BatteryCommand(mode=ControlMode.W_MAX_PCT, power_pct=N) is the new percent command, and send_command sends it through WSetPct. Watts still go through WSet; neither is converted to the other. On V12R02B60D00, percent commands above 10 % or below 0 are refused (exception 3, #92), and the refusal is logged. If the WSetPct write is refused after WSetMod was changed, WSetMod is written back to its previous value and that is logged (tested live, 3 runs).

Added

  • firmware_quirks.json, shipped as package data: a per-firmware record of aGate Modbus behaviour (WSet/WSetPct sign and accepted range, charge refusal, reversion, heartbeat, 40000 mirror, reserve registers), with quirks_for(firmware) to read it (behaviour id → list of observations for that firmware). Public facts only; the controller does not act on it yet (#91).

Fixed

  • tools/franklinwh_control_standalone.py converted watts to WSetPct. It now sends watts through WSet with WSetMod=1 and verifies the read-back (#114 B2).
  • The four workarounds the owner approved to keep are documented in docs/APPROVED_WORKAROUNDS.md, and every run is logged with the tag [approved workaround #114 …]. They are the standby handshake, the software timeout, the power clamps and the 5000 W rating fallback (B3), plus the home load read from 16000 instead of 15506 (B4). The rating fallback used to be silent (#114 B3, B4).
  • tools/franklinwh_min_demo.py wrote WSetMod=2, which SunSpec doesn't define. It now writes 1 (WATTS). Its labels now use the aGate's sign (WSet positive = discharge), so the "+1000 W" step is labelled discharge (#114 A2).
  • A Modbus exception response from the aGate is now logged at WARNING. The log line gives the refused register, the raw values and the firmware, for example Refused by the aGate: write to register 40324 [0xFFCE] -> Modbus exception: 3, firmware V12R02B60D00. It covers operations run through the controller's retry path (#114 A4).

Docs

  • Model 704 conformance results on V12R02B60D00 (#104), and V12 heartbeat, inverted reversion, 40000-mirror write echo and extension-write re-test (#107).

0.10.1 - 2026-10-24

Force Discharge works on V12R02B60D00. 0.10.0 sent power as a percentage, which V12 refuses above 10 % (500 W). 0.10.1 sends watts. Tested live: 5000 W.

⚠️ Breaking changes

These change behaviour callers may rely on. Under the release policy they warranted a minor version (0.11.0), not a patch. - Different registers: send_command writes WSetMod=1 + WSet (watts), not WSetPct. It no longer writes WSetEna=0 first, and returns (False, "Command not applied: …") if the read-back differs. Code that reads WSetPct to find the active command will now see 0: read read_control_status()['wset_mode'] / ['wset_watts'], not WSetPct. - Different failure behaviour: a refused write fails at once with "Rejected by the aGate (…)", with no reconnect or resend (#96).

Known issue (unchanged)

  • V12 refuses charge by either route (negative WSet or WSetPct, exception 3). A charge command returns that rejection.

Fixed

  • Force Discharge above 500 W refused on V12 (exception 3): now sent as watts.
  • Refused writes treated as connection errors and resent (#96).
  • Sequencer raw-address reads/writes did nothing after the scan (#99).
  • Sequencer: a rejected write skipped the restore steps (#101). Steps now take on_error, and a cleanup block always runs.

Docs

  • V12R02B60D00: firmware snapshot, 40000 mirror, reserve/mode readings (16001, 15509).
  • New pages: Extension Registers, API Cookbook, Modbus vs Cloud, Modbus Client Libraries, HA Modbus YAML monitoring.
  • Modbus addressing uses PDU terms; unsourced "SPAN unlock" claims removed.

0.10.0 - 2026-10-17

Alarms are reported, not decided. The library now names every active alarm from the SunSpec models and leaves the decision to the caller. check_blocking_alarms() is deprecated, and healthcheck() no longer turns unhealthy on alarms. A failed alarm read is never reported as "no alarms". Read the upgrade notes if you use healthcheck(), --check-alarms or check_blocking_alarms().

Upgrade notes

  • The library no longer decides what an alarm means; the client does. (#40, #46)
  • check_blocking_alarms() is deprecated (it warns, and will be removed). Use read_alarms() or the new active_alarms() and apply your own rule.
  • healthcheck() lists active alarms in details['alarms'] and in its recommendations, but they no longer affect healthy or message. details['blocking_alarms'] and details['can_operate'] are gone.
  • The conflict check's result['alarms'] is now {'active', 'system_alrm', 'decoded'}; can_operate and blocking are gone.
  • VirtualModeController.run_continuous(enable_safety_checks=True) no longer stops after two alarm checks. Its SoC-limit and dispatch-verification checks are unchanged.
  • A failed alarm read is never "no alarms": active_alarms() returns ["Alarm read failed: …"], so --check-alarms exits 1, and the deprecated check_blocking_alarms() returns (False, ["ALARM_READ_FAILED: …"]). Its CRITICAL_BITS are still the set that is one bit off from model 701 (#46); it's kept unchanged until the function is removed.
  • --check-alarms exits 1 if any alarm is active (before: only the fixed "critical" set). --healthcheck and --status print "ACTIVE ALARMS".
  • read_alarms() now reads models 701, 713, 714 and 502 itself (pass refresh=False if you read them in the same poll), and it fills decoded. DC ports in decoded['dc_port'] are numbered from 1, the same as read_battery_status()['individual_batteries']. (#39)
  • If read_alarms() fails, the result has an error key and the failure is logged at warning level. It used to return zeros at debug level, which looked like "no alarms". Check error before trusting an empty alarm list. (#39)

Added

  • FranklinWHController.active_alarms(alarms=None): every active alarm by name (system, DC port, solar, and the battery when not OK), from read_alarms(). Reports only. (#46)

Fixed

  • --status --detail labels AC Type (derived from M701.LNV). It said (M701.ACType), a point the library doesn't read; the value comes from the voltage band. (#42)
  • read_alarms() reads the device and names every active alarm. It returned whatever another call had last loaded into the models (it never read them itself) and left decoded empty, so --check-alarms printed Battery Status: UNKNOWN and empty lists. It now reads models 701, 713, 714 and 502 first (pass refresh=False if you read them moments ago) and lists every set bit, named from the SunSpec model definitions in pysunspec2: M701 Alrm, M502 Evt (new: solar_evt, decoded['solar']), M713 Sta (OK / WARNING / ERROR), M701 MnAlrmInfo (new: vendor_info), and per DC port the DCAlrm bits plus a WARNING/ERROR DCSta. M714 PrtAlrms only flags which ports have an alarm; it is not an alarm-type field. The standalone tool's name tables were not ported: its system-alarm names are shifted by one bit from model 701, and its DC-port names are not in model 714. (#39)

0.9.6 - 2026-10-17

Upgrade advisory: all 0.9.5 users should upgrade. 0.9.5 has two S1 defects that act on the battery. connect() writes the operating mode and reserves (15507–15509) on every connection (#24), and a charge or discharge above the device rating is clamped to full power in the opposite direction (#28). 0.9.6 also fixes the battery ERROR status, which was never recognised (#38). Read the upgrade notes below before upgrading: several behaviours changed.

Upgrade notes

Behaviour changes that can affect code built on the library: - connect() no longer runs the extension writability test, so _extension_writable stays None after connecting. Call test_extension_writability() explicitly if you need it. That call writes 15507–15509. (#24) - VirtualModeController calculators (_calc_*) return the opposite sign from before: positive = charge, negative = discharge, matching BatteryCommand. Subclasses or direct callers must follow. (#20) - Self-consumption grid-charges only below self_reserve_pct (default 20%), not below target_soc, and no longer refuses to start with a full battery. (#20) - verify_command_execution() returns ok=False when the readback fails. It used to assume success. (#21) - Failed status reads log at warning level (first failure, then at most once a minute, then on recovery) instead of debug. (#22) - When one model fails inside read_battery_status() or read_solar_status(), the result now carries partial (e.g. ['714']) and leaves that model's keys out. read_solar_status() used to report them as 0. Use .get() on ac_power_w, dc_power_w and battery_dc_power_w, and treat a present partial as an incomplete sample. (#52)

Fixed

  • Partial read failures are no longer silent. A model 714 (or 502) read that failed inside an otherwise successful read_battery_status() or read_solar_status() was logged at debug level only. Battery power, state, current and temperature disappeared without trace, and read_solar_status() reported 0 W, which looks the same as an idle battery or no solar. It now logs a warning (first failure, then at most once a minute per model, then on recovery), updates last_error, and lists the model in partial. A failed M502 still falls back to the extension solar total when one is available. consecutive_failures keeps counting whole-read failures only. (#52)
  • Battery status is read with the SunSpec values. Model 713 defines Sta as 0 OK, 1 WARNING, 2 ERROR (pysunspec2 1.3.3 model_713.json); the library tested for 6, which SunSpec does not define, so a battery ERROR was never recognised. --status now prints ERROR or WARNING, and check_blocking_alarms() reports BATTERY_FAULT on 2 instead of 6. A WARNING, or a value SunSpec does not define, is logged. Only Sta = 0 has been observed on the aGate. (#38)
  • connect() no longer writes to the device. It ran the extension writability test on every connection: it wrote 15507 (operating mode), 15508 and 15509 (reserves) with test values and restored them only if the readback matched. On a unit where those registers are writable, every connect (including every bridge reconnect) briefly changed the mode and reserves, and a dropped link could leave them changed (a 100% reserve was tested as 0%). The test is now the explicit test_extension_writability(), still run by --test-extension-write. (#24)
  • The rating clamp no longer reverses the direction of over-limit commands. send_command() clamped a charge above the device rating to a full-rate discharge, and a discharge above it to a full-rate charge (e.g. --power 6000 on a 5 kW unit discharged at 5 kW). It now clamps to the rating in the requested direction. The same fix is in tools/franklinwh_control_standalone.py. (#28)
  • Virtual-mode calculators now return the BatteryCommand convention (positive = charge, negative = discharge) that the SoC limiter and send_command() expect. Self-consumption, peak-shave and the TOU discharge strategy returned the opposite sign, so the limiter ramped and blocked the wrong direction (a charge near the discharge floor was cut back or blocked without any log), and the inverted setpoint went out as a positive WSetPct, which the device ignores. Reported by @balloobbot in #12. (#20)
  • Self-consumption grid-charges at full power only below self_reserve_pct (--reserve, previously accepted but unused). Between the reserve and target_soc it covers home load from the battery and charges from excess solar. Before, it charged whenever SoC was below target_soc, which defaults to 100. Starting self-consumption with a full battery is no longer refused. (#20)
  • --power/--duration honours --min-discharge-soc 0 instead of coercing it to 20. The 20% default on that path is unchanged. (#20)
  • VirtualModeController.verify_command_execution() compared the never-written M704.WSet with battery power, so it always passed. It now reads the setpoint back from WSetPct and reports a failed readback instead of assuming success. (#21)

Added

  • FranklinWHController.verify_dispatch(expected_w, tolerance_pct=20, timeout_s=0) reads back WSetEna/WSetPct and M714.DCW, compares them in the BatteryCommand convention, and returns ok, dispatched, commanded_w, actual_w and reason. It detects a dispatch the device accepted but did not act on. With timeout_s it polls while the battery ramps. Tolerance has a 100 W floor (M714.DCW reads in 100 W steps), and commands under 150 W are verified on the setpoint only. (#21)
  • Controller I/O health: last_success_ts, last_error, last_error_ts, consecutive_failures and data_age_s, so callers can tell a dead link from an empty read. (#22)
  • The SoC limiter logs when it ramps a command (once per distinct value), not only when it blocks one. (#20)

Changed

  • send_command(duration_s=…) documents that its timeout runs reset_control_state() on a timer thread without the caller's lock. Callers that share the controller across threads should release from their own watchdog instead. A lock fix is tracked in #54.
  • Failed status reads (read_battery_status, read_grid_status, read_solar_status, read_control_status) log at warning level on the first failure and then at most once a minute, plus once on recovery. They were logged at debug level only. Return values are unchanged ({} on failure). (#22)

0.9.5 - 2026-10-07

Added

  • franklinwh_modbus.discovery — read-only discovery of SunSpec Modbus devices, for finding an aGate on a host or subnet without re-implementing Modbus I/O. probe(host, …) checks the SunS marker at bases 0, 40000, 50000 and 30000 and reads the Common model nameplate in one request; scan(subnet, …) TCP-checks port 502 in parallel and probes only the open hosts (private ranges and at most 254 hosts unless told otherwise). Only SunSpec devices returning the Common model (1) count as sunspec; anything else listening is unknown (reason in error), and nothing listening is closed. is_franklinwh flags a SunSpec device whose manufacturer names FranklinWH; summary gives a one-line description. Works with both pymodbus unit-id keywords (slave= / device_id=). Documented in docs/DISCOVERY.md.

Changed

  • tools/network_scanner.py: ModbusSunspecProber now delegates to discovery.probe() (same output, same 3-attempt behaviour), so the tool and the library share one SunSpec probe.

0.9.4 - 2026-10-04

Fixed

  • --dry-run no longer writes to the device. set_mode() applies a mode immediately via execute_once() but took no dry_run parameter, so franklinwh_cli.py --vmode ... --dry-run engaged control (WSetEna=1, WSetPct=100.0) and then reported "no commands sent". Confirmed on an aGate X (V10R01B04D00); the orphaned dispatch pins the battery until released. Both CLI entry points were affected (--vmode and --power/--duration). set_mode() and execute_once() now take dry_run, matching set_native_mode() and its siblings. (#13)

Changed

  • Removed the unverified "SPAN Modbus unlock" attribution from all messages, logs, help text and the capability manifest. The library stated that extension register writes (15507-15509) fail because an installer option needs unlocking; that was inference, never confirmed by FranklinWH, and reached end users as actionable advice. Messages now report only what is observed: writes are accepted at the protocol level but not applied on the firmware tested. --check-span no longer infers writability from panel presence. _span_writable renamed to _extension_writable. (#14)
  • Package metadata and LICENSE now use the GitHub handle rather than a real name.

Added

  • Legal disclaimer (DISCLAIMER in constants.py), logged once per process at FranklinWHController construction and reproduced in readme.md and docs/index.md. States that this library is unofficial and unaffiliated, that it writes to energy hardware and can charge, discharge and stop a battery, and that FranklinWH support should not be contacted about defects or feature requests for this software. (#14)
  • Documentation of FranklinWH's SunSpec Alliance contributing membership on the docs front page and in SUNSPEC_COMPLIANCE_BASIS.md. (#14)
  • Regression tests asserting a dry run never reaches send_command without dry_run set (tests/unit/test_dry_run_no_writes.py). (#13)

0.9.3 - 2026-06-15

Added

  • Multi-battery parallel stack support in SunSpec Model 714 (DER Storage DC Measurement), including summing power/energy, voltage averaging, and peak temperature tracking across parallel battery stacks.
  • Per-battery telemetry array (individual_batteries) in read_battery_status() for granular battery stack diagnostics.
  • Repeating block suffix tag notation (e.g., 714.DCW_1, 714.DCW_2) in SunSpecSequencer to target specific repeating block registers.
  • Support for scanning and displaying repeating blocks with cache-aware scale factor resolution and suffix formatting in the diagnostic reader tool (modbus_sunspec2_reader.py).
  • Certified PICS-compliant enum resolution utility (get_pics_enum_desc) and FranklinWHController.get_enum_desc for client applications (FEAT-PICS-ENUM-RESOLVER)
  • Prominent TUI Control status header (Control: Remote (r=release) or Control: Local) and active VPP setpoint warning alerts (WSetEna and WSetPct) on the interactive dashboard (FEAT-MONITOR-VPP-WARNINGS)
  • SunSpec InfoPoint Sequencer for automated register control sequences
  • Diagnostic conformance suite for hardware register verification
  • Comprehensive SunSpec Model Reference documentation (SUNSPEC_MODEL_REFERENCE.md)
  • MIT License, CONTRIBUTING.md, GitHub issue/PR templates
  • Branch protection rulesets for develop and master
  • Repository topics for discoverability
  • Grid lifetime energy metrics (M701.TotWhInj, M701.TotWhAbs) in read_grid_status(), monitor TUI, and --status --detail (FEAT-MONITOR-GRID-LIFETIME)
  • Standby Handshake during release of remote control (reset_control_state) to force 0W power output and wait for the inverter to ramp down/stabilize before setting WSetEna=0. Prevents abrupt transients on physical hardware.
  • Unit test coverage for Standby Handshake (tests/unit/test_standby_handshake.py) testing active VPP delays, inactive control bypasses, and 0-second overrides.
  • Automated uint32 data width support, scale factor resolution, and enum symbol mapping in the SunSpecSequencer for proprietary extension registers.
  • Step-level inline overrides for sequencing reads and writes, allowing custom type/scaling configurations dynamically, supporting "addr", "point", and "address" configuration keys.

Fixed

  • CRITICAL: Fixed bug in verify_command_execution() where scale factor lookup failed due to using self instead of self.ctrl.
  • Synchronized Grid and Battery telemetry signs with confirmed hardware behavior (Negative = Charge/Import). Resolves directional labeling conflict in CLI and Monitor (Batch 4 / Issue #6).
  • Corrected battery_state derivation in controller.py to match physical power flow.
  • CRITICAL: Added missing Union to the typing import in controller.py; method parameter annotations using Union[...] raised NameError: name 'Union' is not defined at import on Python ≤ 3.13 (the eager-annotation versions, incl. CI's 3.12). Python 3.14's deferred annotation evaluation (PEP 649) had masked it in local dev runs.

Changed

  • Replaced hardcoded IP addresses with YOUR_AGATE_IP placeholder
  • Replaced device serial numbers with XXXXXXXXXXXXXXXXXXXX placeholder
  • Updated setup.py email to GitHub noreply address
  • Cleaned docs/ and tools/ indexes for public visibility
  • Updated reset_control_state method signature to accept a configurable handshake_wait_s parameter (default 1.0 seconds) to control the standby handshake duration.

Removed

  • Internal test results, archive directory, agent configs from tracked files
  • 53 one-off tool scripts (9 curated tools remain)
  • Internal design docs and proprietary references

0.9.0 - 2026-03-16

Fixed

  • CRITICAL: WSetPct charge rate calculation used wrong denominator (WMaxRtg=1000W instead of WChaRteMaxRtg=5000W). Requesting 1200W charge now correctly produces WSetPct=-24% instead of -120%. (DEF-001)
  • actual_power read-back in read_full_status() now uses direction-aware charge/discharge rates
  • Success messages display correct rated capacity (5000W) instead of WMaxRtg (1000W)
  • "ORPHANED VPP DETECTED" warning downgraded to INFO — WSetEna=1 is normal persistent state (DEF-002)
  • Removed EXTENSION REGISTERS section from --status output; retained in --healthcheck (DEF-003)

Added

  • High-resolution home load from Register 16000 (~1W precision vs 10W from extensions)
  • Propagated high-res home load to CLI, standalone tool, and demo
  • Base-1 addressing reference in QUIRKS.md
  • PICS-driven safety improvements: orphan VPP check, input validation, alarm definitions
  • M801/M802 battery model scan — confirmed non-existence on aGate
  • Register 15000-15043 correlation analysis

Changed

  • Conflict detection now uses energy context (solar, load, grid) to reduce false positives
  • PICS conformance cross-reference updated with vendor submission findings

0.8.0 - 2026-03-10

Added

  • Package namespace renamed from franklinwh to franklinwh_modbus (avoids conflict with Cloud API)
  • SunSpec DER sequencing reference documentation
  • Comprehensive hardware test guide
  • VPP Mode visual reference with mobile app screenshots

Changed

  • CLI restructured to use library imports (from franklinwh_modbus import ...)

0.7.0 - 2026-03-08

Added

  • Extension register write probing (15507-15509 writability detection)
  • Virtual mode specifications (Self-Consumption, Emergency Backup, TOU, Peak Shave, Manual)
  • Orchestration and control documentation with sequence diagrams
  • Safety controls documentation (10 safety rules)
  • Software timeout (watchdog) implementation for VPP commands
  • Battery state derivation from DC power (replacing unreliable M713.Sta)

Fixed

  • SoC proximity ramping for charge/discharge near target
  • Control conflict detection with aGate native modes

0.6.0 - 2026-02-24

Added

  • MQTT publisher with Home Assistant discovery
  • TUI monitor (--monitor) using Rich library
  • TOU schedule support with JSON definitions
  • Modbus throttling analysis and rate limiting
  • Network scanner for aGate discovery

Fixed

  • Connection stability with threaded status fetching and timeout guards
  • MQTT keepalive tuning for persistent sessions

0.5.0 - 2026-02-18

Added

  • Initial FranklinWHController with pysunspec2 integration
  • SunSpec model scanning (Models 1, 701-715)
  • Battery charge/discharge via M704 WSetPct/WSetEna
  • Extension register reading (15500-15509)
  • CLI tool with --status, --charge, --discharge, --stop
  • Basic alarm monitoring