davidrapan / ha-solarman

⚡ Solarman Stick Logger integration for 🏠 Home Assistant
MIT License
47 stars 14 forks source link

Deye Microinverter is sending the same data with update period of 60s or 5m #84

Open Steinbichler opened 4 weeks ago

Steinbichler commented 4 weeks ago

First thank you for this fine solarman integration! Great Job!

I am running homeassistant in actual version. My converter is a Deye 600. Relais is installed.

I have your ha-slarman up an running installed via HACS. Nearly everthing works fine but:

I have requested at Deye support to set the update interval for my Deye 600 to 1 Minute. They agreed to have it done. I see in the Homepage of the converter the update time is set to 1.

But nothing changed in the ha-solarman. I changed the number in the definition file: deye_2mppt.yaml. After the installation the update_interval: 5 was set. What ever the number I enter, and for sure I did a restart after the change, nothing happens. The update interval is always 5 Minutes.

Can you help please?

Thank you an regards Roland

davidrapan commented 4 weeks ago

Hi @Steinbichler, I'm little bit worried that you are mixing different things here together.

I have requested at Deye support to set the update interval for my Deye 600 to 1 Minute. They agreed to have it done. I see in the Homepage of the converter the update time is set to 1.

This integration and HA has nothing to do with Deye and their support and is completely separated thing. No configuration from Deye side won't affect this integration at all.

And at the same time nothing set in this integration will affects Deye Cloud nor Solarman App. Again it is completely separate thing from those.

But nothing changed in the ha-solarman. I changed the number in the definition file: deye_2mppt.yaml. After the installation the update_interval: 5 was set. What ever the number I enter, and for sure I did a restart after the change, nothing happens. The update interval is always 5 Minutes.

What are you trying to achieve? update_interval: 5 in the 2mppt.yaml means 5 seconds not 5 minutes.

Steinbichler commented 4 weeks ago

Hi if set to 5 as ist should be 5 seconds I have this: Bildschirmfoto vom 2024-08-15 16-26-09 Update was 6 Minutes before.

davidrapan commented 4 weeks ago

What shows Update Interval sensor in diagnostic card in device detail view?

Edit: Please enable debug logging, let it run for a while and then post the log file here please.

CrazyUs3r commented 4 weeks ago

@Steinbichler Wie gut ist das wlan Signal Mein m80 macht auch nur alle 5min ist aber auch auf 1min gestellt. In der solarman app kommen die Signale aber auch nur im 5min intervall an

Steinbichler commented 4 weeks ago

@davidrapan Bildschirmfoto vom 2024-08-15 19-01-07

do you mean this one

@CrazyUs3r Das Wlan kann das Problem nicht sein es ist sehr gut und in der Solarman App kommt der update nach einer Minute

Steinbichler commented 4 weeks ago

I started debug and I will upload the file later later

Steinbichler commented 4 weeks ago

home-assistant_solarman_2024-08-15T17-36-23.029Z.log

I hope it helps.Thank you an Regards Roland

davidrapan commented 4 weeks ago

What the actual f*ck is happening in there!

Do you have it updated to v24.08.14 version? If no please do the update.

And could I please ask you to do the following please:

  1. Disable debug logging (if you have it enabled)
  2. Restart Home Assistant
  3. Remove the device from the integration
  4. Enable debug logging
  5. Add your device back again and go through configuration
  6. Let it run for some time
  7. Disable debug logging and post here the log file again

Thank you for your cooperation! 😉

PV-Joe commented 4 weeks ago

I remember this behavior after my first installation.

The Update information in seconds or minutes from Home Assistant was showing wrong values but the sensors updates as expected.

I haven’t done anything about it and wondered. The problem desolved by itself after a while.

Steinbichler commented 3 weeks ago

Sorry about the confusion in the deleted comment. It was a problem with my HO installation everything woks fine I will upload the log asap. Regards Roland

CrazyUs3r commented 3 weeks ago

My log home-assistant_solarman_2024-08-16T08-13-04.070Z.log

Steinbichler commented 3 weeks ago

Here is my log home-assistant_solarman_2024-08-16T08-23-58.631Z.log Bildschirmfoto vom 2024-08-16 10-31-40

davidrapan commented 3 weeks ago

@Steinbichler and when you are observing the value does it really update with such a long period? Or just the HA shows it incorrectly?

davidrapan commented 3 weeks ago

Maybe fix: Proper implementation of sensor platform will do something about that strange update behavior.

CrazyUs3r commented 3 weeks ago

I test it also

Steinbichler commented 3 weeks ago

@davidrapan.

I did a test to cover my pannels. And yes ist last at least the 5 to 6 Minutes till I see the change in HA.

A question to my understanding: Even if the content of the register in my inverter did not change, the update in HA-solarman should read the unchanged content after the interval time? Is it not in this way?

And for the link in your comment to the definition file? Should I change it like it is in the description? and clear all the names?

davidrapan commented 3 weeks ago

I did a test to cover my pannels. And yes ist last at least the 5 to 6 Minutes till I see the change in HA.

Fuu, that is really strange :-/

A question to my understanding: Even if the content of the register in my inverter did not change, the update in HA-solarman should read the unchanged content after the interval time? Is it not in this way?

It will be read from the inverter. BUT! Ha won't update it's "Last updated" until the value really changes.

So the value just stays the same without any visible update trigger and soon as the new values differs from displayed it updates the state. And refreshes "Last changed/updated"

And for the link in your comment to the definition file? Should I change it like it is in the description? and clear all the names?

It was link to a commit, it affects whole source code not just definition profile.

CrazyUs3r commented 3 weeks ago

I now it. But slow wifi. So my ha view 20240816_134117

20240816_134842

davidrapan commented 3 weeks ago

@CrazyUs3r, you did not wait long enough for the file to finish uploading, hehe.

You have to wait few seconds until the "Uploading" from the name does not disappear. That indicates that the upload finished.

davidrapan commented 3 weeks ago

@Steinbichler Try v24.08.17 and see if it won't fix your issue.

bjoernmayer commented 3 weeks ago

Heyho, I am on 24.08.17 and I can see the same behaviour. Data is updated around every 5ish minutes

davidrapan commented 3 weeks ago

Hey @bjoernmayer. Please enable debug logging and post the log here.

Steinbichler commented 3 weeks ago

Hallo I am on 24.08.17 here again a log from my Installation. home-assistant_solarman_2024-08-19T14-20-56.963Z.log Regards

davidrapan commented 3 weeks ago

Hey @Steinbichler, from sensor named "Fault information Word 2" from profile you are using remove:

        lookup:
          - key: 0x0000
            value: "OK"
Steinbichler commented 3 weeks ago

Hallo davidrapan done, but no change. Here again a logfile from the time after the change in the devinition file.

home-assistant_solarman_2024-08-19T16-00-04.808Z.log

Bildschirmfoto vom 2024-08-19 17-35-39 Bildschirmfoto vom 2024-08-19 17-34-54

CrazyUs3r commented 3 weeks ago

i have add a 2mppt.yaml and here my log home-assistant_solarman_2024-08-19T16-00-44.380Z.log

davidrapan commented 3 weeks ago

@Steinbichler, according to the log there is clearly visible that HA talks with the inverter every 5 seconds and also gets the data correctly.

Whatever is causing the issue is happening after that in the HA cause there are also others like here for example @CrazyUs3r with the same device and it's working okay for him... So I'm really out of ideas what's causing issues for you.

Do you have the auto polling enabled?

CrazyUs3r commented 3 weeks ago

By the way, I still have the upload time of 5 minutes. I tried to change it with github.com/s10 his exe but it doesn't work. I already wrote to deye. I have also already changed was @davidrapan changed and everything that was done.

CrazyUs3r commented 3 weeks ago

No i have 1min Screenshot_20240819_191836_Deye Cloud

davidrapan commented 3 weeks ago

@CrazyUs3r, this is irrelevant for our integration.

davidrapan commented 3 weeks ago

I have also on the cloud refresh rates in minutes but it just means that servers from deye/solarman are asking for data in that interval.

CrazyUs3r commented 3 weeks ago

Update is comming in 1min Screenshot_20240819_194408_Home Assistant

davidrapan commented 3 weeks ago

@CrazyUs3r What about PV1 Power also every 1m?

davidrapan commented 3 weeks ago

I just checked it and it your devices really are not giving out new data with every request... My device does (It's also deye, even with set that on deye cloud to 1m) so i thought it should work the same for you guys too but I was wrong!

But that means it should be set somewhere in the device, right?

davidrapan commented 3 weeks ago

@CrazyUs3r, can you show me screen of your: http://{inverter_ip}/config_hide.html

CrazyUs3r commented 3 weeks ago

@davidrapan sure I'll send it to you tomorrow today it's too dark

CrazyUs3r commented 3 weeks ago

@davidrapan here all from ha Screenshot_20240819_203046_Home Assistant

davidrapan commented 3 weeks ago

Nono i was talking about http://{inverter_ip}/config_hide.html it's a page for the stick logger.

CrazyUs3r commented 3 weeks ago

What you have set in here?: solarman_stick_config_hide

Yes same

davidrapan commented 3 weeks ago

Ok.. mh..

davidrapan commented 3 weeks ago

What happens when you switch it to transparency and hit save? Or maybe it's not safe to do it. I don't know, it's up to you.

CrazyUs3r commented 3 weeks ago

I haven't figured out what the difference is yet. I switched last year and nothing changed. Maybe you know what the difference is.

davidrapan commented 3 weeks ago

I was wondering if it maybe won't affect the update_interval in some way.

CrazyUs3r commented 3 weeks ago

So now it is separated again and all data is gone Screenshot_20240819_203800_Home Assistant

davidrapan commented 3 weeks ago

You mean cause of night, right?

davidrapan commented 3 weeks ago

Anyway wrap up of this issue: As the inverter itself is the one who is sending (old data) and changing them for us once every 1m for @CrazyUs3r or 5m for @Steinbichler it's is sadly not an issue of the integration but either some sort of a hidden setting of the inverter cause it looks like this period can be at least changed to 5m or 1m or it's hardware limitation. :-/

CrazyUs3r commented 3 weeks ago

You mean cause of night, right?

Yes

davidrapan commented 3 weeks ago

Would like to know from where that value of 60s or 5m comes from.

Cause you know I have it set in the cloud too (but it has nothing to do with the data i read from the device): data_uploading_acquisition_period

CrazyUs3r commented 3 weeks ago

That's a good question in my m80 the solarman says 1min for upload 60s for the other but the values ​​in the app are only in 5min intervals

davidrapan commented 3 weeks ago

And did you also try deye cloud instead of solarman app?