Great, we’re one step further. So for now, I did the following:
Change package repository to “Candidate”:
/opt/victronenergy/swupdate-scripts/set-feed.sh candidate
The Python tomllib needs to be added manually:
opkg install python3-tomllib
Installation of dbus-mqtt-devices:
root@einstein:/data/drivers/dbus-mqtt-devices-0.8.0# ./bin/setup.sh
dbus-mqtt-devices: Setup in /data/drivers/dbus-mqtt-devices-0.8.0 started
dbus-mqtt-devices: Checking to see if Python's Pip is installed
pip 24.0 from /usr/lib/python3.12/site-packages/pip (python 3.12)
dbus-mqtt-devices: Pip install module dependencies
Collecting PyYAML~=6.0 (from -r /data/drivers/dbus-mqtt-devices-0.8.0/requirements.txt (line 1))
Using cached pyyaml-6.0.2.tar.gz (130 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting dataclasses~=0.6 (from -r /data/drivers/dbus-mqtt-devices-0.8.0/requirements.txt (line 2))
Downloading dataclasses-0.6-py3-none-any.whl.metadata (3.0 kB)
Downloading dataclasses-0.6-py3-none-any.whl (14 kB)
Building wheels for collected packages: PyYAML
Building wheel for PyYAML (pyproject.toml) ... done
Created wheel for PyYAML: filename=pyyaml-6.0.2-cp312-cp312-linux_armv7l.whl size=45425 sha256=f5715fdd2d9ba463cb21839dd68c4ebbbbe374e61ae922797c50a990fbba9199
Stored in directory: /data/home/root/.cache/pip/wheels/db/db/e2/4a1264f6c5192c518338cd8c226caae9f43c610fdb76c1ebcb
Successfully built PyYAML
Installing collected packages: dataclasses, PyYAML
Successfully installed PyYAML-6.0.2 dataclasses-0.6
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
dbus-mqtt-devices: Set up Victron module libraries
dbus-mqtt-devices: Set up device service to autorun on restart
dbus-mqtt-devices: Adding device service to /data/rc.local
Now, the installation is working fine but I’m running into the Paho MQTT version incompatibility:
ValueError: Unsupported callback API version: version 2.0 added a callback_api_version, see migrations.md for details
As dbus-mqtt-devices is referring to the /opt/victronenergy/dbus-mqtt library, I’m not sure how and where to change the CallbackAPIVersion attribute so we’re not there yet. I think this is where the driver needs to be updated @freakent