Plugin/Integration system for device implementations (similar to Home Assistant)
Summary
I'd like to propose a plugin or integration system that separates device-specific implementations (wallboxes, meters, vehicles, tariffs) from the evcc core – similar to how Home Assistant handles custom components.
Problem / Motivation
Currently, evcc is fairly monolithic – all device implementations live in the core repository. This means:
- Every new device requires a PR, review, and merge by maintainers
- Maintainers carry the burden of supporting a growing number of devices
- Users with niche hardware have to wait (or fork) to get support
- Breaking changes in core can affect all implementations
Proposed Solution
Separate the architecture into:
- Core: Charging logic, surplus calculation, UI, API
- Plugins/Integrations: Device-specific implementations as independent modules
This could be achieved via:
- A defined plugin API/interface for each device type
- External plugins loaded at runtime (or via configuration)
- Community-maintained plugin repository (optional)
Benefits
| For maintainers | For community |
|---|---|
| Less maintenance overhead | Self-service for new devices |
| Focus on core functionality | Faster support for new hardware |
| Clear API boundaries | No PR/review bottleneck |
| Fewer breaking changes across devices | Flexibility for niche use cases |
Prior Art
-
Home Assistant: Custom components & HACS
-
Zigbee2MQTT: External converters
-
Node-RED: Community nodes
-
External processes communicating via MQTT/HTTP (similar to HA add-ons)
-
Extending the existing template system for generic devices
-
GRPC or similar for plugin communication
Happy to discuss
I'm open to feedback on whether this aligns with evcc's vision. Would be happy to contribute to the discussion or help shape the requirements.
Perfectly happy to have this- if smbd can come up with a good way of implementing it. Given that, we don‘t require a „would it be nice to have“ issue discussion. All it needs is a technical solution.
This is the missing part:
External plugins loaded at runtime (or via configuration)
There is of course the question of what actual issue this would solve- except for being nice to have this capability.
Users with niche hardware have to wait (or fork) to get support
Thats half true thanks to custom devices. They can already have their logic fully external if required.