This custom component integrates the SMA Sunny Beam into Home Assistant. The sensor values are fetched via USB.
Copy content of custom_components to your local custom_components folder and add the following lines to your configuration.
In order to allow non-root users and thus Home Assistant to access the USB device, add the following udev rule (/etc/udev/rules.d/99-sma-sunny-beam.rules
), re-plug the Sunny Beam and restart Home Assistant.
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1587", ATTRS{idProduct}=="002d", MODE="666"
Add Integration using Web UI