As long as I have to use openHAB with user root: no
The dash button shows up as “unknown device”
I’ve created a rule:
rule "Dash button pressed"
when
Channel "amazondashbutton:dashbutton:AC-63-BE-62-BE-F5:press" triggered
then
logInfo("FILE","The dash button has been pressed")
end
but no loginfo is showing up when I press the button …
Upps … woke up at 02:30 in the morning, too tired to concentrate
pi@raspberrypi3:~ $ java -jar d3612-pcap4j-sample-0.0.1-snapshot-jar-with-dependencies.jar
8 Devices found:
eth0 (192.168.2.237, fd00:0:0:0:ec03:f2b7:c580:32e2, fe80:0:0:0:cc13:7303:fe0b:5efd) Capturing: DENIED! Message: eth0: You don't have permission to capture on that device (socket: Die Operation ist nicht erlaubt)
any (Pseudo-device that captures on all interfaces) Capturing: DENIED! Message: any: You don't have permission to capture on that device (socket: Die Operation ist nicht erlaubt)
lo (127.0.0.1, 0:0:0:0:0:0:0:1) Capturing: DENIED! Message: lo: You don't have permission to capture on that device (socket: Die Operation ist nicht erlaubt)
wlan0 (fe80:0:0:0:991a:d12c:ffca:b278) Capturing: DENIED! Message: wlan0: You don't have permission to capture on that device (socket: Die Operation ist nicht erlaubt)
bluetooth0 (Bluetooth adapter number 0) Capturing: WORKS!
nflog (Linux netfilter log (NFLOG) interface) Capturing: DENIED! Message: nflog: NFULNL_CFG_CMD_PF_UNBIND: Die Operation ist nicht erlaubt
nfqueue (Linux netfilter queue (NFQUEUE) interface) Capturing: DENIED! Message: nfqueue: NFQNL_CFG_CMD_PF_UNBIND: Die Operation ist nicht erlaubt
usbmon1 (USB bus number 1) Capturing: DENIED! Message: usbmon1: Can't open USB bus file /sys/kernel/debug/usb/usbmon/1t: Keine Berechtigung
I realise that the suggested command in the docs may have a conflict with the Network binding, since setcap may overwrite previous settings (i.e. cap_net_bind service=+ep) @oliver would you agree that for these people the command should be: