Coder Social home page Coder Social logo

Comments (7)

braamvh avatar braamvh commented on May 28, 2024 1

Thanks for the quick response. In the interim I am going to go back to my old modbus config until January or so. If I could run my own modbus sensors and this integration, I would have just added the ones that gets incorrectly detected, but right now from the README that won't work.

I really like this integration, so I hope this isn't too difficult to take forward. It adds quite a bit of extra data that's timeconsuming to add in YAML by hand, so with this I have many more sensors than I had before.

from hass-victron.

sfstar avatar sfstar commented on May 28, 2024 1

Simplifying the yaml modbus configuration for users is the exact reason this integration was born ;).
I thought it to be better to put effort into an integration that simplefies the victron modbus setup in home assistant.
Rather than spending the same (or probably higher) amount of time finding available registers, writing yaml config and testing whether the yaml config was valid.

Having said that improving upon the connection resiliency isn't a high priority for me at the moment (I have the gx device connected via a lan cable to the switch on which homeassistant is connected).
Just yesterday I completed my physical system and I still need some time to build additional battery capacity / use the output of the integration in my automations.
Once that is done I will return to improving the connection resilience (hence the end of december / january timeline).

However, I'm always open to receiving a PR to add / improve upon the integration ;).

from hass-victron.

braamvh avatar braamvh commented on May 28, 2024

Strange. An hour or so later it started working again on its own and populating all the entitiies. I'll keep an eye on it and see if this happens again.

from hass-victron.

sfstar avatar sfstar commented on May 28, 2024

Hello and thank you for opening this issue.

Currently the integrations connection loss handle mechanism is rudimentary at best.
This means that in case of some (your example the battery / grid meter) slaves not reporting new values the integration should do a partial update. (of only the data that was able to be retrieved)
In case it loses the connection it will keep trying to retrieve new data and when it does the integration will publish the new data.
The availability of the entities and warning / error logging in case of failed connection/updates etc are part of the currently planned improvements. (As can be seen in the readme of this repository).

Therefore, this issue will be tackled when the connection handling gets improved (currently planned for the end of december / begin of january)

from hass-victron.

braamvh avatar braamvh commented on May 28, 2024

Heh, I am a network engineer, not a developer, my coding skills are fairly basic :) But who knows, this may fall in my capability.

About my setup that may explain some of the things I see:

  • My CCGX is LAN-connected, so network connectivity is unlikely to be the issue. I probe it frequently on a network level, and the only times it misbehaves is when it auto-updates.
  • I have a CCGX, not a Cerbo GX. I am not too sure if that is the cause of the issue, as the hardware in the CCGX is not as powerful. I am intending to upgrade to a Cerbo sometime next year.
  • We have a lot of power outages in South Africa (hence the invterter in the first place). When this happens, the ET112 falls away and becomes unreadable. It's still detected by the integration, though, but with all values listed as "Unavailable". When it recovers, I have seen it register the current value, then never update again after that.
  • The VE.Bus device never gives me issues, the entities update relatively quickly, so in general polling works.
  • I use the default polling from the Modbus module, which according to the docs is 10s. Not sure if that makes a difference.

The initial battery issue never resurfaced and may be a once-off thing. What I did see, however, is that since the system device and the first Ve.CAN device have the same unit ID, the integration seems to get confused between them. Sometimes unit 0 shows up as system and unit 100 as solarcharger, other times both show up as solarcharger. In that case the solar charger entities go unavailable as well, and I have not found a way to restore them, other than re-installing the integration. This happens most often when I restart HA for some reason, mostly for updates. In my modbus config I just use unit 100 for both and I find it works the easiest.

I completely agree with the basis for this integration, doing modbus by hand is quite time-consuming, trying to completely understand what the GX device returns and how to transform it. The integration itself is very good.

from hass-victron.

Raini20 avatar Raini20 commented on May 28, 2024

I think I have the same issue, some entities become Unknown.
Screenshot_20230104_194612_Chrome
Screenshot_20230104_195902_Chrome

When the integration rescans it discovers the _100 device as _0. I can fix it with restarting and it keeps polling data for a few hours but randomly stops. I just read that restarting breaks it, but in my case restarting fixes it

from hass-victron.

braamvh avatar braamvh commented on May 28, 2024

I am going to close this, as I am not sure the integration can fix it. I have replaced my CCGX with a Cerbo and my lead-acid bank with a Li-Ion bank. I'll monitor and see if I need to open a new issue. The VE.Can issue is the same as #21

from hass-victron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.