This integration allows you to monitor SMA Energy Meters directly in Home Assistant. It listens for multicast messages from SMA Energy Meters on your network and creates sensors for real-time power consumption, voltage, current, and other metrics.
- Real-time monitoring of SMA Energy Meters via multicast
- Automatic detection of SMA Energy Meters on your network
- Support for both SMA Energy Meters and SMA Home Managers
- Includes detailed metrics for total and per-phase measurements
- Easy setup through Home Assistant UI
- Make sure HACS is installed in your Home Assistant instance
- Click on HACS in the sidebar
- Go to "Integrations"
- Click the three dots in the top-right corner and select "Custom repositories"
- Add
https://github.com/lordzeroms/sma_energy_meteras a custom repository with category "Integration" - Click "Add"
- Search for "SMA Energy Meter" and install it
- Restart Home Assistant
- Download the latest release from GitHub
- Create a
custom_componentsdirectory in your Home Assistant configuration directory if it doesn't already exist - Extract the
sma_energy_meterdirectory into thecustom_componentsdirectory - Restart Home Assistant
- Go to Settings → Devices & Services in Home Assistant
- Click the "+ Add Integration" button
- Search for "SMA Energy Meter" and select it
- Enter the local IP address to bind to (default: 0.0.0.0)
- Click "Submit"
The integration will automatically discover SMA Energy Meters on your network.
The integration creates the following sensors for each detected meter:
- Power consumption (W)
- Power supply/production (W)
- Reactive power consumption (VAr)
- Reactive power supply (VAr)
- Apparent power consumption (VA)
- Apparent power supply (VA)
- Power factor (cos φ)
- Frequency (Hz)
- Power consumption (W)
- Power supply (W)
- Reactive power consumption (VAr)
- Reactive power supply (VAr)
- Apparent power consumption (VA)
- Apparent power supply (VA)
- Current (A)
- Voltage (V)
- Power factor (cos φ)
Energy counters are available for all power measurements (kWh, kVArh, kVAh).
- Ensure your SMA Energy Meter is properly connected to your network
- Check that multicast traffic is allowed on your network
- Try setting a specific IP address instead of 0.0.0.0
- Check your network configuration for IGMP snooping settings
Enable debug logging for more detailed information:
logger:
default: info
logs:
custom_components.sma_energy_meter: debugThis integration is based on the SMA Energy Meter protocol documentation and inspired by other SMA integration projects. Special thanks to:
- david-m-m and datenschuft for the Speedwire decoder
- Wenger Florian for the SMA-EM packet capture script
This project is licensed under the GNU General Public License v2.0.