Comments (11)
I tried to execute with this config.py and got the [ERROR] 'ModbusIOException' object has no attribute 'registers'. The IP of the inverter is correct.
inverter_ip = "192.168.XXX.XXX"
inverter_port = 502
# Slave Defaults
# Sungrow: 0x01
# SMA: 3
slave = 0x01
model = "sungrow-sh5k"
timeout = 3
scan_interval = 10
from solariot.
Check your slave address is correct too. If you do not know it, try cycling through different addresses from 0x01 to 0x04.
from solariot.
I have the same problem with sungrow-sh5k after a remote firmware upgrade. Have they changed the Modbus map? Slave address?
from solariot.
I have the same issue for a month or so after a firmware update.. have tried different slave address etc, no luck. I think it was to do with a fix for https://solarcybersecurity.com/
Otherwise, it's been running great and thank you!
from solariot.
Unfortunately (or perhaps fortunately), I have an older wifi module that wasn't in the firmware update scope provided by Sungrow.
Can you confirm the default TCP port (502) is still open?
from solariot.
Thanks for looking, yep, 502 is open:
Open TCP Port: 80 http
Open TCP Port: 502 asa-appl-proto
from solariot.
Hi meltaxa,
thanks for your great work, was working perfectly until recently. I guess i have same problem as chrisvivo.
Did you get it to work again?
from solariot.
Unfortunately not, I tried a multitude of things within my limited ability.
from solariot.
I managed to get it working again, by using a old wlan module like you described above. Interestingly i was using it over Ethernet and not Wifi before, by setting up the wifi Module on the inverter again, it somehow opened the ethernet cable port as well. Which allows me to use my old setup without the wifi module again.
from solariot.
I have a SG4K with an wi-fi interface. Tried using it with your SH5K config, got this:
Load config sungrow-sg4k
Load ModbusTcpClient
Connect
[ERROR] 'ModbusIOException' object has no attribute 'registers'
[ERROR] 'ModbusIOException' object has no attribute 'registers'
[ERROR] 'ModbusIOException' object has no attribute 'registers'
{}
Any idea? Where can I find register mapping for my inverter? How did you find yours?
Thanks.
from solariot.
Refer to #12 which will track any updates on using the SungrowModbusTcpClient library which addresses the encryption issue on later firmware versions.
from solariot.
Related Issues (20)
- RPi4 HA Docker - MQTT No sensor/intergration - modbus proxy?
- sungrow-sg5kd Modbus connection failed HOT 2
- Sungrow SG10RT inverter modbus HOT 10
- WiFi vs Ethernet HOT 9
- python 3.9.2 issues? HOT 1
- Not working with InfluxDB 2.0 HOT 2
- Sungrow SG10RT - "unable to decode request" HOT 17
- InfluxDB and Grafana HOT 1
- SG15RT support HOT 2
- Command errored out with exit status 1 HOT 4
- Adding in the custom user to the Dockerfile broke existing permissions HOT 1
- Failed to scrape inverter: sg8kd HOT 1
- InfluxDBClientError: 400: {"error":"unable to parse 'Sungrow,location=XXXXX ': invalid field format HOT 1
- Error loading config.py HOT 2
- How to create a new device from template
- Quick update
- Sungrow SH5K HOT 1
- Solariot + SMA Inverters xx000TL-20
- WARNING:Modbus connection failed WARNING:Failed to scrape inverter, sleeping until next scan HOT 1
- WARNING:root:Failed to scrape inverter, sleeping until next scan HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solariot.