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
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.