Hi, I have recently connected my Goodwe inverter and am looking on how to control it. I have used this to connect it to openHAB, which works out of the box (thank you!). But this doesn’t allow me to control it.
I am aspecially intrested in controlling the battery mode and changing the paramters on the fly (every hour max.)
Is there a way to do this, maybe add it to this script based addon-on? I have found this home assistant implementation but can’t find a OH counterpart…
Or is this the moment I have to get HA running and control it via HA using OH? Any advice highly appreciated.
Hi all,
I have recently upgraded from Debian 11 Bullseye to 12 Bookworm and suddenly my set-up (as per the original post in this thread) has stopped working.
If I run the script manually, I get the following error:
user@machine: bash /etc/openhab/scripts/goodwe.sh
Traceback (most recent call last):
File “/etc/openhab/scripts/goodwejson.py”, line 2, in
import goodwe
ModuleNotFoundError: No module named ‘goodwe’
I guess the problem is that the goodwe module is no longer available to the script.
This solution does not work either: sudo -u openhab pip install goodwe
as this has apparently been disabled in Bookworm.
Any help to restore the system to functional would be most appreciated.
Thank you Diego for the prompt reply. I had already tried that to no avail. Being a beginner, these virtual environments a a little Greek to me…
sudo -u openhab pip install goodwe
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.11/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.