Comments (9)
Thank you for taking the time to test the integration (it helps a lot with detecting issues that I might miss in my testing).
Yeah the error given if pymodbus < 3.0.0 is used is sadly really generic.
Not using integrations that use 2.x.x versions of pymodbus solves your issue (for example the solaredge modbus tcp integration latest version will work with this integration enabled while older versions won't).
When the integration gets stable enough I will look into getting the core modbus integration up to 3.x.x of the pymodbus package.
So that users can add this integration in conjunction with their existing modbustcp integration setup to allow for a less breaking switchover.
Will leave this issue open for now so that anyone having the same problem can more easily find the solution
from hass-victron.
OK I found out problem -> I had in configuration.yaml old modbus integration defined -> when I deleted it -> it seems it is working -> I was able to set up the integration.
from hass-victron.
Hi, I ran into the same "Invalid handler specified
" error when I tried to set up this integration. HA is running from the docker (actually podman) container if that might make a difference. There's also this line in the log:
2022-12-01 00:06:55.909 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading configuration flow for integration victron: cannot import name 'ModbusTcpClient' from 'pymodbus.client' (/usr/local/lib/python3.10/site-packages/pymodbus/client/__init__.py)
As far as I know, I'm not using any integrations that would have conflicted over pymodbus, so I don't know what was causing it. I've worked around it by force upgrading pymodbus in the container to 3.0.2 for now. In case anyone else ran into this, here is what I did (restart HA afterwards):
$ podman exec -it <HA container name> /bin/bash
bash-5.1# /usr/local/bin/pip3.10 install pymodbus==3.0.2
Collecting pymodbus==3.0.2
Using cached pymodbus-3.0.2-py2.py3-none-any.whl (142 kB)
Installing collected packages: pymodbus
Attempting uninstall: pymodbus
Found existing installation: pymodbus 2.5.3
Uninstalling pymodbus-2.5.3:
Successfully uninstalled pymodbus-2.5.3
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pysmarty 0.8 requires pymodbus==1.5.2, but you have pymodbus 3.0.2 which is incompatible.
Successfully installed pymodbus-3.0.2
from hass-victron.
@aheadley thanks for contributing a work-around for people running their own dockerized HA
So to update on the co-existence issue between the modbus integration and this integration:
I submitted a PR to update the core version but it seems that the maintainer of the integration wants to wait for the 3.1.x release before updating.
Expected timeline for the pymodbus 3.1.0 version is somewhere in december.
So it would be a reasonable expectation that around january of 2023 this and the built in modbus integration will be able to co-exist.
from hass-victron.
That is a shame as I have a need for both the victron and the existing modbus set up. Any workaround to get them to both work?
from hass-victron.
Not in the same home assistant instance.
Since, there can only be one pymodbus library version installed per homeassistant core runtime environment.
You could try running 2 homeassistant instances and link them together with the remote homeassistant integration "https://github.com/custom-components/remote_homeassistant".
Otherwise the only option is to wait until the integrated modbus integration also starts using a v3.x.x pymodbus version.
from hass-victron.
got this error as well Config flow could not be loaded: {"message":"Invalid handler specified"}
from what I gather on the comments this is not really ready to be intergrated into home assistant well I guess I will stick to my old method of build the sensors by hand in modbus
from hass-victron.
@trentjw to clarify on your statement:
The integration is ready to be integrated into home assistant.
Currently it's just a choice between the build-in modbus integration with yaml configuration and this integration(/multiple other custom modbus integrations like: solaredge multi modbus) that have already moved to the pymodbus > 3.x.x release.
The core modbus integrations maintainer stated that the core modbus integration will also update to 3.x.x once the pymodbus 3.1.x release has been made.
This is planned for this month so in a month or two the core modbus integration will be able to be run again in parallel with this integration.
from hass-victron.
Closing this issue as from 2023.2.0 and onwards home assistant core modbus integration uses pymodbus 3.1.1.
from hass-victron.
Related Issues (20)
- 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 8
- 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.
- Cannot change IP address HOT 1
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.