That was apparently not entirely correct. I changed the serial port to “serialPort=/dev/ttyAMA0”.
I then tried to define my Etalko FT55-rw switch in my .items file according to the EnEocean binding documentation like this, where FE:F9:EB:23 is the ID of my Etalko switch.
Switch Button01top "Switch left top" <wallswitch> { enocean="{id=FE:F9:EB:23, eep=F6:02:01, channel=A, parameter=O}" }
Switch Button01bottom "Switch left bottom" <wallswitch> { enocean="{id=FE:F9:EB:23, eep=F6:02:01, channel=A, parameter=I}" }
Switch Button02top "Switch right top" <wallswitch> { enocean="{id=FE:F9:EB:23, eep=F6:02:01, channel=B, parameter=O}" }
Switch Button02bottom "Switch right bottom" <wallswitch> { enocean="{id=FE:F9:EB:23, eep=F6:02:01, channel=B, parameter=I}"
The log file shows some entries regarding the EnOcean binding.
21:29:28.050 [DEBUG] [org.openhab.binding.enocean ] - BundleEvent STARTING - org.openhab.binding.enocean
21:29:28.057 [DEBUG] [ng.enocean.internal.EnoceanActivator] - enocean binding has been started.
21:29:28.114 [DEBUG] [org.openhab.binding.enocean ] - ServiceEvent REGISTERED - {org.openhab.model.item.binding.BindingConfigReader, org.openhab.binding.enocean.EnoceanBindingProvider}={component.name=org.openhab.binding.enocean.genericbindingprovider, component.id=165, service.id=290, service.bundleid=185, service.scope=bundle} - org.openhab.binding.enocean
21:29:28.120 [DEBUG] [org.openhab.binding.enocean ] - BundleEvent STARTED - org.openhab.binding.enocean
21:29:28.327 [INFO ] [.enocean.internal.bus.EnoceanBinding] - Connecting to Enocean [serialPort='/dev/ttyAMA0' ].
21:29:28.330 [DEBUG] [org.openhab.binding.enocean ] - ServiceEvent REGISTERED - {org.osgi.service.event.EventHandler, org.osgi.service.cm.ManagedService}={event.topics=openhab/command/*, service.pid=org.openhab.enocean, component.name=org.openhab.binding.enocean.binding, component.id=164, service.id=295, service.bundleid=185, service.scope=bundle} - org.openhab.binding.enocean
21:29:29.235 [DEBUG] [.enocean.internal.bus.EnoceanBinding] - Updating item state for items [Button02bottom, Button01top, Button02top, Button01bottom]
However, if I hit a button on my switch, nothing shows up in the logs. So I doubt that my physical switch is really connected to my EnOcean gateway. How can I check if a connection between the switch and the gateway has been established?
Also, the LED of the EnOceanPi card in my RPi3 is constantly showing a green light. Nothing blinks or something like that when hitting a button on my physical switch, which I guess it should, shouldn’t it?
I used to use FHEM before. In FHEM you had to ‘teach in’ the physical switch, i.e. make the connection to the gateway. I am surprised that something like this is not needed in OH2.
At that point I would highly appreciate some further hints 