This custom integration connects a SOLARWATT Manager like FLEX or Rail to Home Assistant and provides energy- and power-related sensors.
Note for user with vision components: If you want to control settings like workmode, maximum charge current or discharge current try https://github.com/nathanmarlor/foxess_modbus
- Local polling of Solarwatt Manager data
- Energy Dashboard ready (correct
device_class&state_class) - Automatic unit normalization (Wh → kWh)
- Entity names are normalized and installation-specific IDs are removed.
- Human‑friendly display names (Title Case; BMS/SoC/SoH preserved)
- Diagnostics data from /rest/things with devices and their "properties" exposed as diagnostic entities
- Stable
unique_ids (safe for long‑term statistics) - Works with Home Assistant statistics & history
- Make sure HACS is installed in your Home Assistant instance
- Click the button below and follow the prompts (this adds the repository to HACS; installation is still done in HACS):
- In HACS → Integrations, search for SOLARWATT Manager and install it
- Restart Home Assistant
- Make sure HACS is installed in your Home Assistant instance
- Go to HACS → Integrations
- Open the menu (⋮) in the top right corner and select Custom repositories
- Add this repository URL:
https://github.com/thokaro/solarwatt-manager-homeassistant
- Select Integration as the category
- Click Add
- Search for SOLARWATT Manager in HACS and install it
- Restart Home Assistant
- Download or clone this repository
- Copy the folder:
custom_components/solarwatt_manager
into your Home Assistant configuration directory:
config/custom_components/
- Restart Home Assistant
After restarting Home Assistant:
- Go to Settings → Devices & Services
- Click Add Integration
- Search for SOLARWATT Manager
- Enter the required connection details
You can adjust these in the integration options:
- Update interval (seconds) – polling interval
- Name prefix (optional) – prefix for entity names
- Energy delta (kWh) – write energy updates only if the change is >= threshold; set to
0to write every update - Enable all sensors – enables all sensors currently disabled by the integration and turns on newly discovered sensors automatically; when switched off again, sensors that were only active because of this option are disabled again, while core and previously enabled sensors stay active
Energy sensors are provided in kWh and prepared for the Energy Dashboard (device_class: energy, state_class: total_increasing). Which sensors you use depends on your setup.
If you want to use sensors from this integration in evcc, please refer to the instructions (in german).
Here you will find an overview of the most important Kiwigrid items.
-
Internal sensor keys remain unchanged for stability
-
Display names:
- remove technical prefixes (e.g.
harmonized) - replace underscores (
_) with spaces - Title Case formatting with exceptions for common acronyms/brands (e.g.
BMS,SoC,SoH,AC,DC,PV,MPPT,SMA,KEBA,SunSpec,Modbus,FoxESS)
- remove technical prefixes (e.g.
This keeps entities readable without breaking existing statistics.
custom_components/
└─ solarwatt_manager/
├─ __init__.py # integration setup
├─ button.py # diagnostics refresh button
├─ const.py # constants & defaults
├─ manifest.json # integration metadata
├─ sensor.py # entity definitions
├─ coordinator.py # polling + data parsing
├─ config_flow.py # UI config flow
├─ diagnostics.py # diagnostics output
├─ naming.py # name normalization/formatting
├─ icon.png
└─ translations/
├─ de.json # German translations
├─ en.json # English translations
├─ fr.json # French translations
├─ it.json # Italian translations
└─ nl.json # Dutch translations
The integration version is defined in:
custom_components/solarwatt_manager/manifest.json
See CHANGELOG.md for release notes. GitHub releases follow calendar-based versioning 📅:
YYYY.M.PATCH
Please report bugs and feature requests via GitHub Issues:
Include logs and (if possible) diagnostics to help troubleshooting.
This project is licensed under the MIT License.
This project is not affiliated with or endorsed by Solarwatt GmbH. All trademarks belong to their respective owners.