StephanJoubert / home_assistant_solarman

Home Assistant component for Solarman collectors used with a variety of inverters.
Apache License 2.0
512 stars 191 forks source link

HYD3000 / HYD6000 protocol #45

Closed paqp closed 2 years ago

paqp commented 2 years ago

Hi! I started from your files to map my HYD6000. After weeks of researches I mapped a 77 components of inverter! My model is branded "ZCS AZZURRO" but I saw that's the same for unbranded ones. And this is what I got: solarman1 solarman2 solarman3

A lot of datas! This inverter has NO separate entities to show charging/discharging batteries or giving/getting energy from grid, but it has one entity for grid in/out and one for batteries charge/discharge. So if, for example, entity "batteries charge/discharge power" has a positive value, batteries are charging, if it has negative value they are discharging. So I'm thinking how I could use this to integrate with HA because it requires 2 distinct entities for grid and for batteries.

I hope it will help hyd3000-6000.txt

Cheers! Paq

samdunne commented 2 years ago

Hey Paq. I am using the same inverter and have done more or less the same as what you have above. Have you had problems with massive spikes in your data?

paqpal commented 2 years ago

yes, more or less... I'm using filter in HA. Are you using the "daily" parameters in the Energy configuration for grid and batteries?

samdunne commented 2 years ago

I am. Would you be able to share your filter and config for the energy dashboard?

paqp commented 2 years ago

This is my configuration:

  - platform: filter
    name: "Pannelli Produzione Istantanea - filtrato"
    entity_id: sensor.solarman_pv_instant_generated_pw
    filters:
      - filter: range
        lower_bound: 0.0
        upper_bound: 10.0

  - platform: filter
    name: "Battery Percentage - filtered"
    entity_id: sensor.solarman_battery_percentage
    filters:
      - filter: range
        lower_bound: 0.0
        upper_bound: 100.0

  - platform: integration
    source: sensor.pannelli_produzione_istantanea_filtrato
    name: energy_spent
    unit_prefix: k
    round: 2

I use the last one - platform: integration for instant generated power conversion from kW to kWh.

energyconf

It's not perfect but it's working. I'm changing something everyday. This is the last file I made. HYD3000-6000 parameters-v2.txt

samdunne commented 2 years ago

Thank you! Did you eliminate the spikes from your energy dashboard with those sensors? Are they filtered or straight from the inverter?

StephanJoubert commented 2 years ago

Thanks @paqp . I have pulled into the main branch and it will be in the next release. If you want to make changes, just clone the repo and make a pull request.