Showing posts with label sma. Show all posts
Showing posts with label sma. Show all posts

Monday, October 2, 2023

Install SBFSpot to read out SMA Sunny Boy data and make data available over MQTT for Home Assistant

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.

  1. Install command line:
    curl -s https://raw.githubusercontent.com/sbfspot/sbfspot-config/master/sbfspot-config | sudo bash
  2. Follow the configuration tutorial and setup wizard
  3. Edit the configuration file for MQTT:
    sudo vi cd /usr/local/bin/sbfspot.3/SBFspot.cfg
    to change the MQTT configuration and set the following MQTT_Data:
    MQTT_Data=Timestamp,SunRise,SunSet,InvSerial,InvName,InvSwVer,InvTime,InvStatus,InvTemperature,InvGridRelay,EToday,ETotal,PACTot,UDC1,UDC2,IDC1,IDC2,PDC1,PDC2,GridFreq
  4. Test:
    /usr/local/bin/sbfspot.3/SBFspot -v -finq -nocsv -mqtt
  5. Note the SMA inverter serial for adding to your Home Assistant configuration
    x
  6. Configure Home Assistant and add these sensors to your configuration.yaml. Remember to replace the SERIAL with the actual serial number from your inverter.