Skip to main content

hvac-crossover

Intelligent multi-source HVAC efficiency optimizer and thermodynamic crossover coordinator.

PyPI version License: MIT

hvac-crossover is a pure Python, zero-external-dependency library designed to optimize multi-source climate control (such as hybrid inverter heat pumps paired with condensing hydronic boilers). It solves the physical, economic, and constraint-arbitration challenges of running disparate heating and cooling systems together.

Key Features

  • Thermodynamic Break-Even ($COP^*$): Dynamic marginal delivered cost ranking ($/MMBtu) computed from live electric ($P_{\text{elec}}$) and gas ($P_{\text{gas}}$) utility tariffs against manufacturer multi-point performance curves.
  • Setback Recovery vs. Plateau Maintenance: Automatically engages high-capacity boilers for large recovery pulls ($\Delta T \ge 3.0^\circ\text{F}$) while handing off steady-state maintenance ($\Delta T \le 1.0^\circ\text{F}$) to modulating heat pumps in their peak efficiency range.
  • Refrigerant Mode Arbitrator: Prevents multi-split outdoor units (ODUs) from faulting due to opposing heat/cool calls across shared-refrigerant indoor heads, safely diverting conflicting calls to alternate heat sources.
  • Hydronic Shared-Zone Arbitration: Resolves $N:M$ bedroom baseboard couplings (primary/secondary arbitration) and supports 1:1 smart radiator valves (TRVs).
  • Boiler Short-Cycling Derating: Accounts for burner turndown limits and cycling penalties when zone calls drop below minimum boiler firing rates.

Installation

pip install hvac-crossover

Quick Start

from hvac_crossover import (
    ProducerProfileFactory,
    Space,
    MiniSplitHead,
    HydronicEmitter,
    SystemTopology,
    TariffSchedule,
    DualFuelCoordinator,
    ComfortRange,
)

# 1. Define Equipment Topology
odu = ProducerProfileFactory.load_from_json(
    "generic/cold_climate_heat_pump.json", producer_id="odu1", name="Cold-Climate HP", nominal_btu=30000.0
)
boiler = ProducerProfileFactory.load_from_json(
    "generic/modulating_condensing_boiler.json", producer_id="alta150", name="Mod-Con Boiler", nominal_btu=150000.0
)

loft = Space(
    id="loft",
    name="3rd Floor Loft",
    emitters=[
        MiniSplitHead(id="loft_head", producer_id="odu1", nominal_btu=12000.0),
        HydronicEmitter(id="loft_baseboard", producer_id="alta150", zone_id="z3"),
    ],
)

topology = SystemTopology(producers=[odu, boiler], spaces=[loft])
coordinator = DualFuelCoordinator(topology)

# 2. Evaluate Live Conditions
plan = coordinator.evaluate_conditions(
    outdoor_temp=36.0,
    tariffs=TariffSchedule(gas_cost_per_therm=1.88, electric_cost_per_kwh=0.25),
    spaces={"loft": {"current": 66.5, "heat_to": 68.0, "cool_to": 74.0}},
)

directive = plan.space_directives["loft"]
print(f"Action: {directive.action.value}")
print(f"Active Emitter: {directive.active_delivery_unit_id}")
print(f"Economic Crossover Temp: {plan.diagnostics.economic_crossover_temp}°F")

Development & Testing

git clone https://github.com/dlarrick/hvac-crossover.git
cd hvac-crossover
python3 -m unittest discover -s tests

License

MIT License. See LICENSE for details.

Metadata

Release files for hvac-crossover 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hvac-crossover 0.2.0
File Size Uploaded Provenance Actions
hvac_crossover-0.2.0.tar.gz 43.0 kB With provenance Details for hvac_crossover-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hvac-crossover 0.2.0
File Interpreter ABI Platform Actions
hvac_crossover-0.2.0-py3-none-any.whl Python 3 none any Details for hvac_crossover-0.2.0-py3-none-any.whl

Total release size: 82.1 kB

Release files / hvac_crossover-0.2.0.tar.gz

Download URL hvac_crossover-0.2.0.tar.gz
Size 43.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fa2588f588887c85e23b934d57fda12948c7b1bd4b66cf7ef394e966d08bf367
BLAKE2b-256 checksum
How to use checksums
42a0b7157ba764c48f80916f025d9b62abdecccd5877767008b2e5ce3e1e9a7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / hvac_crossover-0.2.0-py3-none-any.whl

Download URL hvac_crossover-0.2.0-py3-none-any.whl
Size 39.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7ef02c135a1bab6b26ff03c8b4657a8a4ae45326572766f2c90fce3a56133b1
BLAKE2b-256 checksum
How to use checksums
077e1a71ad5abf1a2b6b8519d165198aa725c2b6e0dff6ea655e6e9a234833d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Security for hvac-crossover 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hvac_crossover-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page