-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Erratic inputs from Deye 12K repeatedly received #38
Comments
Additional info: I cannot see these peaks in the HA Solarman integration, which is running in parallel (using the Deye WLAN connection). |
What is the sample rate you are using on the ESP32 ? Is it the default ~ 15 secojnds ? Are you using a proper cable, shielding, etc ? Your RS485 Transceiver is isolated or not ? |
Hi! Sample rate should be default (15 sec) - I did not change it and 15 sec match the update interval I see in HA. I am not using shielded cables, but the connection between inverter and RS485 module is only 50 cm and between module and ESP32 only a few cm). About the isloated RS485 transceiver I'm not sure, I think it is not isolated (looks like the one in the esphome-for-deye README). Thanks, |
Did you try rebooting the ESP32 ? I had weird issues happening with log level set to DEBUG, so it could be that after a while some issues pop up. Try setting to INFO. About your 30806 it's a bit weird. If it was 32767 I would have told you it's probably an integer overflow for a 16-bit SIGNED Integer (16 bit signed is between -32768 and +32767). Did you try to increase your Stack Size ? See an example here: I was doing a lot of troubleshooting for a very separate issue (OTA) so the file is not clean at all. But try to implement the part for the option:
It's been running OK for me for approx. 1 Month on an M5Stack Atom S3 Lite with Isolated RS485 Transceiver. EDIT 1: if you are powering from the CN pins with a 5V Buck Converter, try to use an AC Power Supply. Try a beefy one, 2A or better, to exclude any Power Supply Issue. IIRC I read on these Issues that the CN2 Power wasn't very stable ... I use a Raspberry Pi 5V/3A PSU to cross-check and troubleshoot, just to exclude any potential other source of issue. |
Thank you very much for your quick and comprehensive support! |
No worries. I'm sure there were many other Issues reported that required some capacitor etc or a different power supply than the CN2 pins (you might want to browse the "Issues" Section including the closed ones if you want to go down that road, I cannot remember if it was on "both" sides of the Buck Converter or only on the Output). I suspect that the CN2 Power is not so stable / stabilized. So maybe Inverter Load Response coupled with your Buck Converter causes some Power Supply instability. Or it could also be EMC related. Otherwise yeah ... Just use an external PSU and be happy 😄. You can also do it the other way if it's preferable: I used a 10m long CAT6 Cable so my ESP32 sits in the Control Cabinet, away from the Inverter, and close to a 230VAC Socket. |
Hi, I've got the same issue. It seems only to appear when the Converter has a high load. It was running since Sebtember last year without any issues. Since a month or so some measurements show the described high values for a very short time. In particular it`s the battery capacity and the PV Power. I'll try to use a separate power supply as well. I hope thats gonna help. |
I do have the same problem with spikes, i am reading out the deye with an esp32 lilygo rs485 poe board which is powered by ethernet power alone, setup is very clean cause of less cables but i wonder how those spikes appear... did anyone try getting rid of the esp32 integration and use f.e. waveshare poe or similar? And on which port on the deye did you guys have your rj45 cable plugged in for reading out modbus? PS: its the same number 30806W... weird PPS: meanwhile i thought about how to workaround this problem, as for now, i will go with this:
not the cleanest way to adress this problem, but at least i don´t see spikes anymore... |
Hi, I had the same issues (see the post before) but since I'm using a separate Power supply for my ESP32 board the spikes are gone and it works like a charm. I'm using a normal ESP32 board with USB Power supply. |
Yep, i already installed a 12V din rail power supply, thank god i installed the esp case next to the power distribution box. |
Same issues with external 3A power supply (24V)... No idea... |
I had the same issue, also had the TTL board "locking up" I ended up trying multiple ESP32 and TTL boards. Now i have a 5V Buckconverter, ESP32 and TTL board all placed inside the inverter. (With the screw terminals) So maybe order 5-10 different boards, and start replacing.... |
I am using this integration now for several month on my Deye 12K inverter and have observed that received values for different entities (sun12k-pv2_power, sun12k-battery_capacity and a lot more, but not all of them) to be completely out of range, e.g. sun12k-pv2_power being set to 30806kW (real maximum should be around 10.000kW). It seems to appear at random and only for a short period of time.
During this "condition" some entities seem to be set to fixed values (e.g. "30806" appears on several other entities), maybe depending on data type (integer, float, ...) or units.
The behavior started to appear on April 23rd, see included picture (peaks = wrong values). The effect seems to get stronger with higher solar radiation / higher values.
From the Debug log:
I have no clue but it somehow looks that with certain values / bit combinations the reception of data is not working correctly.
Any ideas?
Thank you,
Ewald
The text was updated successfully, but these errors were encountered: