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

HA setup issues #40

Closed oaktek closed 2 years ago

oaktek commented 2 years ago

Hi @StephanJoubert, thanks so much for this integration! Wondering if you can help me as I cant figure this out and I have followed your instructions.

Firstly in configuration.yaml i have the following:

sensor:

Then in the energy configuration I do not have the option you show in your screenshots, this is what i have:

image

Then when i do choose some options i have errors saying that last_reset is missing and I cant add the battery info:

image

This is what my energy dashboard looks like:

image

This is the sensor info i have:

image image image

I would so appreciate your help!

oaktek commented 2 years ago

Hi, sorry found my main issue! I had to use the parameters.yaml and now im getting more info. Can you tell me if im missing anything or if anything is wrong?

Heres the list I now get in energy configuration:

image

Last one being: Deye Total Production

image

In the solar production im still getting that one paramter missing as you can see and in the batteries area i dont have the options you have

Below the energy dashboard and something doest seem right, you will see a photo of the inverter display

image

20220416_122703 So you will see the solar production on Kw, the house usage and whats coming in from eskom (power company) doesnt seem right, also not too sure about the battery info

pepelillo commented 2 years ago

Not sure if this can help, but make sure that you put your CT clamp in the proper way (see doc)

StephanJoubert commented 2 years ago

@oaktek , I think you may have an older version of Home Assistant that requires the "last-reset" parameter. I had it in initially, but with the update they recommend that it be taken out. The dashboard is not 100% the same as the inverter screen since the Home Assistant dashboard shows a cumulative icon, and the inverter show it in real-time.

Let the dashboard collect info for a day and then see if the results look correct.

midlakelands commented 2 years ago

Hi, I was having similar issues with the solis-hybrid parameters, after reading the thread on it I decided to change some of the daily parameters but I did it with the following in configuration.yaml as that allowed me to experiment without changing the original files. After an hour the stats started to work (I believe the energy card updates at 12 mins past each hour)

homeassistant: customize:

Add an entry for each entity that you want to overwrite.

sensor.solarman_daily_generation:
  state_class: total_increasing
sensor.solarman_today_battery_discharge:
  state_class: total_increasing
sensor.solarman_today_battery_charge:
  state_class: total_increasing
dsgepers commented 2 years ago

I've acctually been solving this by copying the configuration and adding an additional field:

    - name: "Daily Production"
      class: "energy"
      state_class: "total"      
      uom: "kWh"
      scale: 0.01
      rule: 1
      registers: [0x0019]
      icon: 'mdi:solar-power'   

    - name: "Daily Production (Total Increasing)"
      class: "energy"
      state_class: "total_increasing"      
      uom: "kWh"
      scale: 0.01
      rule: 1
      registers: [0x0019]
      icon: 'mdi:solar-power' 

Which is less than perfect, because this morning (after updating last night), no solar generation showed up in the dash and the custom property was gone. I think I might give @midlakelands solutions a try, that seems solid.

CreateYourAccount-username commented 2 years ago

I have the same issue with a Solis inverter. All the other things work fine, it's just adding it to the Energy dashboard that doesn't work due to the "Last reset missing The following entities have state class 'measurement' but 'last_reset' is missing: sensor.solarman_daily_generation" error.

I'm using solarman 1.4.1 and HA 2022.4.7

midlakelands commented 2 years ago

I have the same issue with a Solis inverter. All the other things work fine, it's just adding it to the Energy dashboard that doesn't work due to the "Last reset missing The following entities have state class 'measurement' but 'last_reset' is missing: sensor.solarman_daily_generation" error.

I'm using solarman 1.4.1 and HA 2022.4.7

Try the solution i gave above (replacing your sensor name for daily generation and battery charge/discharge) it'll update the energy card in an hour or so. Alternatively you can update the original yaml file but I didn't bother change it. You will need to either restart HA or reload the customization yaml to see those updates.

The explanation for why I changed them to total_increasing is below image

CreateYourAccount-username commented 2 years ago

I have the same issue with a Solis inverter. All the other things work fine, it's just adding it to the Energy dashboard that doesn't work due to the "Last reset missing The following entities have state class 'measurement' but 'last_reset' is missing: sensor.solarman_daily_generation" error. I'm using solarman 1.4.1 and HA 2022.4.7

Try the solution i gave above (replacing your sensor name for daily generation and battery charge/discharge) it'll update the energy card in an hour or so. Alternatively you can update the original yaml file but I didn't bother change it. You will need to either restart HA or reload the customization yaml to see those updates.

The explanation for why I changed them to total_increasing is below image

I have put those duplicate sensors in the solarman solis_hybrid yaml. I think it's working okay, slowly getting some results in. I'll see how it performs in the sunshine tomorrow. Thanks!

CreateYourAccount-username commented 2 years ago

I have the same issue with a Solis inverter. All the other things work fine, it's just adding it to the Energy dashboard that doesn't work due to the "Last reset missing The following entities have state class 'measurement' but 'last_reset' is missing: sensor.solarman_daily_generation" error. I'm using solarman 1.4.1 and HA 2022.4.7

Try the solution i gave above (replacing your sensor name for daily generation and battery charge/discharge) it'll update the energy card in an hour or so. Alternatively you can update the original yaml file but I didn't bother change it. You will need to either restart HA or reload the customization yaml to see those updates. The explanation for why I changed them to total_increasing is below image

I have put those duplicate sensors in the solarman solis_hybrid yaml. I think it's working okay, slowly getting some results in. I'll see how it performs in the sunshine tomorrow. Thanks!

Well, it's partially working. The values are correctly updated into the new entities. However the energy dashboard seems to lagging with the updates (1 or 2 hours behind). That didn't happen before (I'm using https://github.com/hultenvp/solis-sensor for that, which is a little bit slower with polling but does update the energy dashboard straight away.

This is probably Home Assistant related though as solarman does update the entities promptly.

CreateYourAccount-username commented 2 years ago

Well, it's partially working. The values are correctly updated into the new entities. However the energy dashboard seems to lagging with the updates (1 or 2 hours behind). That didn't happen before (I'm using https://github.com/hultenvp/solis-sensor for that, which is a little bit slower with polling but does update the energy dashboard straight away.

This is probably Home Assistant related though as solarman does update the entities promptly.

Okay, embarrassing... the device I checked HA on had the time set to the wrong timezone, that messed up the Energy Dashboard display... So the solution as above works perfectly, no issues