SMA info in Domoticz

Moderator: leecollings

User avatar
FireWizard
Posts: 1892
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: SMA info in Domoticz

Post by FireWizard »

Hi, @DJathome,

Did you forfil all the requirements, especially the 3rd one?

Requirements:
1. SMA Sunny Tripower or Sunny Boy with Modbus TCP enabled.
2. python 3.x
3. pip3 install -U pymodbus pymodbusTCP.

As this is probably the cause of the errors.

Regards
User avatar
waltervl
Posts: 5853
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: SMA info in Domoticz

Post by waltervl »

See https://www.domoticz.com/wiki/Using_Pyt ... leshooting

Using "sudo pip3 install" mostly solves this issue as Domoticz normally runs on elevated rights so sudo is needed for installing the extra python modules.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
DJathome
Posts: 27
Joined: Monday 26 July 2021 11:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Contact:

Re: SMA info in Domoticz

Post by DJathome »

Or is this just a problem with PATH, but it beats me where to correct this succesfully.
DJ
DJathome
Posts: 27
Joined: Monday 26 July 2021 11:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Contact:

Re: SMA info in Domoticz

Post by DJathome »

Oeps, I overlooked your new replies, reading them now…
DJ
DJathome
Posts: 27
Joined: Monday 26 July 2021 11:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Contact:

Re: SMA info in Domoticz

Post by DJathome »

@Firewizard;

Point 1 fullfilled, of course this might only be possible to do using the installer login (which I happen to have the credentials for)
Point 2 python 3.7.3 of I am not mistaking.
Point 3 I will check if I did not a typo there (one of those that does not lead to na error message)
Maybe running that last pip install with sudo as waltervl suggests is a good idea.
DJ
DJathome
Posts: 27
Joined: Monday 26 July 2021 11:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Contact:

Re: SMA info in Domoticz

Post by DJathome »

Yes, yes, yes,
I ran the commands suggested with the plugin but now:
sudo pip3 install -U pymodbus pymodbusTCP as waltervl suggested and now I see additional 'devices' in the devices list of my Domoticz.

Now let's see what this all get's me.

Once again thank for your patience and help!
DJ
DJathome
Posts: 27
Joined: Monday 26 July 2021 11:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Contact:

Re: SMA info in Domoticz

Post by DJathome »

Avoiding double post here.... :o
Last edited by DJathome on Friday 06 August 2021 17:56, edited 1 time in total.
DJ
DJathome
Posts: 27
Joined: Monday 26 July 2021 11:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Contact:

Re: SMA info in Domoticz

Post by DJathome »

Update, it gets better every time;

With SBFspot I got 6 new devices in the list, with the ModBus Plugin I got 12.
Moreover, when I check 'temperature' it lists 0.0 C using SBFspot.
same value in SBFspot's log:
SUSyID: 342 - SN: XXXXXXXXXX
Device Temperature: 0.0°C

With Modbus I get 42,1 C as value (which is a very plausible value), not that the invertertemperature was of that much interest to me but hey, I am not complaining.

And the stringpowervalues are also there now.

Thanks to you all Firewizard,waltervl,PieterS
DJ
DJathome
Posts: 27
Joined: Monday 26 July 2021 11:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Contact:

Re: SMA info in Domoticz

Post by DJathome »

Screenshot for the devices list;
Attachments
Schermafbeelding 2021-08-06 om 18.08.09.jpg
Schermafbeelding 2021-08-06 om 18.08.09.jpg (268.9 KiB) Viewed 1117 times
DJ
User avatar
FireWizard
Posts: 1892
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: SMA info in Domoticz

Post by FireWizard »

Hello @DJathome,

Looks good.

If I look to your screenshot, I see DC Power A and DC Power B (so obviously 2 strings).
The AC Power matches the RFXmeter.
Temperature of 41,5 degrees Celsius makes sense.

But why is L1, L2, and L3 all 0 Watt?

No Voltage for L2 and L3, so obviously a single phase system?

If everything is alright you may mark this issue as solved.

Regards
PieterS
Posts: 197
Joined: Wednesday 31 May 2017 16:06
Target OS: NAS (Synology & others)
Domoticz version: 2024.7
Location: NL
Contact:

Re: SMA info in Domoticz

Post by PieterS »

@DJathome: Great job!! Good to see results.

To bad you do not get any currents of DC and AC. A bit strange...
@Firewizard: Some values as L2 or L3 are not available as it is a single phase inverter.
Indeed very strange the value of Power of L1. Maybe a config-error of Modbus? Or a little bit of fine tuning in Domoticz?
Synology with Domoticz build (V2024.7) in Docker
User avatar
FireWizard
Posts: 1892
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: SMA info in Domoticz

Post by FireWizard »

Hi, @PieterS,
Some values as L2 or L3 are not available as it is a single phase inverter.
I thought so.
Indeed very strange the value of Power of L1
Or could it be that the inverter did not produce any energy (See time of the day 18:08:07).
Although there is DC Power.

Lets wait for a more sunny day.

Regards
DJathome
Posts: 27
Joined: Monday 26 July 2021 11:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Contact:

Re: SMA info in Domoticz

Post by DJathome »

FireWizard wrote: Friday 06 August 2021 18:55 Hello @DJathome,

Looks good.

If I look to your screenshot, I see DC Power A and DC Power B (so obviously 2 strings).
The AC Power matches the RFXmeter.
Temperature of 41,5 degrees Celsius makes sense.

But why is L1, L2, and L3 all 0 Watt?

No Voltage for L2 and L3, so obviously a single phase system?

If everything is alright you may mark this issue as solved.

Regards
Hello Firewizard,
You are spot on in supposing this is a one phase inverter.
Maybe L1,L2,L3 on 0 Watt is just a glitch while experimenting.
Mind you, for a single phase SMA inventer like mine you can fill in in the SMA inverter’s config in which phase it will inject its power. This is a mere informative setting, but it will result in only one device having and updating values in normal operation.
In my SMA L1 is entered as ‘feed in’ phase, hence the voltage is indicated for L1 and is 0 Volt for L2 and L3.
DJ
DJathome
Posts: 27
Joined: Monday 26 July 2021 11:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Contact:

Re: SMA info in Domoticz

Post by DJathome »

@Firewizard,

I guess those L1,L2 and L3 on 0 Watt is normal when the plugin tries to read values that are not there in a single phase inverter.
There is another devices that does read the momentaneous power production and that is AC power.
This plugin from derenback lists as tested on Sunny Tripower 10, STP10.0-3AV-40 601 what is a triphase inverter.
The plugin lists forked from Want100Cookies/Domoticz-SMA-Inverter that in turn was tested on;
Sunny Tripower and Sunny Boy 3.6
So I guess in the plugin I used there are devices generated that are of no use on a Sunny Boy 3.6
I am going to try to find out if it is possible to 'clean' a bit ;-)
DJ
User avatar
FireWizard
Posts: 1892
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: SMA info in Domoticz

Post by FireWizard »

@DJathome,

It is not a problem to clean. Simple go to "Devices" and click to blue arrow, so that it turns to green.

If you are satisfied, mark this topic as solved, please

Regards
DJathome
Posts: 27
Joined: Monday 26 July 2021 11:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Contact:

Re: SMA info in Domoticz

Post by DJathome »

Dear Firewizard,

I will probably look stupid here, but where can I mark this topic as solved, please?
DJ
Locked

Who is online

Users browsing this forum: No registered users and 1 guest