{"id":47201328,"url":"https://github.com/shopf/dyness_battery","last_synced_at":"2026-05-10T13:06:45.502Z","repository":{"id":344049768,"uuid":"1180252660","full_name":"shopf/dyness_battery","owner":"shopf","description":"Home Assistant Community Integration for Dyness Battery Storage","archived":false,"fork":false,"pushed_at":"2026-04-29T16:16:52.000Z","size":73,"stargazers_count":11,"open_issues_count":5,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-29T16:30:45.297Z","etag":null,"topics":["battery","cloud-api","dyness","energy-storage","hacs","home-assistant","home-assistant-integration"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shopf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-12T21:23:44.000Z","updated_at":"2026-04-29T16:14:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/shopf/dyness_battery","commit_stats":null,"previous_names":["shopf/dyness_battery"],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/shopf/dyness_battery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopf%2Fdyness_battery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopf%2Fdyness_battery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopf%2Fdyness_battery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopf%2Fdyness_battery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shopf","download_url":"https://codeload.github.com/shopf/dyness_battery/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shopf%2Fdyness_battery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32487739,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["battery","cloud-api","dyness","energy-storage","hacs","home-assistant","home-assistant-integration"],"created_at":"2026-03-13T13:04:30.141Z","updated_at":"2026-05-01T07:02:02.901Z","avatar_url":"https://github.com/shopf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dyness Battery – Home Assistant Integration\n\n[![HACS Custom](https://img.shields.io/badge/HACS-Custom-orange.svg)](https://github.com/hacs/integration)\n[![GitHub Release](https://img.shields.io/github/release/shopf/dyness_battery.svg)](https://github.com/shopf/dyness_battery/releases)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n\nEine Community-Integration für Home Assistant für **Dyness Batteriespeicher** über die Dyness Cloud API.\n\n\u003e **Hinweis / Note:** Diese Integration nutzt die Dyness Open API (Cloud). Eine Internetverbindung ist erforderlich. Daten werden alle 5 Minuten aktualisiert (API-Limit).\n\u003e This integration uses the Dyness Open API (Cloud). An internet connection is required. Data is updated every 5 minutes (API limit).\n\n---\n\n## 🇩🇪 Deutsch\n\n### Unterstützte Geräte\n\n| Gerät | Status |\n|-------|--------|\n| Dyness Junior Box | ✅ Getestet |\n| Dyness Tower (non-pro) | ✅ Sollte funktionieren (Community-getestet) |\n| Dyness Tower T14 | ✅ Sollte funktionieren (Community-getestet) |\n| Dyness DL5.0C | ✅ Sollte funktionieren (Community-getestet) |\n| Dyness PowerHaus | ✅ Sollte funktionieren (Community-getestet) |\n| Dyness Stack100 | ✅ Sollte funktionieren (Community-getestet) |\n| Dyness PowerBox Pro | ✅ Sollte funktionieren (Community-getestet) |\n| Dyness Cygni 10.0HS-M8 | ✅ Sollte funktionieren (Community-getestet) |\n| Andere Dyness-Modelle mit WiFi-Dongle | ⚠️ Nicht getestet – Feedback willkommen |\n\n\u003e Die Integration erkennt das Gerät automatisch über die API und registriert nur die Sensoren, die für das jeweilige Gerät verfügbar sind.\n\n### Verfügbare Sensoren\n\nDie folgenden Sensoren sind für alle Geräte verfügbar:\n\n| Sensor | Beschreibung | Einheit |\n|--------|-------------|---------|\n| Ladestand (SOC) | Aktueller Ladestand | % |\n| Leistung | Lade-/Entladeleistung (+ = laden, − = entladen) | W |\n| Strom | Lade-/Entladestrom | A |\n| Batteriestatus | Charging / Discharging / Standby | – |\n\nZusätzliche Sensoren werden automatisch aktiviert, sofern das Gerät die Daten liefert:\n\n| Sensor | Beschreibung | Einheit | Junior Box | Tower | DL5.0C | PowerHaus |\n|--------|-------------|---------|:---:|:---:|:---:|:---:|\n| Pack-Spannung | Gesamtspannung des Akkupacks | V | ✅ | – | ✅ | ✅ |\n| Batteriezustand (SOH) | State of Health | % | ✅ | ✅ | ✅ | ✅ |\n| Temperatur Max | Höchste Zellentemperatur | °C | ✅ | ✅ | ✅ | ✅ |\n| Temperatur Min | Niedrigste Zellentemperatur | °C | ✅ | ✅ | ✅ | ✅ |\n| Zellspannung Max | Höchste Einzelzellspannung | V | ✅ | ✅ | ✅ | ✅ |\n| Zellspannung Min | Niedrigste Einzelzellspannung | V | ✅ | ✅ | ✅ | ✅ |\n| Zellspannungsdifferenz | Max − Min Zellspannung (Gesundheitsindikator) | mV | ✅ | ✅ | ✅ | ✅ |\n| Heute geladen | Geladene Energie heute | kWh | ✅ | – | ✅ | – |\n| Heute entladen | Entladene Energie heute | kWh | ✅ | – | ✅ | – |\n| Gesamt geladen | Kumuliert geladene Energie | kWh | ✅ | ✅ | ✅ | – |\n| Gesamt entladen | Kumuliert entladene Energie | kWh | ✅ | – | ✅ | – |\n| Ladezyklen | Anzahl Batteriezyklen | – | – | ✅ | – | ✅ |\n| Nutzbare Kapazität | Kapazität × SOH | kWh | ✅ | ✅ | ✅ | ✅ |\n| Verbleibende Energie | Nutzbare Kapazität × SOC | kWh | ✅ | ✅ | ✅ | ✅ |\n| MOSFET-Temperatur | MOSFET Temperatur | °C | ✅ | – | ✅ | ✅ |\n| BMS-Temperatur Max | BMS Temperatur Max | °C | ✅ | – | ✅ | ✅ |\n| BMS-Temperatur Min | BMS Temperatur Min | °C | ✅ | – | ✅ | ✅ |\n| Alarmstatus | Gesamtalarm (0 = OK) | – | ✅ | – | ✅ | ✅ |\n\nFolgende Sensoren sind unter **Diagnose** auf der Geräteseite verfügbar:\n\n| Sensor | Beschreibung |\n|--------|-------------|\n| Letzte Aktualisierung | Zeitstempel der letzten Datenübertragung |\n| Batteriekapazität | Installierte Kapazität laut API |\n| Verbindungsstatus | Online / Offline |\n| Betriebsstatus | z.B. RunMode, StandBy, Charging |\n| Firmware-Version | Aktuelle Firmware |\n\n### Voraussetzungen\n\n1. Dyness Batterie ist bereits in der **Dyness App** eingerichtet und online\n\n### Schritt 1: API-Zugangsdaten im Dyness Portal erstellen\n\n1. Öffne **Dyness Benutzer Smart Monitoring** [https://ems.dyness.com/login](https://ems.dyness.com/login) in deinem Browser\n2. Melde dich mit deinem Dyness-Konto an (dasselbe wie in der App)\n3. Wähle im Menü links **Entwicklerzentrum** und dann **API-Verwaltung**\n4. Klicke auf **API Key erstellen**\n5. Notiere **App ID** und **App Secret** – das Secret wird nur einmal angezeigt!\n\n### Installation\n\n#### Via HACS (empfohlen)\n\n1. Öffne HACS in Home Assistant\n2. Klicke auf **Integrationen** → **⋮** → **Benutzerdefinierte Repositories**\n3. Repository-URL: `https://github.com/shopf/dyness_battery` — Kategorie: **Integration**\n4. Suche nach **Dyness Battery** und installiere\n5. Home Assistant neu starten\n\n#### Manuelle Installation\n\n1. Lade die ZIP von [Releases](https://github.com/shopf/dyness_battery/releases) herunter\n2. Entpacke und kopiere `custom_components/dyness_battery/` nach `config/custom_components/`\n3. Home Assistant neu starten\n\n### Konfiguration\n\n1. **Einstellungen** → **Geräte \u0026 Dienste** → **Integration hinzufügen**\n2. Nach **Dyness Battery** suchen\n3. Nur **API ID** und **API Secret** eintragen — das Gerät wird automatisch erkannt\n\n| Feld | Beschreibung | Beispiel |\n|------|-------------|---------|\n| API ID | Dyness API ID | `abc123xyz` |\n| API Secret | Dyness API Secret | `secretkey456` |\n\n\u003e **Mehrere Batterien:** Bei mehreren Batterien auf einem Account wird automatisch die erste erkannte BMS verwendet. Für weitere Batterien einfach die Integration erneut hinzufügen — dieselben API-Zugangsdaten, das Gerät wird separat erkannt.\n\n### API Rate Limit \u0026 Scan-Intervall\n\nDie Dyness Cloud API erlaubt ca. 60 Anfragen pro Stunde. Die Integration passt das Update-Intervall automatisch an die Anzahl der erkannten Batteriemodule an:\n\n| Module | Intervall |\n|--------|-----------|\n| 1–2 | 5 Minuten |\n| 3–4 | 10 Minuten |\n| 5+ | 15 Minuten |\n\n### Bekannte Einschränkungen\n\n- **Nur Monitoring** – Steuerung (Ladezeiten, SOC-Grenzen) wird von der API nicht unterstützt\n- **5-Minuten-Intervall** – Die API liefert Daten in 5-Minuten-Schritten\n- **Internetabhängig** – Keine lokale Verbindung (WiFi-Dongle ist intern verbaut)\n\n### Neues Modell hinzufügen\n\nDu hast ein anderes Dyness-Modell mit WiFi-Dongle und möchtest es testen? Erstelle ein [Issue](https://github.com/shopf/dyness_battery/issues) mit folgenden Informationen:\n\n- Modellbezeichnung (z.B. `Tower T14`)\n- Ausgabe des API-Testscripts (siehe `tools/dyness_test.py`)\n\n### Community \u0026 Support\n\n| | |\n|---|---|\n| 💬 **Fragen \u0026 Ideen** | [GitHub Discussions](https://github.com/shopf/dyness_battery/discussions) |\n| 🐛 **Fehler melden** | [GitHub Issues](https://github.com/shopf/dyness_battery/issues) |\n| 🔌 **Neues Gerät** | Issue erstellen mit Ausgabe von `dyness_test.py` |\n\n---\n\n## 🇬🇧 English\n\n### Supported Devices\n\n| Device | Status |\n|--------|--------|\n| Dyness Junior Box | ✅ Tested |\n| Dyness Tower (non-pro) | ✅ Should work (community-tested) |\n| Dyness Tower T14 | ✅ Should work (community-tested) |\n| Dyness DL5.0C | ✅ Should work (community-tested) |\n| Dyness PowerHaus | ✅ Should work (community-tested) |\n| Dyness Stack100 | ✅ Should work (community-tested) |\n| Dyness PowerBox Pro | ✅ Should work (community-tested) |\n| Dyness Cygni 10.0HS-M8 | ✅ Should work (community-tested) |\n| Other Dyness models with WiFi dongle | ⚠️ Not tested – feedback welcome |\n\n\u003e The integration automatically detects the device via the API and only registers sensors available for that specific device.\n\n### Available Sensors\n\nThe following sensors are available for all devices:\n\n| Sensor | Description | Unit |\n|--------|-------------|------|\n| State of Charge (SOC) | Current battery level | % |\n| Power | Charge/discharge power (+ = charging, − = discharging) | W |\n| Current | Charge/discharge current | A |\n| Battery Status | Charging / Discharging / Standby | – |\n\nAdditional sensors are automatically enabled if the device provides the data:\n\n| Sensor | Description | Unit | Junior Box | Tower | DL5.0C | PowerHaus |\n|--------|-------------|------|:---:|:---:|:---:|:---:|\n| Pack Voltage | Total battery pack voltage | V | ✅ | – | ✅ | ✅ |\n| State of Health (SOH) | Battery health | % | ✅ | ✅ | ✅ | ✅ |\n| Temperature Max | Highest cell temperature | °C | ✅ | ✅ | ✅ | ✅ |\n| Temperature Min | Lowest cell temperature | °C | ✅ | ✅ | ✅ | ✅ |\n| Cell Voltage Max | Highest individual cell voltage | V | ✅ | ✅ | ✅ | ✅ |\n| Cell Voltage Min | Lowest individual cell voltage | V | ✅ | ✅ | ✅ | ✅ |\n| Cell Voltage Spread | Max − Min cell voltage (health indicator) | mV | ✅ | ✅ | ✅ | ✅ |\n| Energy Charged Today | Energy charged today | kWh | ✅ | – | ✅ | – |\n| Energy Discharged Today | Energy discharged today | kWh | ✅ | – | ✅ | – |\n| Energy Charged Total | Cumulative energy charged | kWh | ✅ | ✅ | ✅ | – |\n| Energy Discharged Total | Cumulative energy discharged | kWh | ✅ | – | ✅ | – |\n| Cycle Count | Number of charge cycles | – | – | ✅ | – | ✅ |\n| Usable Capacity | Capacity × SOH | kWh | ✅ | ✅ | ✅ | ✅ |\n| Energy Remaining | Usable capacity × SOC | kWh | ✅ | ✅ | ✅ | ✅ |\n| MOSFET Temperature | MOSFET temperature | °C | ✅ | – | ✅ | ✅ |\n| BMS Temperature Max | BMS temperature max | °C | ✅ | – | ✅ | ✅ |\n| BMS Temperature Min | BMS temperature min | °C | ✅ | – | ✅ | ✅ |\n| Alarm Status | Overall alarm (0 = OK) | – | ✅ | – | ✅ | ✅ |\n\nThe following sensors are available under **Diagnostics** on the device page:\n\n| Sensor | Description |\n|--------|-------------|\n| Last Update | Timestamp of last data transmission |\n| Battery Capacity | Installed capacity per API |\n| Communication Status | Online / Offline |\n| Work Status | e.g. RunMode, StandBy, Charging |\n| Firmware Version | Current firmware version |\n\n### Step 1: Create API credentials in the Dyness Portal\n\n1. Open **Dyness User Smart Monitoring** [https://ems.dyness.com/login](https://ems.dyness.com/login) in your browser\n2. Log in with your Dyness account (same as the app)\n3. Select **Developer Center** and then **API Management** from the left menu\n4. Click **Create API Key**\n5. Note down **App ID** and **App Secret** – the secret is only shown once!\n\n### Installation\n\n#### Via HACS (recommended)\n\n1. Open HACS in Home Assistant\n2. Click **Integrations** → **⋮** → **Custom repositories**\n3. Add URL: `https://github.com/shopf/dyness_battery` — Category: **Integration**\n4. Search for **Dyness Battery** and install\n5. Restart Home Assistant\n\n#### Manual Installation\n\n1. Download the ZIP from [Releases](https://github.com/shopf/dyness_battery/releases)\n2. Extract and copy `custom_components/dyness_battery/` to `config/custom_components/`\n3. Restart Home Assistant\n\n### Configuration\n\n1. **Settings** → **Devices \u0026 Services** → **Add Integration**\n2. Search for **Dyness Battery**\n3. Enter only your **API ID** and **API Secret** — the device is discovered automatically\n\n| Field | Description | Example |\n|-------|-------------|---------|\n| API ID | Your Dyness API ID | `abc123xyz` |\n| API Secret | Your Dyness API Secret | `secretkey456` |\n\n\u003e **Multiple batteries:** If you have multiple batteries on one account, the first detected BMS is used automatically. To add further batteries, simply add the integration again with the same credentials.\n\n### API Rate Limit \u0026 Scan Interval\n\nThe Dyness Cloud API allows approximately 60 requests per hour. The integration automatically adjusts the update interval based on the number of detected battery modules:\n\n| Modules | Interval |\n|---------|----------|\n| 1–2 | 5 minutes |\n| 3–4 | 10 minutes |\n| 5+ | 15 minutes |\n\n### Known Limitations\n\n- **Monitoring only** – Control (charge schedules, SOC limits) is not supported via the API\n- **5-minute interval** – API provides data in 5-minute increments\n- **Cloud dependent** – No local connection (WiFi dongle is built-in)\n\n### Adding a New Model\n\nDo you have a different Dyness model with a WiFi dongle and want to test it? Open an [Issue](https://github.com/shopf/dyness_battery/issues) with the following information:\n\n- Model name (e.g. `Tower T14`)\n- Output of the API test script (see `tools/dyness_test.py`)\n\n---\n\n## Technical Details\n\nUses the **Dyness Open API v1.1** with HmacSHA1 authentication.\n\nEndpoints used:\n- `POST /v1/device/storage/list` – Auto-discover device SN\n- `POST /v1/device/bindSn` – Bind device to API key\n- `POST /v1/device/getLastPowerDataBySn` – Current power data (every 5 min)\n- `POST /v1/device/realTime/data` – Real-time BMS data: pack voltage, SOH, temperatures, cell voltages, energy totals, voltage spread (every 5 min)\n- `POST /v1/station/info` – Station info (battery capacity)\n- `POST /v1/device/household/storage/detail` – Device details (firmware, status)\n- `POST /v1/device/storage/list` – Work status (every 5 min)\n\n---\n\n## Contributing\n\nPull requests and issues are welcome! Especially needed:\n- Testing with other Dyness models\n- Improvements to sensor data\n\n## Community \u0026 Support\n\n| | |\n|---|---|\n| 💬 **Questions \u0026 Ideas** | [GitHub Discussions](https://github.com/shopf/dyness_battery/discussions) |\n| 🐛 **Bug Reports** | [GitHub Issues](https://github.com/shopf/dyness_battery/issues) |\n| 🔌 **New Device** | Open an Issue with your `dyness_test.py` output |\n\n---\n\n## Translations\n\nAdditional languages supported:\n1. 🇫🇷 French — contributed by the community\n\n---\n\n## License\n\nMIT License – see [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshopf%2Fdyness_battery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshopf%2Fdyness_battery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshopf%2Fdyness_battery/lists"}