Comments (7)
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.
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.
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.
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.
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.
I think I have the same issue, some entities become Unknown.
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.
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)
- EV Charger (evcharger_mode and evcharger_position) show incorrect values
- Unit of measurements w, W, W, W, W, W, W of input sensor.victron_solarcharger_yield_power_239, HOT 5
- Falsche kWh-Werte; Incorrect kWh values HOT 1
- include battery data in home-assistant energy-dashboard HOT 5
- Requires reboot of Cerbo GX after Homeassistant restart HOT 5
- Interference of Victron-Integration with Victron EVCS? HOT 6
- ValueError: 245.0 is not a valid solarcharger_state HOT 6
- missing Victron Solarcharger after change Charger hardware HOT 7
- OpenDTU PV Inverter missing HOT 6
- No more than 1 PV-inverter? HOT 13
- Feature request: set charge mode of EVCS HOT 4
- Loss of connection to GX device, entities not updating or status unknown HOT 15
- Vebus decode errors HOT 3
- Detection of MPPT trackers switches between settings and solarcharger upon reboot HOT 43
- Missing Victron Solarsmart MPPT HOT 3
- Entities show tenths of a watt
- Please include addition ModBUS IDs for inverters HOT 3
- Missing devices on a system with 2 Cerbo GXs HOT 1
- Removal of this integration leaves all 200 entities and statistics in place HOT 1
- Multiphase regulation moved and stopped working.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hass-victron.