The binding receives two different events (identified by the MIDs?):
13:09:25.452 [DEBUG] [helly.internal.coap.ShellyCoapHandler] - shellybutton1-xxxxxxx: CoIoT Message from /192.168.xx.yy:5683 (MID=28714): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,1],[0,3115,0],[0,3112,0],[0,3111,54],[0,9102,["button"]]]}
13:09:25.463 [DEBUG] [helly.internal.coap.ShellyCoapHandler] - shellybutton1-xxxxxxx: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,1],[0,3115,0],[0,3112,0],[0,3111,54],[0,9102,["button"]]]} (serial=256)
13:09:25.478 [DEBUG] [helly.internal.coap.ShellyCoapHandler] - shellybutton1-xxxxxxx: 7 CoAP sensor updates received
13:09:25.493 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellybutton1-xxxxxxx: Update button state with S/SHORT_PRESSED
13:09:25.511 [INFO ] [smarthome.event.ChannelTriggeredEvent] - shelly:shellybutton1:xxxxxxx:status#button triggered SHORT_PRESSED
13:09:25.536 [INFO ] [jsr223.javascript ] - |input {41dc4015-1591-4674-99b7-58a59900932b-shelly-js.event=shelly:shellybutton1:xxxxxxx:status#button triggered SHORT_PRESSED, event=shelly:shellybutton1:xxxxxxx:status#button triggered SHORT_PRESSED, module=41dc4015-1591-4674-99b7-58a59900932b-shelly-js}|
13:09:25.545 [INFO ] [jsr223.javascript ] - |input.event shelly:shellybutton1:xxxxxxx:status#button triggered SHORT_PRESSED|
13:09:25.558 [INFO ] [jsr223.javascript ] - |input.event.channel shelly:shellybutton1:xxxxxxx:status#button|
13:09:25.662 [DEBUG] [helly.internal.coap.ShellyCoapHandler] - shellybutton1-xxxxxxx: CoIoT Message from /192.168.xx.yy:5683 (MID=28715): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,1],[0,3115,0],[0,3112,0],[0,3111,54],[0,9102,["button"]]]}
13:09:25.665 [DEBUG] [helly.internal.coap.ShellyCoapHandler] - shellybutton1-xxxxxxx: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,1],[0,3115,0],[0,3112,0],[0,3111,54],[0,9102,["button"]]]} (serial=512)
13:09:25.670 [DEBUG] [helly.internal.coap.ShellyCoapHandler] - shellybutton1-xxxxxxx: 7 CoAP sensor updates received
13:09:25.673 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellybutton1-xxxxxxx: Update button state with S/SHORT_PRESSED
13:09:25.679 [INFO ] [smarthome.event.ChannelTriggeredEvent] - shelly:shellybutton1:xxxxxxx:status#button triggered SHORT_PRESSED
13:09:26.086 [INFO ] [jsr223.javascript ] - |input {41dc4015-1591-4674-99b7-58a59900932b-shelly-js.event=shelly:shellybutton1:xxxxxxx:status#button triggered SHORT_PRESSED, event=shelly:shellybutton1:xxxxxxx:status#button triggered SHORT_PRESSED, module=41dc4015-1591-4674-99b7-58a59900932b-shelly-js}|
13:09:26.091 [INFO ] [jsr223.javascript ] - |input.event shelly:shellybutton1:xxxxxxx:status#button triggered SHORT_PRESSED|
13:09:26.099 [INFO ] [jsr223.javascript ] - |input.event.channel shelly:shellybutton1:xxxxxxx:status#button|
(‘xxxxxxx’ is the id of the shelly device. It is identical in every message.)
The JavaScript-Log is the output of my custom rule, which is triggered by the button-event.
I have already tried to reset the button to the factory defaults via the web-interface. The behaviour does not change.