Skip to content
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

Fixes for zcs_azzurro-hyd-zss-hp.yaml #397

Merged

Conversation

gionaf
Copy link
Contributor

@gionaf gionaf commented Feb 9, 2025

Note: this pull request requires my other branch ("giona_zcs_azzurro-hyd-zss-hp_new-sensors") to be merged first!

Device states didn't match Sofar specifications:

  • 0x0003 should be "Emergency power supply" (was "Grid UFP" which doesn't exist in specs)
  • 0x0004 should be "Recoverable fault" (was "Emergency power supply" which is actually 0x0003)
  • 0x0005 should be "Permanent fault" (was "Recoverable fault" which is actually 0x0004)
  • 0x0006 should be "Upgrade" (state - was "Permanent fault" which is actually 0x0005)

Please check the reference for register addres 0404 : https://github.com/user-attachments/files/17180102/SOFAR-G3.External.Modbus.Protocol-EN-V1.10.20220622.xlsx

Battery

  • Sensor "Battery Temperature": rule should be 2 as default (was 2 in Stephan Joubert's home_assistant_solarman)
  • Sensor "Battery Cycles" should have state class "measurement"

Update intervals

  • Device state and faults lowered to 5 (from 30): you probably want to know as soon as possible if your inverter has a problem...
  • Insulation resistance lowered to 30 (from 300): you probably want to know as soon as possible if it drops below a threshold (300 was probably a typo)
  • Battery cycles and SOH increased to 30 (from group default 5): they aren't updated frequently so there's little value in retrieving them every 5 seconds

- Battery DOD (depth of discharge)
- Battery EOD (end of discharge)
- Battery EPS buffer
- Load Voltage
- Load Frequency
- Today Load Consumption
- Total Load Consumption
- Serial Number (inverter)
- Hardware Version
- Software Version Master
- Software Version Slave
- Safety Version
- Safety Firmware Version
- Safety Hardware Version
This value is not documented in Sofar specs, it may be equivalent to "Grid Failure" in Huawei inverters but it doesn't have its own error ID.
It's fired when the power grid experiences an outage, the AC power cable is disconnected or the AC circuit breaker is OFF, and "Device State" is "Emergency power supply"
It's only fired when the "Load" port has a connection, otherwise you'll only get a "ID02 Grid Under Voltage Protection", so it's more of a "state" then an actual "error".
- 0x0003 should be "Emergency power supply"
- 0x0004 should be "Recoverable fault"
- 0x0005 should be "Permanent fault"
- 0x0006 should be "Upgrade" (state)
Please check the reference for register addres 0404 : https://github.com/user-attachments/files/17180102/SOFAR-G3.External.Modbus.Protocol-EN-V1.10.20220622.xlsx
…as soon as possible if your inverter has a problem...
…know as soon as possible if it drops below a threshold...
…oon as possible if your inverter has a problem...
…frequently so there's little value in retrieving them every 5 seconds
@davidrapan
Copy link
Owner

davidrapan commented Feb 9, 2025

Hi @gionaf,

Sensor Battery Cycles should have state class measurement

I think it should be total_increasing

Also, can you please do the commit on top of current main? (because of the squash merging)

Thanks.

@davidrapan davidrapan merged commit f41e818 into davidrapan:main Feb 9, 2025
@gionaf
Copy link
Contributor Author

gionaf commented Feb 9, 2025

Hi @davidrapan ,

I think it should be total_increasing

yes, sounds right

Also, can you please do the commit on top of current main? (because of the squash merging)

i see you already merged, are those changes still needed?

@davidrapan
Copy link
Owner

i see you already merged, are those changes still needed?

Nono, I solved it by merging just the second PR (which also contained commits from the previous one). 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants