Closed plague-doctor closed 3 years ago
get anywhere? I've got a SG8K-D and have the same output as yourself.
Might be worth noting that I couldn't get pycrypto installed properly, so have resorted to pycryptodome - which is a drop-in replacement.
This is what I'm doing atm to get my SG5K-D
running, I'll be PR'ing it into this repo once my other PRs land!
root@b3b2a4bfddac:/solariot# cat modbus-sungrow-sg5kd.py
read_register = {
"5003": "daily_power_yield_10",
"5004": "total_power_yield",
"5008": "internal_temp_10",
"5011": "pv1_voltage_10",
"5012": "pv1_current_10",
"5013": "pv2_voltage_10",
"5014": "pv2_current_10",
"5017": "total_pv_power",
"5019": "grid_voltage_10",
"5022": "inverter_current_10",
"5031": "total_active_power",
"5036": "grid_frequency_10",
}
holding_register = {
"5000": "year",
"5001": "month",
"5002": "day",
"5003": "hour",
"5004": "minute",
"5005": "second"
}
scan = """{
"read": [
{
"start": "5000",
"range": "40"
}
],
"holding": [
{
"start": "4999",
"range": "100"
}
]
}"""
Currently going through the registers and matching it all up against my isolarcloud app thingy!
I've created PR #20 which at least for me is working!
PR#20 has been merged. Thanks for the contribution.
cat config.py
Returns:
I have tried to increase timeout and scan_interval but is gives same output...
I am happy to help investigate but not sure where to start...