iobroker.marstek-venus
v0.2.1
Published
ioBroker adapter for Marstek Venus A/C/D/E energy storage devices
Readme
ioBroker.marstek-venus Adapter
The ioBroker.marstek-venus adapter provides full integration with Marstek Venus series energy storage systems, implementing the official Open API for complete device control and monitoring.
Device Support
Sources: marstekEnergy/ha_marstek, taurgis/has-marstek-local-api, rweijnen/marstek-firmware-archive
| Device | Open API | PV Support | Notes | |--------|:--------:|:----------:|-------| | Venus C | ❓ | ❓ | Supported | | Venus E 2.0 | ❓ | ❓ | Not compatible — causes CT003 disconnection | | Venus E 3.0 | ✅ | ❓ | Requires "new firmware" (Control ≥ v144) | | Venus D 3.0 | ❓ | ❓ | Supported | | Venus A 3.0 | ✅ | ✅ | Supported |
⚠️ Venus E 2.0 warning: Using the Open API on Venus E 2.0 may cause disconnection between the device and the CT003 current transformer. This is confirmed by both the official Marstek integration and multiple community integrations.
Firmware versions (Venus E 3.0 — firmware code: VNSE3-0)
The firmware archive only covers Venus E 3.0. No community-archived firmware exists yet for Venus A/C/D.
Control firmware
| Version | Date | Notable changes | |---------|------|-----------------| | v1476 (latest) | Mar 2026 | Improved MQTT connection stability | | v144 | Nov 2025 | Anti-backflow power baseline; DOD setting; new energy meter support (SMR-P1/IR/TIC, TPM2-100CT); Bluetooth disable feature |
BMS firmware
| Version | Date | Notable changes | |---------|------|-----------------| | v110 (latest) | Dec 2025 | Re-release of v109 | | v106 | Oct 2025 | Fix SOC jump issue with Chuneng cells |
API Component Support by Device
| Component | Venus C | Venus E 3.0 | Venus D 3.0 | Venus A 3.0 | |-----------|:-------:|:-----------:|:-----------:|:-----------:| | Marstek (discovery) | ✅ | ✅ | ✅ | ✅ | | WiFi | ✅ | ✅ | ✅ | ✅ | | Bluetooth | ✅ | ✅ | ✅ | ✅ | | Battery | ✅ | ✅ | ✅ | ✅ | | PV (Photovoltaic) | ❓ | ❓ | ✅ | ✅ | | ES (Energy System) | ✅ | ✅ | ✅ | ✅ | | EM (Energy Meter) | ✅ | ✅ | ✅ | ✅ | | DOD | ✅ | ✅ (≥ v144) | ✅ | ✅ | | Ble_block / Ble_Ctrl | ✅ | ✅ | ✅ | ✅ | | Led_Ctrl | ✅ | ✅ | ✅ | ✅ |
Requirements
- Open API must be enabled in the Marstek mobile app
- Device and client must be on the same LAN segment
- UDP port 30000 (default) must be reachable
Key Features
- ✅ Full device auto-discovery on local network
- ✅ 3-tier polling system for optimized updates:
- Fast poll (default 5s): Power values (pv, grid, battery, load)
- Normal poll (default 20s): All status values
- Slow poll (10min): Network status
- ✅ Request deduplication - prevents overlapping requests
- ✅ Complete state coverage (battery, power, energy, network, device info)
- ✅ Full control support (Auto/AI/Manual/Passive modes)
- ✅ Manual mode configuration (time slots, weekdays, power, enable/disable)
- ✅ Passive mode configuration (power, duration)
- ✅ Energy monitoring (PV, grid import/export, load)
- ✅ Network status monitoring (IP, WiFi, BLE)
- ✅ Energy meter with phase measurements (A/B/C phases)
Installation
- Enable Open API in Marstek mobile app and note UDP port (default 30000)
- Install adapter via ioBroker admin interface
- Configure instance:
- Auto discovery (recommended) or manual IP entry
- Set UDP port as configured in app
- Adjust poll interval and fastPollInterval (default 5000ms)
- Save and start adapter
Configuration Options
| Parameter | Description | Default | |-----------|-------------|---------| | ipAddress | Leave empty for auto-discovery, or enter device IP | (empty) | | udpPort | UDP port for communication | 30000 | | pollInterval | Normal poll interval for all status values (ms) | 30000 | | fastPollInterval | Fast poll interval for power values (ms) | 10000 | | requestTimeout | Request timeout for each request (ms) | 5000 | | autoDiscovery | Enable automatic device discovery | true |
States Documentation
Battery States
marstek-venus.0.battery.soc- State of charge (0-100%) | %, romarstek-venus.0.battery.temperature- Battery temperature in °C | °C, romarstek-venus.0.battery.capacity- Remaining capacity in Wh | Wh, romarstek-venus.0.battery.ratedCapacity- Rated capacity in Wh | Wh, romarstek-venus.0.battery.chargingAllowed- Charging permitted (true/false) | bool, rwmarstek-venus.0.battery.dischargingAllowed- Discharging permitted (true/false) | bool, rw
Power States
marstek-venus.0.power.pv- PV power generation in W | W, romarstek-venus.0.power.grid- Grid power flow (positive=import, negative=export) | W, romarstek-venus.0.power.battery- Battery power flow in W | W, romarstek-venus.0.power.load- Load consumption in W | W, ro
Energy States
marstek-venus.0.energy.pvTotal- Total PV energy generated in Wh | Wh, romarstek-venus.0.energy.gridImport- Total grid energy imported in Wh | Wh, romarstek-venus.0.energy.gridExport- Total grid energy exported in Wh | Wh, romarstek-venus.0.energy.loadTotal- Total load energy consumed in Wh | Wh, ro
Control States
marstek-venus.0.control.mode- Operating mode (Auto/AI/Manual/Passive) | enum, rwmarstek-venus.0.control.passivePower- Passive mode power target in W (positive=charge, negative=discharge) | W, rwmarstek-venus.0.control.passiveDuration- Passive mode duration in seconds | s, rwmarstek-venus.0.control.manualTimeNum- Manual mode time slot (0-9) | number, rwmarstek-venus.0.control.manualStartTime- Manual mode start time (HH:MM) | string, rwmarstek-venus.0.control.manualEndTime- Manual mode end time (HH:MM) | string, rwmarstek-venus.0.control.manualWeekdays- Manual mode weekdays (1=Mon, 127=all) | number, rwmarstek-venus.0.control.manualPower- Manual mode power target in W (positive=charge, negative=discharge) | W, rwmarstek-venus.0.control.manualEnable- Enable manual mode schedule (true/false) | bool, rwmarstek-venus.0.control.dodValue- Set DOD value (30-88) | %, rwmarstek-venus.0.control.bleBroadcastEnabled- Enable BLE broadcast (true=enabled, false=disabled) | bool, rwmarstek-venus.0.control.ledState- Set panel LED state (true=on, false=off) | bool, rw
Network States
marstek-venus.0.network.ip- Device IP address | ip, romarstek-venus.0.network.gateway- Network gateway | string, romarstek-venus.0.network.mask- Subnet mask | string, romarstek-venus.0.network.dns- DNS server | string, romarstek-venus.0.network.ssid- WiFi SSID | string, romarstek-venus.0.network.rssi- WiFi signal strength in dBm | dBm, romarstek-venus.0.network.bleState- BLE connection state (connected/disconnected) | enum, ro
Info States
marstek-venus.0.info.device- Device model (Venus A, B, C, D, E) | string, romarstek-venus.0.info.firmware- Firmware version number | string, romarstek-venus.0.info.mac- Device MAC address | mac, romarstek-venus.0.info.connection- Connection status (true/false) | bool, ro
Energy Meter States
marstek-venus.0.energymeter.ctState- CT sensor connection state (0=disconnected, 1=connected) | enum, romarstek-venus.0.energymeter.powerA- Phase A power in W | W, romarstek-venus.0.energymeter.powerB- Phase B power in W | W, romarstek-venus.0.energymeter.powerC- Phase C power in W | W, romarstek-venus.0.energymeter.powerTotal- Total three-phase power in W | W, romarstek-venus.0.energymeter.inputTotal- Total energy import from grid | Wh, romarstek-venus.0.energymeter.outputTotal- Total energy export to grid | Wh, ro
Control and Operation
Switching Modes
- Auto: Fully automatic operation based on device algorithms
- AI: AI-powered optimization mode
- Manual: Schedule-based manual control with 10 time slots
- Passive: Maintain battery at specified power level for specified duration
Manual Mode Configuration
Manual mode uses 10 time slots per day (0-9). Configure:
control.manualTimeNum- Select time slot (0-9)control.manualStartTime- Start time for the slot (HH:MM)control.manualEndTime- End time for the slot (HH:MM)control.manualWeekdays- Bitmask for weekdays (1=Mon, 127=all)control.manualPower- Target power for the slot in W (positive=charge, negative=discharge)control.manualEnable- Enable this time slot
Passive Mode Configuration
control.passivePower- Target power level in W (positive=charge, negative=discharge)control.passiveDuration- Duration in seconds (0-86400)
API Implementation
Implemented Marstek Open API endpoints (Rev 2.0):
Marstek.GetDevice- Device discovery and informationWifi.GetStatus- WiFi connection statusBLE.GetStatus- Bluetooth statusBat.GetStatus- Battery detailed statusPV.GetStatus- PV array statusES.GetStatus- Energy storage system statusES.GetMode- Current operating modeES.SetMode- Set operating mode and configurationEM.GetStatus- Energy meter measurementsDOD.SET- Set DOD valueBle.Adv- Control BLE broadcastingLed.Ctrl- Control panel LED state
Additional adapter extension (not listed in provided Rev 2.0 spec):
Marstek.SetTargetPower- Direct target power control
Troubleshooting
Discovery Issues
- Ensure UDP port 30000 is open and matches mobile app configuration
- Check that device is on the same network subnet
- Try manually entering IP address if auto-discovery fails
- Verify device WiFi connection is working
Connection Problems
- Check firewall settings allowing UDP traffic
- Verify network connectivity to device
- Restart adapter and device
- Check WiFi signal strength (network.rssi)
Polling Issues
- Adjust
fastPollIntervalfor power value update frequency (default 5000ms) - Adjust
pollIntervalfor normal status update frequency (default 20000ms) - Adjust
requestTimeoutfor slow or unstable networks - Slow poll runs every 10 minutes for network status
State Updates Not Working
- Verify control states are writable (some are read-only)
- Check that mode changes are properly configured
- Ensure manual mode settings are valid
Changelog
0.2.1 (2026-07-18)
- Updated integration tests to use a UDP mock server, enabling reliable execution in CI environments (GitHub/GitLab Actions) without physical hardware.
- Added integration tests
- Fixed ERESOLVE dependency conflict with @iobroker/eslint-config and @typescript-eslint/parser
- Updated @types/node to 22.20.1 to fix npm ci sync issue
- (ioBroker-Bot) Adapter requires admin >= 7.8.23 now.
0.2.0 (2026-07-04)
- fix: comply with ioBroker adapter requirements (roles, titles, authors, unused directories)
- chore: remove unused
maxRetriestranslation key from all language files - chore: update dependencies and Node.js version requirements
- fix: use adapter.setTimeout instead of plain setTimeout
- fix: move license to the end of README.md and add link to CHANGELOG_OLD.md
- fix: corrected invalid
@alcalzone/release-script-plugin-*versions inpackage.json - fix: update
@iobroker/testingto 5.2.2 as required - fix: remove deprecated
common.titleand unknowncommon.authorfromio-package.json - fix: add missing translations for
192.168.1.xxx - fix: ensure
test:integrationscript does not swallow errors and handle missing integration tests gracefully - chore: enable trusted publishing by configuring NPM_TOKEN and provenance in GitHub Actions
0.1.19 (2026-07-04)
- fix: allow negative values for
control.manualPowerto support discharge planning in manual mode (closes #42) - feat: update implementation to match Marstek Device Open API Rev 2.0
- add network information states (gateway, mask, dns)
- add total energy import/export states for energy meter
0.1.19-alpha.0 (2026-05-14)
- refactor: remove all retry logic from request/control/polling flow; all requests are now single-attempt with timeout handling only
- feat: add
slowPollInterval(Long-Polling / LP) as configurable field in admin UI - feat: add polling tier badges
[FP],[SP],[LP]to each API endpoint checkbox in admin UI
0.1.18 (2026-04-25)
- fix: use
ongrid_power/offgrid_powerfromES.GetModeresponse to updatepower.grid/power.load(closes #26) - chore: remove unused
power.pvVoltageandpower.pvCurrentstates from adapter and documentation
Older changelogs can be found there
Support
For support, visit the ioBroker forum or GitHub repository. When reporting issues, please include:
- Adapter version
- Device model
- Firmware version
- Network configuration
- Detailed error messages
License
MIT License
Copyright (c) 2024-2026 ioBroker Community
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
