SMA

Requirements

bluez

install by

$ apt-get install bluez
$ hcitool scan
Scanning ...
               
$ simple-agent hci0 
RequestPinCode (/org/bluez/3070/hci0/dev_bt_addr_underscores)
Enter PIN Code: 
Release
New device (/org/bluez/3070/hci0/dev_bt_addr_underscores)
$ bluez-test-device trusted  yes
$ bluez-test-device list

Supported Hardware

Tested with: * SMA SunnyBoy 5000TL-21 * SMA Sunny Tripower 8000TL-10

Should work with other SMA inverters as well - please let me know!

Configuration

plugin.conf

[sma]
    class_name = SMA
    class_path = plugins.sma
    bt_addr = 00:80:25:21:7F:58
#    password = 0000
#    update_cycle = 60

Description of the attributes:

  • bt_addr: MAC-address of the inverter (find out with ‘hcitool scan’)
  • password: password for accessing the inverter in user-mode (default 0000)
  • update_cycle: interval in seconds how often the data is read from the inverter (default 60)

items.conf

[Inverter]
  [[Feeding_Power_in_W]]
    type = num
    sma = AC_P_TOTAL
  [[Daily_Yield_in_Wh]]
    type = num
    sma = E_DAY
  [[Total_Yield_in_Wh]]
    type = num
    sma = E_TOTAL
  [[Serial_Number]]
    type = num
    sma = INV_SERIAL
  [[MAC_Address]]
    type = str
    sma = INV_ADDRESS
  [[Last_Update_Of_Data]]
    type = str
    sma = LAST_UPDATE
  [[DC_Power_String1_in_W]]
    type = num
    sma = DC_STRING1_P
  [[DC_Power_String2_in_W]]
    type = num
    sma = DC_STRING2_P
  [[DC_Voltage_String1_in_V]]
    type = num
    sma = DC_STRING1_U
  [[DC_Voltage_String2_in_V]]
    type = num
    sma = DC_STRING2_U
  [[DC_Current_String1_in_A]]
    type = num
    sma = DC_STRING1_I
  [[DC_Current_String2_in_A]]
    type = num
    sma = DC_STRING2_I
  [[Operating_Time_in_h]]
    type = num
    sma = OPERATING_TIME
  [[Feeding_Time_in_h]]
    type = num
    sma = FEEDING_TIME
  [[Grid_Frequency_in_Hz]]
    type = num
    sma = GRID_FREQUENCY