Seeing double PRESSED events for Doorbird

Hi there. I am having the following issue. Whenever I press the ring button on my Doorbird, I am seeing two PRESSED events instead of one, see here:

2024-11-10 16:59:25.484 [INFO ] [openhab.event.ChannelTriggeredEvent ] - doorbird:d101:doorbell:doorbell triggered PRESSED
2024-11-10 16:59:25.485 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'DoorbirdKlingelGedrueckt' received command ON
2024-11-10 16:59:25.485 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'DoorbirdKlingelGedrueckt' predicted to become ON
2024-11-10 16:59:25.486 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DoorbirdKameraKlingel' changed from raw type (image/jpeg): 46112 bytes to raw type (image/jpeg): 28308 bytes
2024-11-10 16:59:25.487 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DoorbirdKlingelGedrueckt' changed from OFF to ON
2024-11-10 16:59:25.582 [INFO ] [openhab.event.ChannelTriggeredEvent ] - doorbird:d101:doorbell:doorbell triggered PRESSED
2024-11-10 16:59:25.582 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'DoorbirdKlingelGedrueckt' received command ON
2024-11-10 16:59:25.582 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'DoorbirdKlingelGedrueckt' predicted to become ON

That leads to the appropriate rule being fired twice, even if I only monitor changes to ON:

rules.
    when().item("DoorbirdKlingelGedrueckt").receivedUpdate().toOn()
    .then((event) => {
     ...
    })
    .build("Notification bei Klingel", "Notification bei Klingel");

Does anybody know how to fix this?

What if you try a changed trigger?
Greets

Ah right, that did the trick. For future reference, this is what it needs to look like:

rules.
    when().item("DoorbirdKlingelGedrueckt").changed().toOn()
    .then((event) => {
     ...
    })
    .build("Notification bei Klingel", "Notification bei Klingel");

Still weird, though, that OH sees or sends two events.

I thought it was only me! :wink:

2024-11-11 08:56:22.109 [INFO ] [openhab.event.ChannelTriggeredEvent ] - doorbird:d101:binder:doorbell triggered PRESSED
2024-11-11 08:56:22.123 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DB_PressedImage' changed from NULL to raw type (image/jpeg): 86556 bytes
2024-11-11 08:56:22.126 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DB_LastPressed' changed from NULL to 2024-11-11T08:56:22.000+0100
2024-11-11 08:56:22.289 [INFO ] [openhab.event.ChannelTriggeredEvent ] - doorbird:d101:binder:doorbell triggered PRESSED
2024-11-11 08:56:22.305 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DB_PressedImage' changed from raw type (image/jpeg): 86556 bytes to raw type (image/jpeg): 86914 bytes
...
2024-11-11 08:56:25.249 [INFO ] [openhab.event.ChannelTriggeredEvent ] - doorbird:d101:binder:doorbell triggered RELEASED

strange thing:

  • DB_PressedImage gets also doubled
  • DB_LastPressed gets only once

and:

  • “PRESSED”-triggeraction is double
  • but “RELEASED”-triggeraction is only once