Selling surplus rooftop solar power to the grid for 0.06–0.08 €/kWh while paying 0.30+ €/kWh at night leaves money on the table. HashHaven OS v1.1.0 ships with a zero-dependency 23-provider Solar PV & Dynamic Electricity Tariff Engine (solar_adapters.py) built directly into the RAM-only rig daemon.
Instead of cobbling together fragile cron scripts, your mining rigs poll your local inverter, smart meter, or spot-price API directly over LAN/HTTPS and start or pause mining automatically — with built-in anti-oscillation hysteresis and Battery SoC Reserve protection.
Compare your exact feed-in tariff against mining revenue per kWh in the HashHaven Solar ROI Calculator.
All 23 Live Supported Providers in HashHaven OS v1.1.0
Tier 1 — 14 Local HTTP / REST / JSON Adapters (LAN)
| Provider ID | Hardware / Ecosystem | Default Port | Auth / Notes |
|---|---|---|---|
beegy | Beegy Energy Manager | 8080 | No auth; local LAN live PV, grid, load & battery |
fronius | Fronius Solar API v1 (GEN24 / Symo) | 80 | Enable Solar API in inverter web UI |
shelly_pro_3em | Shelly Pro 3EM (Gen2/3 RPC) | 80 | Optional password + invert_sign flag |
shelly_3em | Shelly 3EM (Gen1 REST) | 80 | Optional auth + invert_sign |
tasmota_hichi | Tasmota / Hichi IR (SML/OBIS) | 80 | Custom json_path + invert_sign |
evcc | evcc Local REST API | 7070 | Reads existing evcc grid/PV/battery state |
home_assistant | Home Assistant REST API | 8123 | Long-Lived Access Token + sensor entity IDs |
opendtu | OpenDTU / AhoyDTU (Hoymiles) | 80 | Ideal for balcony PV + fixed_base_load_w |
sonnen | sonnenBatterie REST API v2 | 80 | Read-only API token (Auth-Token) |
fenecon_openems | FENECON / OpenEMS (FEMS REST) | 80 | FEMS REST username + password |
enphase | Enphase IQ Gateway / Envoy (D7+) | 443 | Local HTTPS bearer token |
kostal | Kostal PLENTICORE / PIKO IQ | 80 | Local REST / unit ID |
iobroker | ioBroker Simple-API | 8087 | Datapoints dp_pv, dp_grid, dp_load, dp_batt, dp_soc |
generic_json | Generic HTTP/JSON Endpoint | 80 | Custom URL + dot-notation JSON paths |
Tier 2 — 6 Direct Modbus TCP / SunSpec Adapters (LAN)
| Provider ID | Inverter / EMS | Default Port | Config |
|---|---|---|---|
sunspec | Generic SunSpec (Modbus TCP) | 502 | Host + unit_id + invert_sign |
sma_modbus | SMA Tripower / Sunny Boy / SHM | 502 | Enable Modbus TCP in Sunny Explorer / WebUI |
huawei_modbus | Huawei SUN2000 / LUNA2000 | 502 | SDongleA-FE Modbus TCP (Unrestricted) |
sungrow_modbus | Sungrow SHxxRT / SG Series | 502 | WiNet-S or direct LAN port (unit_id=1) |
solaredge_modbus | SolarEdge SunSpec Modbus TCP | 1502 | Enable Modbus TCP in SetApp |
victron_modbus | Victron Venus OS / Cerbo GX | 502 | Enable Modbus TCP under Settings → Services |
Tier 3 — 3 Dynamic Electricity Tariff APIs (HTTPS)
| Provider ID | Market Coverage | Auth | Key Parameters |
|---|---|---|---|
tibber | Tibber GraphQL Spot Prices & Pulse | API Token | max_price_ct_kwh (auto-mine below price cap) |
awattar | aWATTar (DE / AT EPEX Spot) | Free (No key) | bidding_zone, grid_fee_ct_kwh, vat_pct, max_price_ct_kwh |
energy_charts | Energy-Charts Fraunhofer ISE (16 EU zones) | Free (No key) | Zones: DE-LU, AT, CH, FR, NL, BE, DK1, DK2, NO1, NO2, SE3, SE4, PL, CZ, IT-North, ES |
Anti-Oscillation Engineering (Stop Cloud-Flicker Cycling)
Without hysteresis, a passing cloud turns a 650 W rig off and on every 15 seconds, stressing PSUs and dropping mining shares. HashHaven OS solves this cleanly using three coordinated safeguards:
- Rig Watt Threshold (
solar_threshold_w): Minimum surplus needed to start the rig (e.g., set700 Wfor a650 W9× P106-090 rig). - Hysteresis Band (
hysteresis_w, recommended150–250 W): Once running, the miner stays active even if grid import briefly dips inside the band — the engine accounts for the rig's own live power draw so it never "chases its own shadow". - Minimum State Hold (
min_state_hold_s, recommended60–180 s): Locks ON/OFF transitions for at leastNseconds whilepoll_interval_s(15 s) continuously monitors live telemetry.
Battery SoC Reserve Guard
If you own a home battery (Beegy, Fronius BYD, sonnen, FENECON, Huawei LUNA2000, Victron), configure:
include_battery_charge = trueif you want mining to absorb excess PV before the battery fills, ORfalseto fill the battery first.min_batt_soc_pct(e.g.,80%): Mining pauses automatically whenever battery state-of-charge falls below your reserve floor so your house stays powered overnight.
Download the OS image or inspect the open Python engine at /downloads and follow the full setup walkthrough in the HashHaven OS Guide.