I want to read out a SMA Sunny Boy data and make it available via MQTT to Home Assistant. Installation of SBFSpot on a Rasberry Pi is really easy. The tool to be used for this is SBFSpot. The SMA procotol used is proprietary and happens over 502/tcp.
- Install command line:1
curl -s https:
//raw
.githubusercontent.com
/sbfspot/sbfspot-config/master/sbfspot-config
|
sudo
bash
- Follow the configuration tutorial and setup wizard
- Edit the configuration file for MQTT:
to change the MQTT configuration and set the following MQTT_Data:1sudo
vi
cd
/usr/local/bin/sbfspot
.3
/SBFspot
.cfg
1MQTT_Data=Timestamp,SunRise,SunSet,InvSerial,InvName,InvSwVer,InvTime,InvStatus,InvTemperature,InvGridRelay,EToday,ETotal,PACTot,UDC1,UDC2,IDC1,IDC2,PDC1,PDC2,GridFreq
- Test:
1/usr/local/bin/sbfspot
.3
/SBFspot
-
v
-finq -nocsv -mqtt
- Note the SMA inverter serial for adding to your Home Assistant configuration
x - Configure Home Assistant and add these sensors to your configuration.yaml. Remember to replace the SERIAL with the actual serial number from your inverter.
No comments:
Post a Comment