Repository navigation
Release 2.9.0 - #39
Merged
Merged
Conversation
Pin the emitter at 0.11.0; ebus-sdk stays at 0.22.0, still its ceiling. The cascade capture and the shed-forecast estimates of r202645-g and r202639-f are what the emitter itself cannot reproduce from their definitions, so they take its exceptions with its reasons.
The emitter's 0.11.0 captures of four panels PanelBench already templates, on release 202645, take those templates' names, and the release 202639 captures of the same panels, which keep their masked serials, are retired, as main32_r202633 was. ref_MAIN_40 is that panel recommissioned, with 38 circuits and no battery. Three captures of other panels become ref_MAIN_32_CASCADE, ref_MAIN_16_BESS and ref_MLO_48_HYBRID. The dashboard's first template is the release 202645 MAIN 32, and the startup test reads its serial from the file rather than naming it. Both changelogs' Unreleased sections had two Fixed headings; the cycling entry joins the first.
…s from release 202645 panel_config.feedthrough (default true) records whether the panel has a feedthrough module. From SPAN release 202645 a hardware 3.0 panel without one publishes its upstream lugs alone, as the emitter's r202645 captures show, so the spec generator leaves the downstream lugs out under span-alpha-test-b2 on that release or a firmware naming none. Earlier releases publish both whatever the panel has, as every r202639 capture does, and no capture shows a MAIN 32 leaving them out, so there the flag changes nothing. A clone of a panel publishing its upstream lugs alone writes feedthrough: false; a lugs.downstream section for lugs the panel does not publish is refused, and a feedthrough that is not a bool.
bess.inverter_type (ac-coupled by default, or hybrid) says whether the battery's own inverter also takes PV, published as its inverter-type, and bess.pv_array.nameplate_capacity_w rates the array a hybrid takes. The engine produces that array with the model PV circuits use, by the panel's location and weather, and the runtime hands it to the emitter as the battery's bess_pv, which the emitter adds to power-flows/pv, to what the battery's dispatch sees and to the grid; the battery is still dispatched by the emitter. The Model view books the array the same way in both passes. A clone takes a battery's coupling from the emitter's own reading of the tree, which writes hybrid where the panel publishes power-flows/pv and nothing but its one battery could bring it solar, rather than keeping a second rule; an import keeps its definition's coupling. The fidelity replay carries a capture's bess_pv onto the reproduction's battery, so r202639-f reproduces on both routes. The recorder history helper moves to tests/_helpers for the Model view tests.
The README, DEVELOPER and the add-on docs describe panel_config.feedthrough and a hybrid battery's inverter_type and pv_array, and which firmware each template reports; a config naming no firmware publishes release 202645's conventions. A MAIN 40's spaces now rest on a capture, r202645-c, whose 38 circuits sit on 9 to 48, in panel_models, the clone's comment and the changelog. Both changelogs record what 0.11.0 publishes differently, the battery's own solar and feedthrough.
… as one; virtual devices stay unpublished Validation ends by asking the emitter: its manifest parse and, under a variant that publishes shared breakers, its rule that a breaker's circuits agree in priority, relay lock, never-backup, placement and energy seed (ebus_panel_sim.shared_hardware), on a normalised copy of the config, with each circuit named by its id. Under 0.11.0 the dashboard could otherwise save a tandem whose circuits differ, or a PV rating of 0, which then would not start. The dashboard applies a priority or relay-behaviour edit and a relay toggle on one circuit of a tandem or quad to every circuit on it, as the breaker has one relay. A circuit on no breaker space, as the dashboard adds a PV inverter or SPAN Drive, is a what-if device: the Model view models it, and it is left out of the manifest, the devices it would feed and each tick, since the emitter refuses a circuit with none and a panel with one did not start, on 0.10.0 too. A hybrid battery's PV goes only to a battery the emitter was started hybrid, and a live edit that makes a battery hybrid is not applied, so the dashboard restarts the panel instead of every tick being refused. A clone's hybrid battery, kept unrated as the Model view's Before battery, takes the live array rating there, so rating it shows no saving. The Model view tests now pin the array's amount, the energy balance and the battery's dispatch in both passes. A battery placed DOWNSTREAM of lugs the panel does not publish is refused. Off grid the array is not curtailed, as the PV circuits are not, which the emitter's dispatch is the place for; the README and changelogs say so. Stale 0.10.0 references in the fidelity provenance and round-trip reasons, the README's rehearsal text and the clone's warning are corrected.
…ster; virtual devices bind nothing Validation refuses what a panel cannot start on by building the emitter as start does, through one construct_emitter that start, an import's render and validation share, so every rule the emitter applies to a definition applies when PanelBench loads, edits or saves a config, with each circuit and outside meter named by its id. That replaces the partial check (the manifest parse and shared_hardware's breaker rule) and the import of a module outside the emitter's public API. Before it, shape checks refuse by name every section the definition reads that is not the mapping, list or number its type says (bess, pv, evse, lugs, broker, simulation_params, panel_config's serial, total_tabs, main_size and site, a template's energy_profile, nameplate and breaker_rating, a circuit's template and tabs, the battery's numbers and hours), which reached the panel's start as an AttributeError or TypeError naming nothing. A bess.feed naming no circuit is refused, and deleting the circuit it names drops it, as a pv.feed is dropped. A PV circuit on no breaker space binds no PV device: pv_circuit_ids counts the circuits on the panel, so a what-if PV no longer publishes a device fed by nothing, nor hides the panel's own inverter, and lends an upstream inverter no type; a pv.feed or bess.feed naming one is refused. A clone and a refresh from the source panel write a tandem's or quad's one register to each of its circuits, the largest any publishes, as the emitter's capture takes it: the circuits read one meter a moment apart, and 0.11.0 refuses seeds that differ. A mate leaves recorder replay only where its own value changes. A live battery change applies only when it keeps the battery the emitter started with, coupled as it was; enabling, disabling or replacing it, or changing its coupling, restarts the panel. Tests pin each fix; every weakening tried fails one. The README's off-grid sentence no longer says the emitter's dispatch sees the load after shedding.
Validation now also checks what the engine reads, each setting as its reader takes it: a template's energy profile must hold mode, power_range and typical_power, power_range two numbers, the variation, a cycling load's durations, smart behaviour's reduction and the panel's latitude and longitude real numbers, since the engine does arithmetic on them; a duty cycle and the time-of-day factors convert with float(), so they may be quoted. cycling_pattern, smart_behavior, time_of_day_profile and simulation_params must be mappings where present, and a circuit's overrides are checked on the template as they leave it, through the one set of profile keys SimulatedCircuit routes them by. A serial must be a string and a circuit id a name or number. The shape checks from the last commit now take each number as its reader does, so a quoted main_size, total_tabs, breaker rating or battery number, a load's empty nameplate and tabs: [1.0], which all ran before, still load; an empty nameplate is refused on a PV template alone, where the inverter's device needs it. total_tabs must be a SPAN panel's size, which start checked only after the panel was up and the dashboard's form did not, so that check moves to validation; a 0 kWh battery, which failed on its first tick, is refused. While validation builds and drops its emitter, a filter keyed on a context variable drops the SDK's homie records below WARNING, about 19,000 per edit at DEBUG on 48 circuits, and leaves a running panel's own alone. A refresh missing one circuit of a tandem gives both the register the scrape has. Tests cover the produced register too. Four dashboard fixtures whose profiles could never tick get runnable ones. Fuzzing both tracked templates (every path set to a string, number, null, list, mapping or bool) raises only ValueError from validation, and every config it accepts starts a panel and ticks; every weakening tried fails a test.
What the definition and the engine read of a template is now checked on each circuit's effective template, its overrides applied as SimulatedCircuit applies them and its own breaker_rating over both, so a template no circuit uses is checked for its shape alone, as nothing reads it. A producer's nameplate must be a real number, since the engine takes abs() of it; a quoted one failed on a tick. Latitude and longitude must lie on the globe, which the dashboard's form did not ensure and the time-zone lookup refuses at start. Energy seeds, monthly factors, active days, hvac_type, soc_shed_threshold, time_acceleration and tab_synchronizations are taken as their readers take them, a discharge efficiency of 0, which the battery divides by, is refused, and a circuit id may be a float, as one ran before. Fuzzing every key the config types declare with odd values, on both tracked templates and three generated ones, gives no exception but ValueError from validation, and each of the 10,727 configs it accepts starts and ticks at three times of day; every weakening tried fails a test.
circuit.effective_template is the one rule for a circuit's template as the panel has it: its template with the circuit's recorder link, its overrides (OVERRIDDEN_PROFILE_KEYS into the energy profile, any other into the template) and its own breaker_rating, which replaces the template's under either key. SimulatedCircuit, the definition (every per-circuit read in spec_generator, through _template_of) and validation all read a circuit through it; validation and the PV binding use its untyped form, effective_settings, since they read a config before it is typed. The runtime's EVSE feeds take the spec generator's circuits_for_device_type, the list the manifest is built from, in place of a copy of it. So a breaker rating edited in the dashboard, which writes the circuit's own, is published, where the panel went on publishing the template's while the dashboard showed the edit. A template rating every circuit on it replaces is read by nothing and no longer refused, and an override named energy_profile that is no mapping is refused by name. SimulatedCircuit's two type: ignore comments on the override routing go. Every fuzz stays clean, and each weakening of the rule fails a test.
… each circuit as published A generated template's serial was its capture's, so the r202645 capture of a panel took a serial its r202639 capture's template had not: a panel run from ref_MAIN_32 before upgrading PanelBench and after it was two panels to Home Assistant, not one upgraded. A later capture now takes its earlier one's serial (reference_templates._SUCCEEDS, from which the retired captures follow), as a panel keeps its serial through a firmware upgrade. ref_MAIN_32 stays sim-main32_r202639 on its r202645 capture, with the same 16 circuit ids, names and spaces, so switching from main's PanelBench to this one under a running Home Assistant exercises the integration's migration. The dashboard's view of a circuit, and the lock guards that read it, take the circuit as the panel has it (effective_settings), so a hand-written override or circuit rating shows as published. A breaker rating must be above 0. Tests pin the recorder link, the device type the manifest and PV binding read, the dashboard view and the serial; each weakening fails one.
The hook runs mypy in its own environment from its additional_dependencies, which still pinned ebus-panel-sim 0.10.0b2, so the lint job failed on TickInputs' bess_pv, a keyword only 0.11.0 has. The pin now matches pyproject's, and a test fails whenever an exact pin in the hook differs from the project's, as this one had since before 0.11.0.
… segment circuit_number on a circuit or meter outside the panel, and panel_config.device_id_hex, as device_numbers reads them from the ids a hardware 3.0 panel publishes; validation takes a whole number above 0 used once on a panel, and 16 lowercase hex digits.
… them
instance_ids.circuit_device_id, outside_meter_device_id and lugs_device_ids(config) are the one naming rule: a numbered hardware 3.0 panel names a circuit circuit-<n> and a remote CT remote-ct-<n> before release 202645, and {serial}-{hex16}-1-16-<n>, -1-42-<n> and lugs -1-21-2 (downstream -1-21-1, a guess no capture shows) from it, a firmware naming no release being current. A MAIN 32, and a config that records no numbers, keep the hashed ids, so they publish as before. The manifest, a tandem's lists, the battery, PV and EVSE feeds, each tick's circuit powers, the runtime's id map and validation's reasons all name devices through it.
A clone records each circuit's circuit_number, its remote CT's, and the panel's device_id_hex from the ids the source panel publishes, either release's, so it names them as the panel does. A definition import drops them: a definition's ids are masked and renumbered in space order. A circuit and a remote CT may share a number, as SPAN numbers the two apart (a MAIN 16 has circuit-3 and remote-ct-3), so numbers are unique among each, and a circuit added takes the next circuit number.
reference_template numbers each circuit, the remote CT and the panel from the capture's tree, since a definition's ids are masked and renumbered: a circuit by its spaces, and its name where a tandem's share them, the remote CT by its id's trait onto the template's one outside meter, and the panel's 16-hex segment. Every hardware 3.0 template whose capture keeps its ids publishes its circuits, remote CT and lugs under them, with the template's serial for the panel's root.
…es, for the pre-release PRE-RELEASE ONLY. _BEFORE_TEMPLATES writes the captures _SUCCEEDS retires again as ref_MAIN_32_R202639, ref_UNKNOWN_16_R202639, ref_MAIN_40_R202639 and ref_MLO_48_R202639, each its panel before the upgrade to release 202645 with the serial its successor keeps, so running one and then its successor exercises a consumer's migration across the upgrade. One table, to strip before a production release; PanelBench refuses a second panel with a running serial, so only one of a pair runs at a time.
…umber add_entity and add_entity_from_tabs give a circuit added to a panel that numbers its circuits the lowest number none of them uses, so it publishes as the panel names its circuits; on a panel with no numbers it takes none, as before.
The README's Device ids section, DEVELOPER.md's circuit_number and device_id_hex schema lines, and both changelogs' Added entries. The pre-release's before templates are left out, as they are stripped before a production release.
…n one broker are refused Validation translated the emitter's reasons by replacing one device id at a time, so circuit-1 rewrote the head of circuit-12 and a refusal named the wrong circuit; it now replaces whole ids in one pass, longest first. A hardware 3.0 panel before release 202645 names its circuits circuit-<n> under no serial, as its own broker lets a real one, so two such panels on PanelBench's one broker claimed each other's circuits' topics; a start whose device ids a running panel already publishes is now refused (SharedDeviceError), as a running serial is, and the serial refusal also says to stop the other panel.
Reverts 0b2c5c8: the release-named ref_*_R202639 templates were for testing the SpanPanel integration's migration across release 202645, which passed, and do not ship. The retired captures again get no template; the serial a later capture keeps and the refusal of a second panel publishing a running panel's device ids stay.
Sets the version to 2.9.0 and gives both changelogs their 2.9.0 entry: PanelBench on ebus-panel-sim 0.11.0, its generated templates each panel's latest capture, on SPAN release 202645 where there is one, and hardware 3.0 panels publishing the device ids real ones do. The changelogs and the README now say that a panel whose device ids another running panel publishes is refused, that the span-panel integration carries a hardware 3.0 panel's entities across the change of ids from v2.3.3, and that the hardware 3.0 templates' circuits come back to Home Assistant as new devices, since their ids changed; DEVELOPER.md and instance_ids name the numbered ids beside the hashed ones.
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.
Sets the version to 2.9.0 and gives both changelogs their 2.9.0 entry; merging to
mainbuilds and publishes the 2.9.0 add-on image.Supersedes #38: this branch carries its
ebus-panel-sim0.11.0 adoption unchanged, followed by the device ids a real hardware 3.0 panel publishes, and the release.Testing
uv run pytest -q: 1383 passed, 6 xfailed.ruff check,ruff format --check,mypy --strictand the hooks pass.ValueError, and every config it accepted started a panel and ticked.v2.3.3b1and Core 2026.11.2.2.9.0 — SPAN release 202645, and the device ids real panels publish
PanelBench runs on
ebus-panel-sim0.11.0. Its generated templates are each panel's latest capture, on SPAN release 202645 where the emitter has one,and a hardware 3.0 panel publishes the device ids a real one does. The shipped templates are all
ref_templates: the two tandem templates are renamed,and the three
default_MAIN_templates are removed. Thespan-panelintegration carries a hardware 3.0 panel's entities across the change of ids atrelease 202645 from v2.3.3 (in pre-release as v2.3.3b1).
Added
which it keeps while the ids around them change at release 202645:
circuit-<n>andremote-ct-<n>before it,{serial}-{hex16}-1-16-<n>,-1-42-<n>and-1-21-2from it. A circuit records its number ascircuit_number, and the panel its segment aspanel_config.device_id_hex, so the idsfollow
firmware_versionacross the release. A template of a hardware 3.0 capture that keeps its panel's ids and a clone of such a panel record them asthe panel publishes them, and a circuit added in the dashboard takes the lowest number its panel's circuits leave. A MAIN 32, whose ids no release
changes, and a config that records no numbers publish as before. Since nothing scopes those ids to the panel before release 202645, a panel whose
device ids another running panel already publishes is refused at start, as one with a running serial is. The
span-panelintegration carries a panel'sentities across the change from v2.3.3 (in pre-release as v2.3.3b1).
ref_MAIN_32_CASCADE, a MAIN 32 fed by another panel, with a battery;ref_MAIN_16_BESS, a MAIN 16 with a hybrid battery and an EVSE; andref_MLO_48_HYBRID, an MLO 48 whose battery's inverter takes its solar.bess.inverter_type: hybrid(defaultac-coupled) says the battery's own inverter also takes PV, on its DC side, andbess.pv_array.nameplate_capacity_wrates the array; it produces by the panel's location and weather and joinspower-flows/pvand the solar the battery'sdispatch sees, live and in the Model view. A clone writes a battery hybrid where the emitter's capture reads it so: the panel publishes
power-flows/pvand nothing but its one battery could bring it solar. An imported definition keeps its battery's coupling. A battery change the running panel cannot
take, a coupling changed or the battery enabled, disabled or replaced, restarts the panel, since the emitter builds its battery at start. Off grid the
array is not yet curtailed to what the load and battery can take, as the PV circuits are not.
panel_config.feedthrough(defaulttrue). Withfalse, a hardware 3.0 panel on SPAN release 202645, or on a firmware naming none, publishes nodownstream lugs, as such a panel without a feedthrough module does; release 202639 and a MAIN 32 publish both. A clone of a panel publishing its upstream
lugs alone writes
false. Alugs.downstreamsection for lugs the panel does not publish is refused, and so is a battery placedDOWNSTREAMof them.Changed
ref_MAIN_32_TANDEMS.yamlandref_MLO_48_TANDEMS.yaml, formerlydefault_MAIN_32_TANDEMS.yamlanddefault_MLO_48_TANDEMS.yaml. They are the two tracked templates; the others are generated at every start from the emitter's reference captures.ref_MAIN_32_TANDEMSnames its panelSPAN Panel eBus Adapterwithdisplay_name, and every working-panel test now runs on it.ref_MAIN_32.yamlfirst, else the firstref_*.yaml.ref_file is a template. Adefault_*.yamlleft in a config directory by an earlier release is editable, andrun.shneither refreshes nordeletes it;
run.shrefreshes the shippedref_files."template".
default_*files as they were. An install whose.last_confignamesdefault_MAIN_16.yamlordefault_MAIN_40.yamlstill hasthat file and resumes it, and the integration's positions warning continues. A leftover
default_MAIN_32_TANDEMS.yamlordefault_MLO_48_TANDEMS.yamlkeeps the serial its
ref_twin has (sim-32t-tandems-001,sim-48t-tandems-001), so running both starts one and the other is refused with anerrorbadge naming the serial. Delete the leftover
default_*files, or clone theref_equivalent.DEVELOPER.mdis the regenerated one: 452 match, 4 divergence, 69 extensionand 1327 omission.
ebus-panel-sim0.11.0, which publishes some things differently, as its CHANGELOG records. The lugs'meter/current-aandmeter/current-btake each space's leg from its row and net each leg's current. On hardware 3.0 the circuits of one tandem or quad each publish thebreaker's one reading, and a relay or priority set on one over MQTT reaches them all. A battery's
info/nameplate-capacityhas one decimal place there (27.0).A hardware 3.0 panel on release 202645, or on a firmware naming none, publishes each circuit's
connection/connection-point.both of which 0.10.0 started on, and PanelBench refuses them when it loads, edits or saves a config, as it does all the emitter refuses (see Fixed). The
dashboard applies a relay toggle, or a priority or relay-behaviour edit, on one circuit of a tandem or quad to every circuit on it, since the breaker has
one relay; only a circuit whose own value changes leaves recorder replay. A clone, and a refresh of its energy from the source panel, writes a tandem's or
quad's one register to each of its circuits: the largest any of them publishes, as the emitter's capture takes it, since they read one meter a moment
apart.
ref_MAIN_32,ref_UNKNOWN_16,ref_MAIN_40andref_MLO_48, wherethey were the release 202639 captures of the same panels.
ref_MAIN_40is that panel recommissioned, with 38 circuits and no battery, where it had 5 anda battery fed by a circuit, and
ref_UNKNOWN_16adds an EVSE. Each keeps its serial (sim-main32_r202639,sim-r202639-a,sim-r202639-candsim-r202639-e), as a panel keeps its serial through a firmware upgrade, so Home Assistant keeps a panel run from one of them across the upgrade ofPanelBench.
ref_MAIN_32keeps its devices' ids too. The hardware 3.0 templates (ref_UNKNOWN_16,ref_MAIN_16,ref_MAIN_40,ref_MLO_24andref_MLO_48) now publish their panels' own ids for their circuits and remote CT, and on release 202645 for their lugs, where they published hashed andserial-scoped ones, so Home Assistant sees those devices as new.
pvsection listinginvertersmust setenabled, andpv.enabledmust betrueorfalse. The inverters no circuit feeds publish only whilepv.enabledistrue, and a config listing them without it loaded and published none of them; it is now refused, saying to setenabledtotruetopublish them or
falseto keep them off. Anenabledthat is empty or quoted, such as"false", which published the opposite of what it says, is refusedtoo.
Fixed
from 1, so the first circuit added to a clone of
ref_MAIN_40, or to one ofref_MAIN_16once a circuit was removed, landed on space 1 and drew theintegration's positions warning. A clone or imported definition lists only those spaces as unmapped, and a clone of a MAIN 16 or MAIN 40 takes the model's
last space, 24 or 48, as its
total_tabs, where it took 16 or 40 and resized itself from its circuits, with a warning, when one sat higher. A clone whosecircuits sit outside its model's spaces says so in the log. The spaces follow a config's
modelwherever it names one, so a clone an earlier release sized40 starts at 9 too; a config with no
model, such as one sized 16 or 40 by its count of spaces, keeps spaces 1 tototal_tabs, as before.configs/whole, so one built from a working checkout carried thegenerated
ref_templates, clones, history databases, andconfigs/.secrets/andconfigs/rates/, which hold credentials and API keys..dockerignorenowkeeps all but the presets and the two tracked templates out, as a build from git has it, and leaves local state and caches out of the build context; images
built by CI were not affected.
with none, so a panel with one would not start; it is now a what-if device, which the Model view models and the panel does not publish, nor anything it
would feed. A
pv.feedorbess.feednaming one is refused.publishing its template's. The engine, the panel's definition, validation and the dashboard's view of a circuit now all read it by its template with
the circuit's overrides and own rating over it, so what is checked is what is modelled, published and shown. A hand-written override outside the
energy profile, such as
relay_behavior, which only the engine applied, is published too, and a rating must be above 0.failed to start. PanelBench builds the emitter as a panel's start does, so whatever the emitter refuses, such as an
unvaluedpath the device's profiledeclares none of, is refused with its reason, each circuit and meter named by its
id. A section or setting of the wrong shape, such aslugs: x,bess.charge_hours: 5or a template'spower_range: {min: 50, max: 150}, is refused by name, a circuit'soverridesas they leave its template, wherethe panel failed to start or tick with an error naming nothing; a number may still be quoted where it is read as one.
A
total_tabsthat is no SPAN panel's size, or a latitude or longitude off the globe, which the dashboard's form allowed, and a battery of 0 kWh or adischarge efficiency of 0, which failed on its first tick, are refused. A template no circuit uses is read by nothing, so it is checked for its shape
alone. A
bess.feednaming no circuit, which published a battery fed by nothing, is refused, and deleting the circuit it names in the dashboard dropsit, as it drops a
pv.feed.ran from the moment the panel started on the real clock. A panel set to a simulated time could read a cycling load on in one run and off in the next, and
a panel no longer starts every cycling load at the start of its on phase.
Removed
default_MAIN_16.yaml,default_MAIN_32.yamlanddefault_MAIN_40.yaml, whichref_MAIN_16,ref_MAIN_32andref_MAIN_40cover. The SpanPanelintegration's client, span-panel-api, places MAIN 16 at spaces 9 to 24 and MAIN 40 at 9 to 48, and
default_MAIN_16anddefault_MAIN_40numbered theirspaces from 1, so the integration logged "Panel model ... has breaker positions ..., but its circuits occupy spaces ..." for both. Each range is the one a
reference capture of that model shows: a MAIN 16's circuits on spaces 9 to 24, and a MAIN 40's on 9 to 48.