Stick ist getestet und klappt:
HM-CFG-USB-2 wrid aber als HM-CFG-USB erkannt.
Anleitung zum Stick Durchreichen an VM fuer Proxmox:
https://forum.proxmox.com/threads/lxc-u ... ick.30058/
Bei mir dann ca so:
Stick anstecken:
dmesg
[38672.489912] usb 5-2: new full-speed USB device number 2 using uhci_hcd
[38672.680034] usb 5-2: New USB device found, idVendor=1b1f, idProduct=c00f
[38672.680037] usb 5-2: New USB device strings: Mfr=4, Product=14, SerialNumber=36
[38672.680038] usb 5-2: Product: HM-CFG-USB
[38672.680040] usb 5-2: Manufacturer: eQ-3
[38672.680041] usb 5-2: SerialNumber: NEQXXXXXXX
[38672.694514] hidraw: raw HID events driver (C) Jiri Kosina
[38672.700136] usbcore: registered new interface driver usbhid
[38672.700137] usbhid: USB HID core driver
[38672.705743] hid-generic 0003:1B1F:C00F.0001: hiddev0,hidraw0: USB HID v1.10 Device [eQ-3 HM-CFG-USB] on usb-0000:00:1a.1-2/input0
das ist wichtig:
idVendor=1b1f, idProduct=c00f
lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 011 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 010 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 013 Device 002: ID 2109:0812 VIA Labs, Inc. VL812 Hub
Bus 013 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 012 Device 005: ID 046d:0825 Logitech, Inc. Webcam C270
Bus 012 Device 006: ID 046d:0825 Logitech, Inc. Webcam C270
Bus 012 Device 004: ID 2109:2812 VIA Labs, Inc. VL812 Hub
Bus 012 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 012 Device 002: ID 046d:0825 Logitech, Inc. Webcam C270
Bus 012 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 1b1f:c00f
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Unser Stick: -> Bus 005 Device 002: ID 1b1f:c00f
ls -l /dev/bus/usb/005/002
crw-rw-r-- 1 root root 189, 513 Mar 11 09:09 /dev/bus/usb/005/002
Jetzt basteln wir unseren ersten lxc config Eintrag.
Bei Proxmox liegt das ca da rum:
nano /etc/pve/lxc/212.conf
lxc.cgroup.devices.allow: c 189:513 rwm
lxc.mount.entry: /dev/bus/usb/005/002 dev/bus/usb/005/002 none bind,optional,create=file
Der Stick erstellt aber noch 2 weitere Geraete:
Daher auch die durchreichen:
ls -l /dev/hidraw0
crw------- 1 root root 241, 0 Mar 11 09:28 /dev/hidraw0/dev/hidraw0
lxc.cgroup.devices.allow: c 241:* rwm
lxc.mount.entry: /dev/hidraw0 dev/hidraw0 none bind,optional,create=file
ls -l /dev/usb/hiddev0
crw------- 1 root root 180, 0 Mar 11 09:28 /dev/usb/hiddev0
lxc.cgroup.devices.allow: c 180:* rwm
lxc.mount.entry: /dev/usb/hiddev0 dev/usb/hiddev0 none bind,optional,create=file
In Summe schaut da bei mir dann so aus:
nano /etc/pve/lxc/212.conf
lxc.cgroup.devices.allow: c 189:513 rwm
lxc.mount.entry: /dev/bus/usb/005/002 dev/bus/usb/005/002 none bind,optional,create=file
lxc.cgroup.devices.allow: c 241:* rwm
lxc.mount.entry: /dev/hidraw0 dev/hidraw0 none bind,optional,create=file
lxc.cgroup.devices.allow: c 180:* rwm
lxc.mount.entry: /dev/usb/hiddev0 dev/usb/hiddev0 none bind,optional,create=file
Damit ist der Stick Durchgereicht.
Jetzt noch in der Homematic folgendes Eintragen:
nano /etc/config/rfd.conf
[Interface 2]
Type = USB Interface
Name = HM-CFG-USB
Serial Number = NEQXXXXXXX
Encryption Key =
Das wars.