]> git.basschouten.com Git - openhab-addons.git/commit
[linuxinput] fixes to thing properties (#10634)
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 5 May 2021 20:22:18 +0000 (22:22 +0200)
committerGitHub <noreply@github.com>
Wed, 5 May 2021 20:22:18 +0000 (22:22 +0200)
commite510244cb62e6f759fbb88cb9575d2d3fb3127f8
tree95ae06c1c540b9727924025e201c645beb38628f
parent4efccacb10af909b45112790f2b16634ddb87a61
[linuxinput] fixes to thing properties (#10634)

* Do not discover on ENTRY_MODIFY

ENTRY_MODIFY is triggered on each keypress multiple times, so we should
not trigger on it.

The usecase for ENTRY_MODIFY triggers where detecting permission changes
of the event nodes.
Inotify does have a dedicate event ("ATTRIB") for that but Java
WatchService normalizes this to a ENTRY_MODIFY event
(See LinuxWatchService.java)

After permission changes users now have to trigger a scan manually.

* Use proper representation property

* Show event node in label

This makes it easier to figure out which thing is which device in the
presence of symlinks or multiple identical devices.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
bundles/org.openhab.binding.linuxinput/src/main/java/org/openhab/binding/linuxinput/internal/LinuxInputDiscoveryService.java