Complete Solar PV & Dynamic Tariff Mining Guide: All 23 Supported Inverters, Smart Meters, Anti-Oscillation & Battery SoC Reserve

KE Started by KennySSL · 2026-11-24 18:43 UTC
0 Replies 23 Views ♥ 0 Likes
KE
KennySSL ADMIN OP
2026-11-24 18:43 UTC #1

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 IDHardware / EcosystemDefault PortAuth / Notes
beegyBeegy Energy Manager8080No auth; local LAN live PV, grid, load & battery
froniusFronius Solar API v1 (GEN24 / Symo)80Enable Solar API in inverter web UI
shelly_pro_3emShelly Pro 3EM (Gen2/3 RPC)80Optional password + invert_sign flag
shelly_3emShelly 3EM (Gen1 REST)80Optional auth + invert_sign
tasmota_hichiTasmota / Hichi IR (SML/OBIS)80Custom json_path + invert_sign
evccevcc Local REST API7070Reads existing evcc grid/PV/battery state
home_assistantHome Assistant REST API8123Long-Lived Access Token + sensor entity IDs
opendtuOpenDTU / AhoyDTU (Hoymiles)80Ideal for balcony PV + fixed_base_load_w
sonnensonnenBatterie REST API v280Read-only API token (Auth-Token)
fenecon_openemsFENECON / OpenEMS (FEMS REST)80FEMS REST username + password
enphaseEnphase IQ Gateway / Envoy (D7+)443Local HTTPS bearer token
kostalKostal PLENTICORE / PIKO IQ80Local REST / unit ID
iobrokerioBroker Simple-API8087Datapoints dp_pv, dp_grid, dp_load, dp_batt, dp_soc
generic_jsonGeneric HTTP/JSON Endpoint80Custom URL + dot-notation JSON paths

Tier 2 — 6 Direct Modbus TCP / SunSpec Adapters (LAN)

Provider IDInverter / EMSDefault PortConfig
sunspecGeneric SunSpec (Modbus TCP)502Host + unit_id + invert_sign
sma_modbusSMA Tripower / Sunny Boy / SHM502Enable Modbus TCP in Sunny Explorer / WebUI
huawei_modbusHuawei SUN2000 / LUNA2000502SDongleA-FE Modbus TCP (Unrestricted)
sungrow_modbusSungrow SHxxRT / SG Series502WiNet-S or direct LAN port (unit_id=1)
solaredge_modbusSolarEdge SunSpec Modbus TCP1502Enable Modbus TCP in SetApp
victron_modbusVictron Venus OS / Cerbo GX502Enable Modbus TCP under Settings → Services

Tier 3 — 3 Dynamic Electricity Tariff APIs (HTTPS)

Provider IDMarket CoverageAuthKey Parameters
tibberTibber GraphQL Spot Prices & PulseAPI Tokenmax_price_ct_kwh (auto-mine below price cap)
awattaraWATTar (DE / AT EPEX Spot)Free (No key)bidding_zone, grid_fee_ct_kwh, vat_pct, max_price_ct_kwh
energy_chartsEnergy-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:

  1. Rig Watt Threshold (solar_threshold_w): Minimum surplus needed to start the rig (e.g., set 700 W for a 650 W 9× P106-090 rig).
  2. Hysteresis Band (hysteresis_w, recommended 150–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".
  3. Minimum State Hold (min_state_hold_s, recommended 60–180 s): Locks ON/OFF transitions for at least N seconds while poll_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 = true if you want mining to absorb excess PV before the battery fills, OR false to 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.