Hi everyone!
I am running openHAB on a Raspberry 4 for quite a while now with only very few Things (basically just some rollershutters and that’s it). Now, I wanted to increase my overall setup. This was the trigger for me to look into updating OpenHAB to a reasonable version, before adding new binding, things, etc.
Before, I ran on OH3.0.0. Since updating from there seemed very painful to me and my setup is really small, I decided for a complete fresh install, to not mess things up. I am using openhabian before an after.
So my current goal is just to recreate the working state I was having on OH3.0.0 now on OH4.2.2.
I only use the EnOcean binding. All used hardware is unchanged.
To communicate with my EnOcean Devices, my RaspberryPi 4 is equipped with an EnOceanPi module on the GPIO pins.
To use it, I ran openhabian-config to deactivate the serial console and move BT to mini UART. Then, the EnOceanPi module gets available on /dev/ttyAMA0.
I tested this by calling hexdump /dev/ttyAMA0. I can see incoming messages once I press an EnOcean Push Button, telling me that the module itself is working (as it has on OH3).
However, when creating the EnOcean Gateway as the first necessary thing, it fails to fully initialize itself, getting stuck on the message “trying to get bridge base id…”
The logs aren’t very helpful to me, either:
==> /var/log/openhab/openhab.log <==
2024-10-14 22:46:20.396 [INFO ] [ernal.transceiver.EnOceanTransceiver] - EnOceanSerialTransceiver initialized
2024-10-14 22:46:20.401 [INFO ] [ernal.transceiver.EnOceanTransceiver] - EnOceanSerialTransceiver RX thread started
2024-10-14 22:46:20.407 [INFO ] [nternal.handler.EnOceanBridgeHandler] - EnOceanSerialTransceiver RX thread up and running
==> /var/log/openhab/events.log <==
2024-10-14 22:46:20.393 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘enocean:bridge:EnOceanGateway’ changed from OFFLINE (CONFIGURATION_PENDING): trying to get bridge base id… to OFFLINE (CONFIGURATION_PENDING): opening serial port…
2024-10-14 22:46:20.403 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘enocean:bridge:EnOceanGateway’ changed from OFFLINE (CONFIGURATION_PENDING): opening serial port… to OFFLINE (CONFIGURATION_PENDING): starting rx thread…
2024-10-14 22:46:20.416 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘enocean:bridge:EnOceanGateway’ changed from OFFLINE (CONFIGURATION_PENDING): starting rx thread… to OFFLINE (CONFIGURATION_PENDING): trying to get bridge base id…
Searching myself, I found this topic with the same observation, which is claimed to be fixed in 4.0.1., but since I am on 4.2.2, I would assume this is covered by now…
Edit: After some time, for reasons not clear to me, the interface to the EnOceanPi module gets stuck as well. This can be observed to ways: Trying to access ttyAMA0 via hexdump results in a “Permission denied”, while changes its error message to “port could not be found”. Logs:
==> /var/log/openhab/openhab.log <==
2024-10-14 23:08:25.887 [INFO ] [ernal.transceiver.EnOceanTransceiver] - EnOceanSerialTransceiver initialized
2024-10-14 23:08:25.898 [INFO ] [ernal.transceiver.EnOceanTransceiver] - EnOceanSerialTransceiver RX thread started
2024-10-14 23:08:25.902 [INFO ] [nternal.handler.EnOceanBridgeHandler] - EnOceanSerialTransceiver RX thread up and running
==> /var/log/openhab/events.log <==
2024-10-14 23:08:25.791 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘enocean:bridge:EnOceanGateway’ changed from UNINITIALIZED (NOT_YET_READY) to INITIALIZING
2024-10-14 23:08:25.801 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘enocean:bridge:EnOceanGateway’ changed from INITIALIZING to OFFLINE (CONFIGURATION_PENDING): trying to connect to gateway…
2024-10-14 23:08:25.820 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘enocean:bridge:EnOceanGateway’ changed from OFFLINE (CONFIGURATION_PENDING): trying to connect to gateway… to OFFLINE (CONFIGURATION_PENDING): opening serial port…
2024-10-14 23:08:25.900 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘enocean:bridge:EnOceanGateway’ changed from OFFLINE (CONFIGURATION_PENDING): opening serial port… to OFFLINE (CONFIGURATION_PENDING): starting rx thread…
2024-10-14 23:08:25.910 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘enocean:bridge:EnOceanGateway’ changed from OFFLINE (CONFIGURATION_PENDING): starting rx thread… to OFFLINE (CONFIGURATION_PENDING): trying to get bridge base id…
==> /var/log/openhab/openhab.log <==
2024-10-14 23:09:25.947 [INFO ] [ernal.transceiver.EnOceanTransceiver] - Transceiver shutdown
==> /var/log/openhab/events.log <==
2024-10-14 23:09:25.954 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘enocean:bridge:EnOceanGateway’ changed from OFFLINE (CONFIGURATION_PENDING): trying to get bridge base id… to OFFLINE (CONFIGURATION_PENDING): opening serial port…
2024-10-14 23:09:25.988 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘enocean:bridge:EnOceanGateway’ changed from OFFLINE (CONFIGURATION_PENDING): opening serial port… to OFFLINE (CONFIGURATION_ERROR): Port could not be found
==> /var/log/openhab/openhab.log <==
2024-10-14 23:10:25.986 [INFO ] [ernal.transceiver.EnOceanTransceiver] - Transceiver shutdown
==> /var/log/openhab/events.log <==
2024-10-14 23:10:26.000 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘enocean:bridge:EnOceanGateway’ changed from OFFLINE (CONFIGURATION_ERROR): Port could not be found to OFFLINE (CONFIGURATION_PENDING): opening serial port…
2024-10-14 23:10:26.009 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘enocean:bridge:EnOceanGateway’ changed from OFFLINE (CONFIGURATION_PENDING): opening serial port… to OFFLINE (CONFIGURATION_ERROR): Port could not be found
==> /var/log/openhab/openhab.log <==
2024-10-14 23:11:26.005 [INFO ] [ernal.transceiver.EnOceanTransceiver] - Transceiver shutdown
==> /var/log/openhab/events.log <==
2024-10-14 23:11:26.014 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘enocean:bridge:EnOceanGateway’ changed from OFFLINE (CONFIGURATION_ERROR): Port could not be found to OFFLINE (CONFIGURATION_PENDING): opening serial port…
2024-10-14 23:11:26.028 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘enocean:bridge:EnOceanGateway’ changed from OFFLINE (CONFIGURATION_PENDING): opening serial port… to OFFLINE (CONFIGURATION_ERROR): Port could not be found
Anyone having the same issue with some ideas to solve them? I would hate to revert to OH3, to be honest…
Thanks for any kind of help!
Markus