EnOcean - warnings for NodOn measurement switchs

Hello,

I am getting a lot of warnings like this:
2024-07-24 13:22:28.590 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler EnOceanBaseActuatorHandler of thing enocean:measurementSwitch:...:... tried checking if channel ... is linked although the handler was already disposed.
I am using openHab 4.2.0 with enocean binding. (I noticed that I was getting the error also with openHab 4.1.0)
I have an EnOcean USB300 Dongle and a lot of enocean device like:

  • heatRecoveryVentilation
  • temperatureHumiditySensor
  • gasSensor
  • rockerSwitch
  • pushButton
  • measurementSwitch

But I am getting the warning only for all my measurementSwitches which are NodOn:

  • NodON SIN-2-1-00 (EEP: D2_01_0F)
  • NodON SIN-2-2-0x (EEP: D2_01_12)
  • Switching and energy measurement (EEP: D2_01_0E)

I don’t know what is causing them and how to fix it.

When I enable TRACE logger setting it prints also this:
2024-07-24 13:53:47.330 [DEBUG] [rnal.handler.EnOceanBaseThingHandler] - polling channels

Otherwise devices are working normally.

Thanks!

I can’t help on specifics. With another binding I have been working on, this warning shows up when I change the binding in the addons folder.

In my case the issue is that the polling is setup with a scheduler that doesn’t get properly disposed (although I have tried to ensure that happens). So the scheduler keeps running and tries to update the channels causing the error. So my guess is that there was some near fatal error that disposed the handler, but the polling was still going on.

I haven’t figured out how to “undispose” the handler without restarting OH. I have had some success restarting (or stop/start) the binding in karaf, but don’t have a lot of tests to confirm.

@apella12 thank you, restarting the OH stopped the errors.