This repository is still in development and not ready for production use. Use at your own risk.
A flexible and powerful Modbus integration for Home Assistant that supports multiple device types and offers advanced features like:
- Dynamic device configuration through YAML definitions
- Optimized batch reading of registers
- Automatic register grouping for better performance
- Built-in error handling and retry mechanisms
- Extensive monitoring and diagnostics
- Support for multiple devices and manufacturers
- Smart request proxy with caching and batching
This integration is provided "AS IS" without warranty of any kind. By using this integration, you agree that:
- The use of this integration is at your own risk
- The author(s) will not be liable for any damages, direct or indirect, that may arise from the use of this integration
- The integration may interact with electrical devices and systems. Incorrect configuration or usage could potentially damage your devices
- You are responsible for ensuring compliance with your device manufacturer's warranty terms and conditions
- Always verify the correct operation of your system after making any changes
- Smart Request Proxy: Automatically combines multiple register reads into optimized batches
- Intelligent Caching: Caches register values to reduce device load
- Request Merging: Combines adjacent or overlapping register requests
- Automatic Retry: Handles communication errors with configurable retry logic
- Request Batching: Groups multiple register reads into single Modbus transactions
- Register Grouping: Automatically groups adjacent registers for efficient reading
- Cache Management: Time-based cache with configurable timeout
- Request Queuing: Smart queuing system for optimal request handling
- Performance Metrics: Track response times, success rates, and error rates
- Detailed Logging: Comprehensive logging of all Modbus operations
- Error Tracking: Detailed error tracking and categorization
- Health Monitoring: Monitor device and connection health
- Open HACS in your Home Assistant instance
- Click on "Integrations"
- Click the "+" button
- Search for "Modbus Manager"
- Click "Download"
- Restart Home Assistant
- Download the latest release from GitHub
- Copy the
custom_components/modbus_manager
folder to your Home Assistant'scustom_components
directory - Restart Home Assistant
- Go to Settings -> Devices & Services
- Click "Add Integration"
- Search for "Modbus Manager"
- Follow the configuration steps
Currently supported device types:
-
Sungrow SH-RT Hybrid Inverter
-
Sungrow Battery System
-
Generic Modbus devices (through custom device definitions)
-
more to come....
You can add support for new devices by creating YAML device definitions. See the Wiki for more information.
Feel free to contribute to this project! Please read our Contributing Guidelines.
- Report bugs and feature requests on GitHub Issues
This project is licensed under the MIT License - see the LICENSE file for details.