Hi,
I would like to use an USB Keyboard connected to RPi 4 to implement Linux input binding
But when I add the path, the status is offline.
I tried adding the path in three ways
1./dev/input/event0
2./dev/input/by-id/…
3./dev/input/by-path/…
Someone please do help me solve this issue.
Thanks in advance
Did you try discovery as listed in the official documentation?
rossko57
(Rossko57)
January 27, 2020, 1:08pm
3
Did you read the part in the docs about access rights? What actions did you take about that?
1 Like
So many ways to say Read The Fine Manual…
Yes, but I dont know how to give openhab, rights to access /dev/input files.
Can you please help me to configure the Udev rules in linux
rossko57
(Rossko57)
January 29, 2020, 12:23pm
6
Okay, so you read the part about it being necessary but haven’t done it yet. Sounds like something to follow up on.
I can’t help you with Linux, I know nothing about it.
I don’t know how helpful this sort of thing is?
I have modified the udev rules file to look like this:
SUBSYSTEM=="tty", ATTRS{idVendor}=="0658", ATTRS{idProduct}=="0200", SYMLINK+="USBzwave", OWNER="zvika", GROUP="zvika", MODE="0777"
Now I get this:
$ ll /dev/ttyACM0
crwxrwxrwx 1 zvika zvika 166, 0 Nov 7 19:56 /dev/ttyACM0
But still not working.
I’ve also tried these:
(before changing permission of ttyACM0):
$ cat /dev/ttyACM0
cat: /dev/ttyACM0: Permission denied
That demonstrates that user zvika doesn’t have permission to read fro…
t-8ch
(Thomas Weißschuh)
June 7, 2020, 7:19pm
7
If you want openhab to have access to all your input devices you can also make your openhab user part of the “input” group.
gpasswd -a <youruser> input
If you want more fine-grained permissions for the input devices you will have to write a custom udev rule that matches the devices that openhab can access.