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?