| one more problem, more general this time maybe someone knows i pass a usb device to hass via a symlink generated by udev rule:
services.udev.extraRules = ''ACTION=="add", KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="16d6", ATTRS{idProduct}=="0008", MODE="0600", OWNER="hass", GROUP="hass", SYMLINK+="jablotron"'';
then i allow it in systemd unit:
systemd.services.home-assistant.serviceConfig.DeviceAllow = "/dev/jablotron";
and everything works fine but the device can randomly disconnect and connect back every once in a while it is available on the symlink /dev/jablotron again (i checked with sudo -u hass cat /dev/jablotron - no access errors) but home assistant won't have access to it: there are a lot of log lines:
2024-12-01 23:18:33.036 ERROR (ThreadPoolExecutor-2_1) [custom_components.jablotron100] Write error: [Errno 1] Operation not permitted: '/dev/jablotron'
restarting hass service helps, it works fine again until the next reconnect
is it an issue with an integration or it can be solved with systemd tuning?
|