Python Plugin: SMA Inverters ModbusTCPIP

Python and python framework

Moderator: leecollings

Post Reply
doki
Posts: 2
Joined: Friday 31 August 2018 14:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Python Plugin: SMA Inverters ModbusTCPIP

Post by doki »

Hello!

Plugin works with SMA Sunny Tripower inverter, 8 parameters are mapped:
  • Solar Production
  • DC Voltage
  • Active Power AC
  • Active Power DC
  • DC Current
  • Active Power L1
  • Active Power L2
  • Active Power L3
https://github.com/doopa75/SMA-Inverter-ModbusTCPIP
Enjoy!
jeroenkl
Posts: 113
Joined: Sunday 14 July 2013 22:00
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: NL
Contact:

Re: Python Plugin: SMA Inverters ModbusTCPIP

Post by jeroenkl »

doki wrote: Sunday 23 February 2020 20:36 Hello!

Plugin works with SMA Sunny Tripower inverter, 8 parameters are mapped:
  • Solar Production
  • DC Voltage
  • Active Power AC
  • Active Power DC
  • DC Current
  • Active Power L1
  • Active Power L2
  • Active Power L3
https://github.com/doopa75/SMA-Inverter-ModbusTCPIP
Enjoy!
cool!
jeroenkl
Posts: 113
Joined: Sunday 14 July 2013 22:00
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: NL
Contact:

Re: Python Plugin: SMA Inverters ModbusTCPIP

Post by jeroenkl »

Added to my domoitcz setup, use for sunnyboy.
TCP and UDP modbus is activated on my SMA port 502.
Should I use device ID 3?

Error message (log):
2020-02-26 11:41:14.438 (SMA2.5) SMA Inverter Modbus plugin start
2020-02-26 11:41:14.438 (SMA2.5) SMA Sunny Boy
2020-02-26 11:41:14.158 Status: (SMA2.5) Started.
2020-02-26 11:41:14.433 Status: (SMA2.5) Entering work loop.
2020-02-26 11:41:14.433 Status: (SMA2.5) Initialized version 0.7.5, author 'doki'
2020-02-26 11:41:24.509 (SMA2.5) Your inverter is SMA Sunny Boy

2020-02-26 11:42:07.223 Error: WebServer PO exception occurred : 'stoull'

BR,

Jeroen
doki
Posts: 2
Joined: Friday 31 August 2018 14:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: SMA Inverters ModbusTCPIP

Post by doki »

ID 3 is correct for SMA inverters.
Please send me number of registers and description.
for example solar production - 30529
PS test your connection using program: http://en.radzio.dxp.pl/modbus-master-simulator/
how to use is it explained on this page:
https://www.sma-sunny.com/en/how-to-tes ... -inverter/
Jordindc
Posts: 13
Joined: Monday 31 December 2018 7:48
Target OS: Linux
Domoticz version: 2020.2
Contact:

Re: Python Plugin: SMA Inverters ModbusTCPIP

Post by Jordindc »

Hi doki,

Installed and working. Great work! I'm just wondering each parameter's meaning. I think Active Power AC is instant power generated and totalizes Active Power L1, L2 and L3 (one for each phase). But I'm not sure how to understand the rest of parameters (beside Solar Production that is total production since beginning of installation). In fact, I'd like to know daily, monthly and year production, and instant compsumption from public network (information that I can see in weconnect tool).

Thanks for your great job and for your answer.

Jordi
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests