How to use hasseb USB DALI Master?

Hi,

I want to use the hasseb DALi Master with HA.
I’m using HA OS and found 2 projects on GitHub:

Just tried to install the Custom Component, but stuck at the pyhidapi part…

Is someone using this integrations? And can provide help?
I’m using HA for a few months now.

Any help is much appreciated. Thanks!

You haven’t posted your logs or told us what went wrong.

1 Like

What does it mean?

On a HASS OS installation, I found that the quickest way to get it to work was to install the library through apk (apk add hidapi on the SSH container, not the host ). This installs it in /usr/lib , which isn’t persistent between container restarts, so it has to be moved to a directory that is (e.g. /config/deps/ ). → Source

I am using HASS OS. Maybe someone can explain me how to install hidapi “on the SSH container”.

Thanks!

Install the advanced terminal & ssh addon. Go to the terminal. execute

apk add hidapi

OK, I installed the advanced terminal and then add hidapi.

apk add hidapi
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/camunity/x86_64/APKINDEX.tar.gz
(1/2) Installing libusb (1.0.26-r2)
(2/2) Installing hidapi (0.13.1-r0)
OK: 282 MiB in 197 packages
pip install /home/hassio/_pyhidapi-master
Successfully installed pyhidapi-1.0.0
**WARNING:** Running pip as the 'root' user can result in broken permissions and conflicting behaviour With the system package manager.
It is recormended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

After importing the custom component I got the error that the Module ‘hid’ is not found:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 359, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/dali/light.py", line 77, in setup_platform
    from dali.driver.hasseb import SyncHassebDALIUSBDriverFactory
  File "/usr/local/lib/python3.11/site-packages/dali/driver/hasseb.py", line 18, in <module>
    import hid
ModuleNotFoundError: No module named 'hid'

How can I install hid correctly?

Is someone using hasseb with HA? Is the there any other way to use hasseb usb fali master with HA?

Any help is appreciated.