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

Energy Production and Consumption are missing attributes #3

Open
Byter09 opened this issue Aug 9, 2024 · 4 comments
Open

Energy Production and Consumption are missing attributes #3

Byter09 opened this issue Aug 9, 2024 · 4 comments

Comments

@Byter09
Copy link

Byter09 commented Aug 9, 2024

Hello!

I received my RNG-SYNC-V3-B32B today and could immediately get data out of my Renogy Rover. Works flawlessly.

However I noticed an annoying problem: I can not add the power generation and consumption to the energy dashboard.

After looking up why not (home assistant links to this page: https://www.home-assistant.io/docs/energy/faq/#troubleshooting-missing-entities), and confirming which attributes are set, it would seem that state_class: total_increasing is missing.

I'll see if I can fix that locally, but according to Home Assistant integration developers need to do this.

If there's anything else required of me to help out with this, let me know.

Should I be able to "hotfix" this locally by adding the attribute myself (hopefully without it being overwritten by MQTT messages), I'll add another comment here.

Thanks :)

@Byter09
Copy link
Author

Byter09 commented Aug 9, 2024

Okay yes, for anyone else encountering this problem: I added the attribute myself on the developer site for states in Home Assistant and now I was able to add it to the dashboard. I just really hope it's not being overwritten.

@Byter09
Copy link
Author

Byter09 commented Aug 9, 2024

I just checked again. The dashboard now complains about the missing state class. So it is in fact being overwritten. I'll try to find a permanent solution.

@Byter09
Copy link
Author

Byter09 commented Aug 10, 2024

Okay, I got it working.

For anyone else encountering this problem, here's the fix for Home Assistant:

homeassistant:
    customize:
        sensor.<entity-name>_power_consumption_today:
            state_class: "total_increasing"
        sensor.<entity-name>_power_generation_today:
            state_class: "total_increasing"

Just replace the sensor names accordingly, restart HA, and it should be good to go.

@thewestlabs
Copy link
Owner

Hello, I don't monitor this page actively. If any further problems, please contact me through product page.

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

No branches or pull requests

2 participants