How davidrapan/ha-solarman works
Solarman is a Home Assistant integration that discovers and configures inverter/logger devices, polls their registers, parses model-specific profiles, and exposes the results as entities and register services. The graph follows setup through coordinator-driven device communication and entity updates, while preserving the documented Modbus TCP support and profile-driven breadth. Several platform and parser details are unsampled; their branches are shown where documented, with uncertain wiring omitted.
Main entry points: device.py Device interface · entity.py Entity base · coordinator.py Update coordinator · __init__.py Solarman protocol client
Components 22
Setup & Discovery
- Config flow
custom_components/solarman/config_flow.py - Device discovery
custom_components/solarman/discovery.py - Shared config
custom_components/solarman/const.py
Polling & Profiles
- Update coordinator
custom_components/solarman/coordinator.py - Profile provider
custom_components/solarman/provider.py - Inverter definitions
custom_components/solarman/inverter_definitions - Device interface
custom_components/solarman/device.py - Register parser
custom_components/solarman/parser.py - Shared utilities
custom_components/solarman/common.py
Home Assistant Entities
- Entity base
custom_components/solarman/entity.py - Sensor platforms
custom_components/solarman/sensor.py - Control platforms
custom_components/solarman/number.py - Time platforms
custom_components/solarman/datetime.py - Register services
custom_components/solarman/services.py - Diagnostics
custom_components/solarman/diagnostics.py
Modbus Transport
- Solarman protocol client
custom_components/solarman/pysolarman/__init__.py - Modbus PDU
custom_components/solarman/pysolarman/umodbus/functions.py - Modbus TCP
custom_components/solarman/pysolarman/umodbus/client/tcp.py - Modbus RTU
custom_components/solarman/pysolarman/umodbus/client/serial/rtu.py
Other components
- Home Assistant user
- Home Assistant
- Inverter / logger
Connections 26
- Home Assistant user → Home Assistant: sets up
readme.md - Home Assistant → Config flow: starts config
readme.md - Config flow → Device discovery: uses discovery
custom_components/solarman/config_flow.py - Config flow → Shared config: reads defaults
custom_components/solarman/config_flow.py - Update coordinator → Profile provider: creates provider
custom_components/solarman/coordinator.py - Profile provider → Inverter definitions: loads definitions
- Update coordinator → Device interface: sets up and polls
custom_components/solarman/coordinator.py - Profile provider → Register parser: uses parser
custom_components/solarman/provider.py - Device interface → Profile provider: gets configuration
custom_components/solarman/device.py - Device interface → Solarman protocol client: communicates through
custom_components/solarman/device.py - Device interface → Register parser: parses readings
custom_components/solarman/device.py - Device interface → Inverter / logger: reads registers
- Solarman protocol client → Modbus PDU: encodes requests
custom_components/solarman/pysolarman/__init__.py - Solarman protocol client → Modbus TCP: uses TCP transport
custom_components/solarman/pysolarman/__init__.py - Solarman protocol client → Modbus RTU: uses RTU transport
custom_components/solarman/pysolarman/__init__.py - Update coordinator → Entity base: provides updates
custom_components/solarman/coordinator.py - Sensor platforms → Entity base: builds entities
custom_components/solarman/sensor.py - Control platforms → Entity base: builds entities
custom_components/solarman/number.py - Time platforms → Entity base: builds entities
custom_components/solarman/datetime.py - Entity base → Register parser: gets descriptions
- Entity base → Shared utilities: uses helpers
custom_components/solarman/entity.py - Home Assistant → Register services: registers services
custom_components/solarman/services.py - Register services → Update coordinator: resolves device
custom_components/solarman/services.py - Register services → Device interface: executes register calls
custom_components/solarman/services.py - Home Assistant → Diagnostics: requests diagnostics
- Diagnostics → Update coordinator: reads coordinator
custom_components/solarman/diagnostics.py