-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Component error: modbus #115
Comments
Kommentiere in der configuration.yml die modbus Einträge aus dann geht's wieder. Ist natürlich maximal ein workaround. |
Habe ich gemacht, bzw. neue yaml angelegt..dann kam dieser fehler: Invalid config for [influxdb]: [modbus] is an invalid option for [influxdb]. Check: influxdb->influxdb->modbus. (See /config/configuration.yaml, line 23). aus der conig ab zeile 23: |
I got the same problem. Modbus stopped working 2-3 weeks ago. As a workaround I have comment out all modbus code in configuration.yaml to be able to restart Home Assistant. So at the moment modbus is not working for me. Even only this one line stops Home Assistant from restarting (or loading modbus support) "... modbus: ..." |
Please test the beta v0.1.4 release of this interation (this is a copy paste reply which isn't customized for each issue v.0.1.4 is attempting to adres). |
After installing the Beta and re-enabling "modbus: " the code validation of configuration.yaml goes on forever so its not possible to use modbus yet. |
Thank you for testing @TonyLar. If so what version of HA core are you running? What I think might have happened is that with hass-victron v0.1.3 an incompatible pymodbus library was installed that breaks your core modbus integration for the ha core version you are running. If you are able to access the ha console of your instance via either an attached monitor/keyboard and mouse (or via this addon https://community.home-assistant.io/t/home-assistant-community-add-on-ssh-web-terminal/33820)
This will let homeassistant check if there were modifications to it's image after starting up. This will ensure that an different pymodbus version that was installed by (the previous version of) this integration is wiped. |
Thanks for your quick response and excellent explanation. Here are the versions I'm running: I've have two solarpanel installations that I've been monitoring without any problem for about a year. Since the Victron integration only can be configured to communicate with one Cerbo GX I have been using modbus to communicate with my second Cerbo GX. I have no other modbus configurations. I will try the ha core rebuild later today. |
Now I have executed ha core rebuild but unfortunately the issue persist. The only difference I see between v0.1.3 och v0.1.4 is when I enable "modbus:" in configuration.yaml: With v.0.1.4 the code validation hangs (goes on forever) so there is no error message. Maybe the different behavior can be a clue? |
Looking forward to see a fix for this, I have the same issue. I reverted back to Home Assistant 2023.8.1 to fix this issue. Edit: I think this might be related: home-assistant/core#98692 |
Update: After update and total restart I got both modbus and the Victron integration running again. I'm using v0.1.4 together with: The validation of configuration.yaml also is ok. Just been up for a few minutes now but I'll hope it will be stable now :-) |
I can confirm that v0.14 fixed my issues also, running 2023.8.4 without issues. Thanks! |
Thanks for all support! |
Component error: modbus - cannot import name 'Defaults' from 'pymodbus.constants' (/usr/local/lib/python3.11/site-packages/pymodbus/constants.py)
finde keinen fehler, bzw komme nicht zu diesem verzeichnis
The text was updated successfully, but these errors were encountered: