(Gelöst) Proxmox: HM-CFG-USB wird im Container ignoriert

Begonnen von Clyde, 12 Januar 2025, 13:31:59

Vorheriges Thema - Nächstes Thema

Clyde

Strategie: Auf dem Host wird ein Symlink erzeugt der dem Stick entspricht, auch wenn sich seine Zuordnung ändert. Über diesen Symlink soll das Durchreichen flexibler werden.

Mit Bus und Device Nummer aus dem vorhergehenden Post bekommt man
  idVendor           0x1b1f eQ-3 Entwicklung GmbH
  idProduct          0xc00f HM-CFG-USB/HM-CFG-USB-2 [HomeMatic Configuration adapter]

root@proxmox:~# lsusb -vs 003:005

Bus 003 Device 005: ID 1b1f:c00f eQ-3 Entwicklung GmbH HM-CFG-USB/HM-CFG-USB-2 [HomeMatic Configuration adapter]
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x1b1f eQ-3 Entwicklung GmbH
  idProduct          0xc00f HM-CFG-USB/HM-CFG-USB-2 [HomeMatic Configuration adapter]
  bcdDevice            9.67
  iManufacturer           4 eQ-3
  iProduct               14 HM-CFG-USB
...

Jetzt damit eine Regel anlegen und den Symlink erzeugen:

root@proxmox:~# nano /etc/udev/rules.d/99-usb-serial.rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b1f", ATTRS{idProduct}=="c00f", SYMLINK+="hmusb"
Einbinden:
root@proxmox:~# udevadm trigger
Der Link ist hier zu sehen:
root@proxmox:~# ls -l /dev/hm*
lrwxrwxrwx 1 root root 15 Jan 14 16:08 /dev/hmusb -> bus/usb/003/005

Stick einmal abstecken und wieder dran:

root@proxmox:~# ls -l /dev/hm*
lrwxrwxrwx 1 root root 15 Jan 14 16:08 /dev/hmusb -> bus/usb/003/006


Der Link folgt dem Stick. Jetzt muß ein funktionsfähiger Mount erzeugt werden:
Proxmox auf MINIX-Z100, LXC: FHEM, FS20, FHT, HM, Tradfri, Alexa, Anker Solix Solarbank 2

Clyde

#16
Mit dem Symlink

/dev/hmusb -> bus/usb/003/006

  root@proxmox:~# nano /etc/udev/rules.d/99-usb-serial.rules
  SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b1f", ATTRS{idProduct}=="c00f", SYMLINK+="hmusb"

versuche ich die Containerconfig wie folgt anzupassen;

100.conf
arch: amd64
cores: 2
features: nesting=1
hostname: fhem
memory: 2048
net0: name=eth0,bridge=vmbr0,hwaddr=BC:24:11:22:77:02,ip=dhcp,type=veth
onboot: 1
ostype: debian
rootfs: local-lvm:vm-100-disk-1,size=8G
swap: 512
tags: automation;community-script
lxc.cgroup2.devices.allow: a
lxc.cap.drop:
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/hmusb            dev/hmusb             none bind,optional,create=file


Der Link ist im LXC vorhanden wird aber nicht "gefunden"
root@fhem:~# ls -l /dev/hm*
crw-rw-r-- 1 root root 189, 261 Jan 14 16:11 /dev/hmusb

Die statische Durchreichung ist rausgenommen und auch nicht da.
root@fhem:~# ls -l /dev/bus/usb/003/006
ls: cannot access '/dev/bus/usb/003/006': No such file or directory

Also kann FHEM mit dem Link so nichts anfangen.
Jetzt frage ich mich, wie man diesen Link durchreichen kann?
Proxmox auf MINIX-Z100, LXC: FHEM, FS20, FHT, HM, Tradfri, Alexa, Anker Solix Solarbank 2

Ralli

#17
Zitat von: Clyde am 14 Januar 2025, 15:56:50Soweit so gut. Wenn allerdings der Stick abgezogen wird oder er bei einem Neustart eine neue Nummer bekommt passt sich diese Konfiguration nicht an. Er wird nicht richtig durchgereicht. Das ist nicht optimal und ich versuche einen ergänzenden Ansatz...

Zum dritten mal:

Lies auch die Kommentare unter dem von mir geposteten Link. Da steht die Lösung zu genau dieser Problemstellung drin, welche ich auch bei mir genau so (erfolgreich) übernommen habe. Stichwort: udev rule.
Gruß,
Ralli

Proxmox 8.3 Cluster mit HP ED800G2i7, Intel NUC11TNHi7+NUC7i5BNH, virtualisiertes fhem 6.3 dev, virtualisierte RaspberryMatic (3.79.6.20250118) mit HB-RF-ETH 1.3.0 / RPI-RF-MOD, HM-LAN-GW (1.1.5) und HMW-GW, FRITZBOX 7490 (07.59), FBDECT, Siri und Alexa

Clyde

Ja, udev rule wird wie oben gezeigt bei mir ja angesetzt, läuft aber nicht durch. In deinem Link wird ein Stick verwendet, der nicht wie der HM-CFG-USB-2 eingebunden wird, vorrausgesetzt. Damit komme ich hier nicht weiter. Die Rule ist übrigens gleich angesetzt. Der durchgereichte Symlink kann von FHEM aber so nicht verwendet werden.

Ich vermute FHEM sucht in /dev/bus/usb/...
der Symlink steht aber bei /dev/hmusb

Genau da komme ich nicht weiter.
Proxmox auf MINIX-Z100, LXC: FHEM, FS20, FHT, HM, Tradfri, Alexa, Anker Solix Solarbank 2

Otto123

was sagt denn der hmland dazu?
ZitatRun hmland (with debugging the first time, see -h switch): ./hmland -p 1234 -D
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

Clyde

root@fhem:/# /etc/init.d/hmland stop
Stopping hmland (via systemctl): hmland.service.
root@fhem:/# /opt/hmcfgusb/hmland -p 1234 -D


Keine Ausgabe auf der Konsole. Gibts irgendwo ein Logfile?
Proxmox auf MINIX-Z100, LXC: FHEM, FS20, FHT, HM, Tradfri, Alexa, Anker Solix Solarbank 2

Ralli

#21
Zitat von: Clyde am 14 Januar 2025, 17:04:30Ja, udev rule wird wie oben gezeigt bei mir ja angesetzt, läuft aber nicht durch. In deinem Link wird ein Stick verwendet, der nicht wie der HM-CFG-USB-2 eingebunden wird, vorrausgesetzt. Damit komme ich hier nicht weiter. Die Rule ist übrigens gleich angesetzt. Der durchgereichte Symlink kann von FHEM aber so nicht verwendet werden.

Mir scheint, dass deine Berechtigungen nicht passen.

Auf dem Host, auf dem mein lxc mit durchgereichtem Stick läuft, habe ich folgendes:

root@pve-n3:/dev# ls -la ttyA*
crw-rw-rw- 1 root dialout 166, 0 Jan 11 13:51 ttyACM0
root@pve-n3:/dev# ls -la /dev/bus/usb/001/002
crw-rw-r-- 1 root root 189, 1 Jan 11 13:51 /dev/bus/usb/001/002

Im lxc wiederum habe ich folgendes:

root@weather-fhem:/dev# ls -la ttyA*
crw-rw-rw- 1 nobody nogroup 166, 0 Jan 11 13:51 ttyACM0
root@weather-fhem:/dev# ls -la /dev/bus/usb/001/002
crw-rw-r-- 1 nobody nogroup 189, 1 Jan 11 13:51 /dev/bus/usb/001/002

Das ist ein Auszug aus meiner lxc.conf:

root@pve-n3:/etc/pve/local/lxc# cat 109.conf
arch: amd64
cores: 4
features: nesting=1
memory: 512
onboot: 1
ostype: debian
swap: 512
unprivileged: 1
lxc.cgroup.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/bus/usb/001/002 dev/bus/usb/001/002 none bind,optional,create=file
lxc.cgroup.devices.allow: c 166:* rwm
lxc.mount.entry: /dev/ttyACM0 dev/ttyACM0 none bind,optional,create=file

Und das ist die rule:

root@pve-n3:/etc/udev/rules.d# cat 50-myusb.rules
KERNEL=="ttyACM[0-9]*",MODE="0666"

Die Zahlen (IDs) werden bei dir so nicht genau passen, da ist es wichtig, dass man Schritt für Schritt die Anleitung entsprechend verfolgt.
Gruß,
Ralli

Proxmox 8.3 Cluster mit HP ED800G2i7, Intel NUC11TNHi7+NUC7i5BNH, virtualisiertes fhem 6.3 dev, virtualisierte RaspberryMatic (3.79.6.20250118) mit HB-RF-ETH 1.3.0 / RPI-RF-MOD, HM-LAN-GW (1.1.5) und HMW-GW, FRITZBOX 7490 (07.59), FBDECT, Siri und Alexa

Clyde

Wenn statisch durchgereicht wird läuft es, es ist das Problem wenn der stick dann abgesteckt wird und wieder dran kommt dann stimmt die Devicenummer nicht mehr. Daher versuchte ich mit einem Symlink zu arbeiten.
Da weiß ich aber nicht wie ich den ansetzen muss, damit er richtig durchgegeben wird.

root@fhem:~# /etc/init.d/hmland stop
Stopping hmland (via systemctl): hmland.service.
root@fhem:~# /opt/hmcfgusb/hmland -p 1234 -D
2025-01-14 17:39:11.462022: Client 127.0.0.1 connected!

USB < 0x0000: 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   K...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 48 09 48 4d 2d 55 53 42 2d 49 46 03 c7 0a 4d 45   H.HM-USB-IF...ME
USB > 0x0010: 51 30 32 33 32 35 36 32 37 2e 24 42 42 42 00 02   Q02325627.$BBB..
USB > 0x0020: 57 53 00 02 06 00 00 00 00 00 00 00 00 00 00 00   WS..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
2025-01-14 17:39:11.544069: LAN < HHM-USB-IF,03C7,MEQ0232562,372E24,424242,00025753,0002,06
usb-transfer took 64ms!
2025-01-14 17:39:11.544223: LAN > A424242

USB < 0x0000: 41 42 42 42 00 00 00 00 00 00 00 00 00 00 00 00   ABBB............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
usb-transfer took 63ms!
2025-01-14 17:39:11.607812: LAN > C

USB < 0x0000: 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   C...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
usb-transfer took 63ms!
2025-01-14 17:39:11.671945: LAN > +5FFF1C,00,00,00

USB < 0x0000: 2b 5f ff 1c 00 00 01 00 00 00 00 00 00 00 00 00   +_..............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
usb-transfer took 63ms!
2025-01-14 17:39:11.735975: LAN > +52CD03,00,00,00

USB < 0x0000: 2b 52 cd 03 00 00 01 00 00 00 00 00 00 00 00 00   +R..............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
usb-transfer took 63ms!
2025-01-14 17:39:11.799935: LAN > Y01,00,

USB < 0x0000: 59 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00   Y...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 49 00 00 00 00 55 53 42 2d 49 46 03 c7 0a 4d 45   I....USB-IF...ME
USB > 0x0010: 51 30 32 33 32 35 36 32 37 2e 24 42 42 42 00 02   Q02325627.$BBB..
USB > 0x0020: 57 53 00 02 06 00 00 00 00 00 00 00 00 00 00 00   WS..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
2025-01-14 17:39:11.864051: LAN < I00,00,00,00
usb-transfer took 64ms!
2025-01-14 17:39:11.864143: LAN > Y02,00,

USB < 0x0000: 59 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00   Y...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 49 00 00 00 00 55 53 42 2d 49 46 03 c7 0a 4d 45   I....USB-IF...ME
USB > 0x0010: 51 30 32 33 32 35 36 32 37 2e 24 42 42 42 00 02   Q02325627.$BBB..
USB > 0x0020: 57 53 00 02 06 00 00 00 00 00 00 00 00 00 00 00   WS..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
2025-01-14 17:39:11.928045: LAN < I00,00,00,00
usb-transfer took 63ms!
2025-01-14 17:39:11.928159: LAN > Y03,00,

USB < 0x0000: 59 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00   Y...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 49 00 00 00 00 55 53 42 2d 49 46 03 c7 0a 4d 45   I....USB-IF...ME
USB > 0x0010: 51 30 32 33 32 35 36 32 37 2e 24 42 42 42 00 02   Q02325627.$BBB..
USB > 0x0020: 57 53 00 02 06 00 00 00 00 00 00 00 00 00 00 00   WS..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
2025-01-14 17:39:11.992020: LAN < I00,00,00,00
usb-transfer took 63ms!
2025-01-14 17:39:11.992134: LAN > T2F194FAF,02,00,00000000

USB < 0x0000: 54 2f 19 4f af 02 00 00 00 00 00 00 00 00 00 00   T/.O............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
usb-transfer took 64ms!
2025-01-14 17:39:12.055917: LAN > S65AEF2FA,00,00000000,01,65AEF2FA,998112424242000000

USB < 0x0000: 53 65 ae f2 fa 00 00 00 00 00 01 65 ae f2 fa 09   Se.........e....
USB < 0x0010: 99 81 12 42 42 42 00 00 00 00 00 00 00 00 00 00   ...BBB..........
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 52 65 ae f2 fa 00 02 00 00 00 00 ff 7f ff 09 99   Re..............
USB > 0x0010: 81 12 42 42 42 00 00 00 37 2e 24 42 42 42 00 02   ..BBB...7.$BBB..
USB > 0x0020: 57 53 00 02 06 00 00 00 00 00 00 00 00 00 00 00   WS..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
2025-01-14 17:39:12.120048: LAN < R65AEF2FA,0002,00000000,FF,7FFF,998112424242000000
usb-transfer took 64ms!
2025-01-14 17:39:12.165460: LAN > K

USB < 0x0000: 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   K...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 48 09 48 4d 2d 55 53 42 2d 49 46 03 c7 0a 4d 45   H.HM-USB-IF...ME
USB > 0x0010: 51 30 32 33 32 35 36 32 37 2e 24 42 42 42 00 02   Q02325627.$BBB..
USB > 0x0020: 59 f3 00 02 06 00 00 00 00 00 00 00 00 00 00 00   Y...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
2025-01-14 17:39:12.216015: LAN < HHM-USB-IF,03C7,MEQ0232562,372E24,424242,000259F3,0002,06
usb-transfer took 50ms!
2025-01-14 17:39:17.466056: LAN > S65AF0A6D,00,00000000,01,65AF0A6D,77A00142424252CD03010E

USB < 0x0000: 53 65 af 0a 6d 00 00 00 00 00 01 65 af 0a 6d 0b   Se..m......e..m.
USB < 0x0010: 77 a0 01 42 42 42 52 cd 03 01 0e 00 00 00 00 00   w..BBBR.........
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
usb-transfer took 61ms!

USB > 0x0000: 52 65 af 0a 6d 00 08 00 00 00 00 ff 7f ff 0b 77   Re..m..........w
USB > 0x0010: a0 01 42 42 42 52 cd 03 01 0e 24 42 42 42 00 02   ..BBBR....$BBB..
USB > 0x0020: 59 f3 00 02 06 00 00 00 00 00 00 00 00 00 00 00   Y...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
2025-01-14 17:39:18.103651: LAN < R65AF0A6D,0008,00000000,FF,7FFF,77A00142424252CD03010E
2025-01-14 17:39:18.468001: LAN > S65AF0E57,00,00000000,01,65AF0E57,4DB0014242425FFF1C010E

USB < 0x0000: 53 65 af 0e 57 00 00 00 00 00 01 65 af 0e 57 0b   Se..W......e..W.
USB < 0x0010: 4d b0 01 42 42 42 5f ff 1c 01 0e 00 00 00 00 00   M..BBB_.........
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
usb-transfer took 51ms!

USB > 0x0000: 45 5f ff 1c 00 00 00 02 74 8a ff ff d8 0e 4d a4   E_......t.....M.
USB > 0x0010: 10 5f ff 1c 42 42 42 06 01 c8 00 00 42 42 00 02   ._..BBB.....BB..
USB > 0x0020: 59 f3 00 02 06 00 00 00 00 00 00 00 00 00 00 00   Y...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
2025-01-14 17:39:19.031605: LAN < E5FFF1C,0000,0002748A,FF,FFD8,4DA4105FFF1C4242420601C80000

USB > 0x0000: 52 65 af 0e 57 00 01 00 02 74 8f ff ff d8 0e 4d   Re..W....t.....M
USB > 0x0010: a4 10 5f ff 1c 42 42 42 06 01 c8 00 00 42 00 02   .._..BBB.....B..
USB > 0x0020: 59 f3 00 02 06 00 00 00 00 00 00 00 00 00 00 00   Y...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
2025-01-14 17:39:19.127538: LAN < R65AF0E57,0001,0002748F,FF,FFD8,4DA4105FFF1C4242420601C80000
2025-01-14 17:39:19.469997: LAN > S65AF1241,00,00000000,01,65AF1241,4EB0014242425FFF1C020E

USB < 0x0000: 53 65 af 12 41 00 00 00 00 00 01 65 af 12 41 0b   Se..A......e..A.
USB < 0x0010: 4e b0 01 42 42 42 5f ff 1c 02 0e 00 00 00 00 00   N..BBB_.........
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
usb-transfer took 41ms!
Proxmox auf MINIX-Z100, LXC: FHEM, FS20, FHT, HM, Tradfri, Alexa, Anker Solix Solarbank 2

Clyde

#23
Der Stick wird mit

lxc.mount.entry: /dev/bus/usb/003/003  dev/bus/usb/003/003   none bind,optional,create=file
durchgereicht und wird erkannt wenn /dev/bus/usb/003/003 passt.

ttyACM0
ttyACM1
ttyUSB0
ttyUSB1

sind beim HM-CFG-USB-2 nicht relevat wie ich es verstehe.
Die reiche ich nicht durch und es funktioniert.

Problem ist nach dem An/Abstecken ändert es sich von

/dev/bus/usb/003/003  -> /dev/bus/usb/003/005


und es geht nicht mehr.

Daher der Versuch mit der Rule

SUBSYSTEMS=="usb",DRIVERS=="usb", ATTRS{idVendor}=="1b1f", ATTRS{idProduct}=="c00f", SYMLINK+="hmusb"

und

lxc.mount.entry: /dev/hmusb            dev/hmusb             none bind,optional,create=file

Das wird so durchgegeben aber bei /dev/hmusb scheint FHEM nicht zu suchen bzw. kann mit dem Link nicht arbeiten.
Proxmox auf MINIX-Z100, LXC: FHEM, FS20, FHT, HM, Tradfri, Alexa, Anker Solix Solarbank 2

Otto123

Zitat von: Clyde am 14 Januar 2025, 17:33:40Keine Ausgabe auf der Konsole. Gibts irgendwo ein Logfile?
Ich habe das Teil nicht und kann nur Googeln: 11 Jahre früher ;)
https://forum.fhem.de/index.php?topic=13071.msg110681#msg110681
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

Ralli

Zitat von: Clyde am 14 Januar 2025, 17:52:12SUBSYSTEMS=="usb",DRIVERS=="usb", ATTRS{idVendor}=="1b1f", ATTRS{idProduct}=="c00f", SYMLINK+="hmusb"

und

lxc.mount.entry: /dev/hmusb            dev/hmusb            none bind,optional,create=file

Das wird so durchgegeben aber bei /dev/hmusb scheint FHEM nicht zu suchen bzw. kann mit dem Link nicht arbeiten.


Die Rule sieht grds. gut aus. Berechtigungen auf /dev/hmusb ? Kann in FHEM das Device nicht fest auf diesen Pfad definiert werden?
Gruß,
Ralli

Proxmox 8.3 Cluster mit HP ED800G2i7, Intel NUC11TNHi7+NUC7i5BNH, virtualisiertes fhem 6.3 dev, virtualisierte RaspberryMatic (3.79.6.20250118) mit HB-RF-ETH 1.3.0 / RPI-RF-MOD, HM-LAN-GW (1.1.5) und HMW-GW, FRITZBOX 7490 (07.59), FBDECT, Siri und Alexa

Otto123

Zitat von: Ralli am 15 Januar 2025, 08:01:19Kann in FHEM das Device nicht fest auf diesen Pfad definiert werden?
ich will nochmal klar sagen: FHEM redet hier nicht direkt mit dem Gerät, das entsprechende FHEM Modul spricht über das Netzwerk mit einem Dienst der mit dem Gerät redet.
Es geht darum, ob > hmland < das Gerät ansprechen kann. Der läuft mW als root.
Eventuell kann der aber mit dem symlink im Container nichts anfangen?

Ich war schon früher mal der Meinung, ob es in solch offenbar schwierigen Fällen nicht einfacher ist diesen Dienst auf dem Host laufen zu lassen. Ob der dort damit klar kommt, dass der Stick im Betrieb ab und angesteckt wird, weiß ich nicht.
Ich weiß nur, der "Nachfolge Stick" von eq3 HmIp-RFUSB läuft in einem LXC Container für RaspberryMatic nur, wenn Kernelmodule auf dem Host installiert werden. Deswegen betreibe ich den in einer fertigen VM.
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

Ralli

Otto, das kommt halt darauf an.

Du kannst natürlich auch im FHEM-Contaniner den hmland laufen lassen, dann braucht der hmland bzw. dieser Container den Zugriff auf den durchgereichten Stick. Wenn du den hmland woanders laufen lässt, bspw. auf dem Host oder auf einer ganz anderen Maschine, dann brauchst du natürlich auch aus dem FHEM-Container keinen Zugriff auf das USB-Device - und ja, da bin ich bei dir, das ist sicherlich die einfachere Methode.

Ich persönlich habe für HmIP und HM-RF eh einen anderen Weg beschritten, ich nutze HB-RF-ETH 1.3.0 / RPI-RF-MOD, da muss ich mir über die Themen überhaupt keine Gedanken machen.
Gruß,
Ralli

Proxmox 8.3 Cluster mit HP ED800G2i7, Intel NUC11TNHi7+NUC7i5BNH, virtualisiertes fhem 6.3 dev, virtualisierte RaspberryMatic (3.79.6.20250118) mit HB-RF-ETH 1.3.0 / RPI-RF-MOD, HM-LAN-GW (1.1.5) und HMW-GW, FRITZBOX 7490 (07.59), FBDECT, Siri und Alexa

Clyde

Also wenn ich das richtig verstehe könnte man hmland auf dem Proxmox Host laufen lassen und dann vom LXC FHEM darauf dann zugreifen. Dazu bin ich jetzt einmal wie folgt vorgegangen. Ich habe hmland mit dem Script aus dem Wiki installiert:

https://forum.fhem.de/index.php/topic,13071.msg190887.html#msg190887

Das läuft so:
root@proxmox:~# service hmland status
● hmland.service - LSB: Start hmland daemon at boot time
     Loaded: loaded (/etc/init.d/hmland; generated)
     Active: active (running) since Sun 2025-01-19 11:45:43 CET; 13min ago
       Docs: man:systemd-sysv-generator(8)
    Process: 10531 ExecStart=/etc/init.d/hmland start (code=exited, status=0/SUCCESS)
      Tasks: 2 (limit: 18845)
     Memory: 816.0K
        CPU: 3ms
     CGroup: /system.slice/hmland.service
             ├─10533 perl -ne "\$|=1; print localtime . \": [hmland] \$_\""
             └─10534 /opt/hmcfgusb/hmland -r 0 -d -P -l 127.0.0.1 -p 1234

Jan 19 11:45:43 proxmox systemd[1]: Starting hmland.service - LSB: Start hmland daemon at boot time...
Jan 19 11:45:43 proxmox systemd[1]: Started hmland.service - LSB: Start hmland daemon at boot time.
root@proxmox:~# service hmland stop
root@proxmox:~# /opt/hmcfgusb/hmland -p 1234 -D
2025-01-19 12:00:14.251172: Client 192.168.2.37 connected!

USB > 0x0000: 45 79 4e 98 00 00 00 01 4f 91 ff ff cd 0f 51 86   EyN.....O.....Q.
USB > 0x0010: 10 79 4e 98 00 00 00 0a 68 9f 0f 00 40 03 47 09   .yN.....h...@.G.
USB > 0x0020: 24 fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00   $...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB < 0x0000: 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   K...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 45 36 d2 4f 00 00 00 2b 91 f9 ff ff b3 14 0f 84   E6.O...+........
USB > 0x0010: 5e 36 d2 4f 00 00 00 85 d1 2a 00 07 73 00 90 09   ^6.O.....*..s...
USB > 0x0020: 2f fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00   /...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 45 21 c3 97 00 00 00 2b 9e d5 ff ff d8 0f 58 86   E!.....+......X.
USB > 0x0010: 10 21 c3 97 00 00 00 0a 98 d1 0e 00 40 00 90 09   .!..........@...
USB > 0x0020: 2f fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00   /...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
usb-transfer took 63ms!
2025-01-19 12:00:14.335651: LAN > A424242

USB < 0x0000: 41 42 42 42 00 00 00 00 00 00 00 00 00 00 00 00   ABBB............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 45 21 c3 97 00 00 00 2b 9e d5 ff ff d8 0f 58 86   E!.....+......X.
USB > 0x0010: 10 21 c3 97 00 00 00 0a 98 d1 0e 00 40 01 87 09   .!..........@...
USB > 0x0020: 33 fd 00 00 00 00 00 00 00 00 00 00 00 00 00 00   3...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 45 36 d2 4f 00 00 00 2b af 58 ff ff b4 14 60 a4   E6.O...+.X....`.
USB > 0x0010: 5f 36 d2 4f 42 42 42 85 d1 2b 00 16 87 01 87 09   _6.OBBB..+......
USB > 0x0020: 33 fd 00 00 00 00 00 00 00 00 00 00 00 00 00 00   3...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
usb-transfer took 63ms!
2025-01-19 12:00:14.399698: LAN > C

USB < 0x0000: 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   C...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 45 42 42 42 00 00 00 2b af cc ff ff c3 0a 60 80   EBBB...+......`.
USB > 0x0010: 02 42 42 42 36 d2 4f 00 d1 2b 00 16 87 01 87 09   .BBB6.O..+......
USB > 0x0020: 33 fd 00 00 00 00 00 00 00 00 00 00 00 00 00 00   3...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 45 22 01 0f 00 00 00 2b c7 40 ff ff d1 0f ff 86   E".....+.@......
USB > 0x0010: 10 22 01 0f 00 00 00 0a 90 c5 0b 00 40 01 87 09   ."..........@...
USB > 0x0020: 33 fd 00 00 00 00 00 00 00 00 00 00 00 00 00 00   3...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
usb-transfer took 63ms!
2025-01-19 12:00:14.463677: LAN > +5FFF1C,00,00,00

USB < 0x0000: 2b 5f ff 1c 00 00 01 00 00 00 00 00 00 00 00 00   +_..............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 45 36 d2 4f 00 00 00 2b ce 98 ff ff b4 14 61 a4   E6.O...+......a.
USB > 0x0010: 5f 36 d2 4f 42 42 42 85 d1 2c 00 0f 67 01 17 09   _6.OBBB..,..g...
USB > 0x0020: 2e fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 45 42 42 42 00 00 00 2b cf 0c ff ff c9 0a 61 80   EBBB...+......a.
USB > 0x0010: 02 42 42 42 36 d2 4f 00 d1 2c 00 0f 67 01 17 09   .BBB6.O..,..g...
USB > 0x0020: 2e fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
usb-transfer took 63ms!
2025-01-19 12:00:14.527694: LAN > +52CD03,00,00,00

USB < 0x0000: 2b 52 cd 03 00 00 01 00 00 00 00 00 00 00 00 00   +R..............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 45 36 d2 4f 00 00 00 2c 0d b8 ff ff b6 14 62 a4   E6.O...,......b.
USB > 0x0010: 5f 36 d2 4f 42 42 42 85 d1 2e 00 07 60 00 90 09   _6.OBBB.....`...
USB > 0x0020: 30 ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00   0...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 45 42 42 42 00 00 00 2c 0e 2c ff ff cb 0a 62 80   EBBB...,.,....b.
USB > 0x0010: 02 42 42 42 36 d2 4f 00 d1 2e 00 07 60 00 90 09   .BBB6.O.....`...
USB > 0x0020: 30 ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00   0...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
usb-transfer took 63ms!
2025-01-19 12:00:14.591687: LAN > +36D24F,00,00,00

USB < 0x0000: 2b 36 d2 4f 00 00 01 00 00 00 00 00 00 00 00 00   +6.O............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 45 37 04 ea 00 00 00 2c 1b 5b ff ff d1 14 bc 84   E7.....,.[......
USB > 0x0010: 5e 37 04 ea 00 00 00 8d 44 25 00 51 c8 04 1b 09   ^7......D%.Q....
USB > 0x0020: 1e fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 45 36 d2 4f 00 00 00 2c 2c 58 ff ff b5 14 63 a4   E6.O...,,X....c.
USB > 0x0010: 5f 36 d2 4f 42 42 42 85 d1 2f 00 17 38 01 95 09   _6.OBBB../..8...
USB > 0x0020: 30 ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00   0...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
usb-transfer took 63ms!
2025-01-19 12:00:14.655707: LAN > Y01,00,

USB < 0x0000: 59 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00   Y...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 45 42 42 42 00 00 00 2c 2c cc ff ff c6 0a 63 80   EBBB...,,.....c.
USB > 0x0010: 02 42 42 42 36 d2 4f 00 d1 2f 00 17 38 01 95 09   .BBB6.O../..8...
USB > 0x0020: 30 ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00   0...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 45 36 d2 4f 00 00 00 2c 4b 97 ff ff b6 14 64 a4   E6.O...,K.....d.
USB > 0x0010: 5f 36 d2 4f 42 42 42 85 d1 30 00 0d ec 00 f9 09   _6.OBBB..0......
USB > 0x0020: 2f ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00   /...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
usb-transfer took 63ms!
2025-01-19 12:00:14.719694: LAN > Y02,00,

USB < 0x0000: 59 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00   Y...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 45 36 d2 4f 00 00 00 2c 4b 97 ff ff b6 14 64 a4   E6.O...,K.....d.
USB > 0x0010: 5f 36 d2 4f 42 42 42 85 d1 30 00 0d ec 00 f9 09   _6.OBBB..0......
USB > 0x0020: 2f ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00   /...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 45 42 42 42 00 00 00 2c 4c 0c ff ff c3 0a 64 80   EBBB...,L.....d.
USB > 0x0010: 02 42 42 42 36 d2 4f 00 d1 30 00 0d ec 00 f9 09   .BBB6.O..0......
USB > 0x0020: 2f ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00   /...............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
usb-transfer took 63ms!
2025-01-19 12:00:14.783694: LAN > Y03,00,

USB < 0x0000: 59 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00   Y...............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 45 42 42 42 00 00 00 2c 4c 0c ff ff c3 0a 64 80   EBBB...,L.....d.
USB > 0x0010: 02 42 42 42 36 d2 4f 00 37 2e 24 42 42 42 00 2c   .BBB6.O.7.$BBB.,
USB > 0x0020: 6d 62 00 00 00 00 00 00 00 00 00 00 00 00 00 00   mb..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 48 09 48 4d 2d 55 53 42 2d 49 46 03 c7 0a 4d 45   H.HM-USB-IF...ME
USB > 0x0010: 51 30 32 33 32 35 36 32 37 2e 24 42 42 42 00 2c   Q02325627.$BBB.,
USB > 0x0020: 6d 62 00 00 00 00 00 00 00 00 00 00 00 00 00 00   mb..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
2025-01-19 12:00:14.847658: LAN < HHM-USB-IF,03C7,MEQ0232562,372E24,424242,002C6D62,0000,00
2025-01-19 12:00:14.847749: LAN < E794E98,0000,00014F91,FF,FFCD,518610794E980000000A689F0F0040
2025-01-19 12:00:14.847772: LAN < E36D24F,0000,002B91F9,FF,FFB3,0F845E36D24F00000085D12A0007730090092FFE
2025-01-19 12:00:14.847785: LAN < E21C397,0000,002B9ED5,FF,FFD8,58861021C3970000000A98D10E0040
2025-01-19 12:00:14.847796: LAN < E21C397,0000,002B9ED5,FF,FFD8,58861021C3970000000A98D10E0040
2025-01-19 12:00:14.847807: LAN < E36D24F,0000,002BAF58,FF,FFB4,60A45F36D24F42424285D12B00168701870933FD
2025-01-19 12:00:14.847818: LAN < E424242,0000,002BAFCC,FF,FFC3,60800242424236D24F00
2025-01-19 12:00:14.847828: LAN < E22010F,0000,002BC740,FF,FFD1,FF861022010F0000000A90C50B0040
2025-01-19 12:00:14.847840: LAN < E36D24F,0000,002BCE98,FF,FFB4,61A45F36D24F42424285D12C000F670117092EFE
2025-01-19 12:00:14.847851: LAN < E424242,0000,002BCF0C,FF,FFC9,61800242424236D24F00
2025-01-19 12:00:14.847861: LAN < E36D24F,0000,002C0DB8,FF,FFB6,62A45F36D24F42424285D12E00076000900930FF
2025-01-19 12:00:14.847872: LAN < E424242,0000,002C0E2C,FF,FFCB,62800242424236D24F00
2025-01-19 12:00:14.847882: LAN < E3704EA,0000,002C1B5B,FF,FFD1,BC845E3704EA0000008D44250051C8041B091EFE
2025-01-19 12:00:14.847892: LAN < E36D24F,0000,002C2C58,FF,FFB5,63A45F36D24F42424285D12F00173801950930FF
2025-01-19 12:00:14.847902: LAN < E424242,0000,002C2CCC,FF,FFC6,63800242424236D24F00
2025-01-19 12:00:14.847913: LAN < E36D24F,0000,002C4B97,FF,FFB6,64A45F36D24F42424285D130000DEC00F9092FFF
2025-01-19 12:00:14.847924: LAN < E36D24F,0000,002C4B97,FF,FFB6,64A45F36D24F42424285D130000DEC00F9092FFF
2025-01-19 12:00:14.847933: LAN < E424242,0000,002C4C0C,FF,FFC3,64800242424236D24F00
2025-01-19 12:00:14.847939: LAN < E424242,0000,002C4C0C,FF,FFC3,64800242424236D24F00
usb-transfer took 64ms!
2025-01-19 12:00:14.847970: LAN > T2F1F97BE,02,00,00000000

USB < 0x0000: 54 2f 1f 97 be 02 00 00 00 00 00 00 00 00 00 00   T/..............
USB < 0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 48 09 48 4d 2d 55 53 42 2d 49 46 03 c7 0a 4d 45   H.HM-USB-IF...ME
USB > 0x0010: 51 30 32 33 32 35 36 32 37 2e 24 42 42 42 00 2c   Q02325627.$BBB.,
USB > 0x0020: 6d 62 00 00 00 00 00 00 00 00 00 00 00 00 00 00   mb..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
2025-01-19 12:00:14.879700: LAN < HHM-USB-IF,03C7,MEQ0232562,372E24,424242,002C6D62,0000,00

USB > 0x0000: 49 00 00 00 00 55 53 42 2d 49 46 03 c7 0a 4d 45   I....USB-IF...ME
USB > 0x0010: 51 30 32 33 32 35 36 32 37 2e 24 42 42 42 00 2c   Q02325627.$BBB.,
USB > 0x0020: 6d 62 00 00 00 00 00 00 00 00 00 00 00 00 00 00   mb..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
2025-01-19 12:00:14.911656: LAN < I00,00,00,00
usb-transfer took 63ms!
2025-01-19 12:00:14.911758: LAN > S7E386CC0,00,00000000,01,7E386CC0,998112424242000000

USB < 0x0000: 53 7e 38 6c c0 00 00 00 00 00 01 7e 38 6c c0 09   S~8l.......~8l..
USB < 0x0010: 99 81 12 42 42 42 00 00 00 00 00 00 00 00 00 00   ...BBB..........
USB < 0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
USB < 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 

USB > 0x0000: 49 00 00 00 00 55 53 42 2d 49 46 03 c7 0a 4d 45   I....USB-IF...ME
USB > 0x0010: 51 30 32 33 32 35 36 32 37 2e 24 42 42 42 00 2c   Q02325627.$BBB.,
USB > 0x0020: 6d 62 00 00 00 00 00 00 00 00 00 00 00 00 00 00   mb..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
2025-01-19 12:00:14.943756: LAN < I00,00,00,00

USB > 0x0000: 49 00 00 00 00 55 53 42 2d 49 46 03 c7 0a 4d 45   I....USB-IF...ME
USB > 0x0010: 51 30 32 33 32 35 36 32 37 2e 24 42 42 42 00 2c   Q02325627.$BBB.,
USB > 0x0020: 6d 62 00 00 00 00 00 00 00 00 00 00 00 00 00 00   mb..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
2025-01-19 12:00:14.975637: LAN < I00,00,00,00
usb-transfer took 63ms!

USB > 0x0000: 49 00 00 00 00 00 02 00 00 00 00 ff 7f ff 09 99   I...............
USB > 0x0010: 81 12 42 42 42 00 00 00 37 2e 24 42 42 42 00 2c   ..BBB...7.$BBB.,
USB > 0x0020: 6d 62 00 00 00 00 00 00 00 00 00 00 00 00 00 00   mb..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
2025-01-19 12:00:15.007752: LAN < I00,00,00,00

USB > 0x0000: 52 7e 38 6c c0 00 02 00 00 00 00 ff 7f ff 09 99   R~8l............
USB > 0x0010: 81 12 42 42 42 00 00 00 37 2e 24 42 42 42 00 2c   ..BBB...7.$BBB.,
USB > 0x0020: 6d 62 00 00 00 00 00 00 00 00 00 00 00 00 00 00   mb..............
USB > 0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................                                                 
2025-01-19 12:00:15.039757: LAN < R7E386CC0,0002,00000000,FF,7FFF,998112424242000000
^C

Im LXC FHEM bekomme ich allerdings keine Verbindung.


Internals:
   Clients    :CUL_HM:
   DEF        192.168.2.36:1234
   DeviceName 192.168.2.36:1234
   FUUID      678cdf2b-f33f-5c7b-b23a-8bbc495c75e7ca08
   NAME       hmusb
   NEXT_OPEN  1737285872.2312
   NR         63
   NTFY_ORDER 47-hmusb
   PARTIAL   
   STATE      disconnected
   TYPE       HMLAN
   XmitOpen   0
   assignedIDsCnt 3 report:0
   eventCount 1
   msgKeepAlive
   msgLoadCurrent 0
   nextOpenDelay 10
   owner     
   READINGS:
     2025-01-19 12:21:59   Xmit-Events     disconnected:2
     2025-01-19 12:21:59   cond            disconnected
     2025-01-19 12:21:59   prot_disconnected last
     2025-01-19 12:24:22   state           disconnected
   helper:
     assIdCnt   3
     assIdRep   0
     cnd:
       253        2
     ids:
       36D24F:
         cfg        +36D24F,00,00,00
         name       HM_36D24F
       52CD03:
         cfg        +52CD03,00,00,00
         name       HM_52CD03
       5FFF1C:
         cfg        +5FFF1C,00,00,00
         name       HM_5FFF1C
     k:
       BufMin     30
       DlyMax     0
     loadLvl:
       bl         40
       a:
         99
         90
         40
         0
       h:
         0          low
         40         batchLevel
         90         high
         99         suspended
     log:
       all        0
       sys        0
       ids:
         ARRAY(0x5e2bb9a82868)
     q:
       HMcndN     253
       answerPend 0
       hmLanQlen  1
       loadLastMax 0
       loadNo     0
       scnt       0
       sending    0
       ald:
         0
         0
         0
         0
         0
         0
         0
         0
         0
         0
         0
         0
       apIDs:
Attributes:
   hmId       424242
   hmLanQlen  1_min
   loadLevel  0:low,40:batchLevel,90:high,99:suspended

2025.01.19 12:21:59 1: HMLAN_Parse: hmusb new condition disconnected
2025.01.19 12:21:59 1: Including ./log/fhem.save
2025.01.19 12:21:59 3: Opening hmusb device 192.168.2.36:1234
2025.01.19 12:21:59 1: hmusb: Can't connect to 192.168.2.36:1234: Connection refused
2025.01.19 12:21:59 1: HMLAN_Parse: hmusb new condition disconnected


Proxmox auf MINIX-Z100, LXC: FHEM, FS20, FHT, HM, Tradfri, Alexa, Anker Solix Solarbank 2

Wernieman

Nur mal als Info:
Der Symlink zeigt auf ein Gerät auf den Host. Wenn Du jetzt nur den Symlink in den Container/VM-Host übernimmst, und nicht das Ziel, wie soll er dann darauf zugreifen können? Der Container/VM sieht im Symlink, greife aufs Gerät XYZ zu .. was er aber eben nicht sehen kann (im Container/VM). Du müsstest dann also den kompletten usbtree mit übernehmen, damit der Symlink auch auf das Gerät zeigen kann.

Um es zu verdeutlichen, nehmen wir an der Symlink /dev/Test Zeigt auf /dev/Ziel und um es zu verkürzen nehmen wir eine VM, bei Containern wie Docker) ist es analog.Hinweis: Es ist etwas vereinfacht ausgedrückt!
/dev/Test übergibst Du in die VM
Jetzt sieht die VM, wenn er auf /dev/Test zugreifen soll, nimm doch /dev/Ziel ... er sieht aber kein /dev/Ziel, weil dieses nicht in die VM übernomen wurde. Das es auf dem Host so geht, interessiert die VM nicht.
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html