kukulich / home-assistant-jablotron100

Home Assistant custom component for JABLOTRON 100+ alarm system
MIT License
65 stars 24 forks source link

Synology - no hidraw support #53

Open uowiec opened 1 year ago

uowiec commented 1 year ago

Hi all I am running Home Assistant in a Docker container on a Synology server running DSM 7 OS. Unfortunately, it does not support the hidraw interface, only the hiddev. Is it possible to add support for hiddev to your integration, beside to hidraw? Or maybe you konw a hack how to add the hidraw support to DSM OS?

Some details on my configuration

# uname -a
Linux synology 4.4.180+ #42661 SMP Mon Jun 27 15:08:06 CST 2022 x86_64 GNU/Linux synology_r1000_rs422+
# lsusb -Ie
|__usb1          1d6b:0002:0404 09  2.00  480MBit/s 0mA 1IF  (Linux 4.4.180+ xhci-hcd xHCI Host Controller 0000:04:00.3)
                   (EP) 00: Control  attr 00 len 07 max 040
 1-0:1.0          (IF) 09:00:00 1EP  () hub 
                   (EP) 81: Interrupt (256ms) attr 03 len 07 max 004
  |__1-1         f400:f400:0100 00  2.00  480MBit/s 200mA 1IF  (Synology DiskStation 7F0025A35F3F6D46)
                   (EP) 00: Control  attr 00 len 07 max 040
  1-1:1.0         (IF) 08:06:50 2EPs () usb-storage host7 (synoboot)
                   (EP) 02: Bulk  attr 02 len 07 max 200
                   (EP) 81: Bulk  attr 02 len 07 max 200
  |__1-2         16d6:0008:0107 00  2.00   12MBit/s 100mA 2IFs (Jablotron ltd JA-100 Flexi xxxxxxxxxxxxxx)
                   (EP) 00: Control  attr 00 len 07 max 040
  1-2:1.0         (IF) 03:00:00 1EP  () usbhid 
                   (EP) 81: Interrupt (1ms) attr 03 len 07 max 040
  1-2:1.1         (IF) 08:06:50 2EPs () usb-storage host8 (usb1 usb2)
                   (EP) 02: Bulk  attr 02 len 07 max 040
                   (EP) 82: Bulk  attr 02 len 07 max 040
|__usb2          1d6b:0003:0404 09  3.00 5000MBit/s 0mA 1IF  (Linux 4.4.180+ xhci-hcd xHCI Host Controller 0000:04:00.3)
                   (EP) 00: Control  attr 00 len 07 max 040
 2-0:1.0          (IF) 09:00:00 1EP  () hub 
                   (EP) 81: Interrupt (12ms) attr 03 len 07 max 004
# lsmod | grep -i hid
hid_generic             1321  0 
usbhid                 26319  0 
hid                    90279  2 hid_generic,usbhid
usbcore               200140  9 etxhci_hcd,usblp,uhci_hcd,usb_storage,ehci_hcd,ehci_pci,usbhid,xhci_hcd,xhci_pci
# modprobe hidraw
modprobe: FATAL: Module hidraw not found.
# dmesg | grep usb
[   24.056711] usbcore: registered new interface driver usbfs
[   24.062220] usbcore: registered new interface driver hub
[   24.067551] usbcore: registered new interface driver ethub
[   24.073049] usbcore: registered new device driver usb
[   24.282429] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[   24.618048] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[   24.887089] usb 1-2: new full-speed USB device number 3 using xhci_hcd
[   32.353821] usb-storage 1-1:1.0: USB Mass Storage device detected
[   32.353880] scsi host7: usb-storage 1-1:1.0
[   32.353951] usb-storage 1-2:1.1: USB Mass Storage device detected
[   32.353997] scsi host8: usb-storage 1-2:1.1
[   32.354050] usbcore: registered new interface driver usb-storage
[   32.735644] usbcore: registered new interface driver usblp
[   32.762277] usbcore: registered new interface driver usbhid
[   32.762278] usbhid: USB HID core driver
[   32.772221] hid-generic 0003:16D6:0008.0001: hiddev0: USB HID v1.11 Device [Jablotron ltd JA-100 Flexi] on usb-0000:04:00.3-2/input0
michalmaca commented 1 year ago

Exactly same issue. I tried to enable support usb on synology, but no success.

viliks commented 6 months ago

It seems, that synology will never support hidraw. So I ended up with using HAOS virtual machine.