[SOLVED] Ceiling light wireless switch miio binding java warning

I have openhab2 with miio binding. I try to make a rule to switch on and off a ceiling light with a wireles switch. Ithink the rule is ok, but in the log i get these warnings and nothing happening when i press the switch.
Any idea what to do?

.items:

Switch   LR_CL_Power    "Power"    {channel="miio:basic:ea28b6db:power"}

.rule:

rule "LR_SW_2"

    when 
        Channel "mihome:86sw2:7811dcb24692:158d000255eab4:ch2" triggered SHORT_PRESSED
    then
        
        if (LR_CL_Power.state == OFF || LR_CL_Power.state == NULL){
            LR_CL_Power.sendCommand(ON)
        }
        else{
            LR_CL_Power.sendCommand(OFF)
        }
end

Log:

2019-04-21 08:49:26.556 [vent.ChannelTriggeredEvent] - mihome:86sw2:7811dcb24692:158d000255eab4:ch2 triggered SHORT_PRESSED

2019-04-21 08:49:26.604 [ome.event.ItemCommandEvent] - Item 'LR_CL_Power' received command OFF

2019-04-21 08:49:26.616 [nt.ItemStatePredictedEvent] - LR_CL_Power predicted to become OFF

2019-04-21 08:49:26.625 [vent.ItemStateChangedEvent] - LR_CL_Power changed from ON to OFF

==> /var/log/openhab2/openhab.log <==

2019-04-21 08:59:10.181 [vent.ChannelTriggeredEvent] - mihome:86sw2:7811dcb24692:158d000255eab4:ch2 triggered SHORT_PRESSED

2019-04-21 08:59:10.233 [ome.event.ItemCommandEvent] - Item 'LR_CL_Power' received command ON

2019-04-21 08:59:10.245 [nt.ItemStatePredictedEvent] - LR_CL_Power predicted to become ON

2019-04-21 08:59:10.256 [vent.ItemStateChangedEvent] - LR_CL_Power changed from OFF to ON

==> /var/log/openhab2/openhab.log <==

2019-04-21 08:59:10.321 [WARN ] [nal.transport.MiIoAsyncCommunication] - Error while polling/sending message

java.nio.BufferOverflowException: null

	at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:189) ~[?:?]

	at java.nio.ByteBuffer.put(ByteBuffer.java:859) ~[?:?]

	at org.openhab.binding.miio.internal.Message.createMsgData(Message.java:63) ~[219:org.openhab.binding.miio:2.4.0]

	at org.openhab.binding.miio.internal.transport.MiIoAsyncCommunication.sendCommand(MiIoAsyncCommunication.java:246) ~[219:org.openhab.binding.miio:2.4.0]

	at org.openhab.binding.miio.internal.transport.MiIoAsyncCommunication.sendMiIoSendCommand(MiIoAsyncCommunication.java:161) ~[219:org.openhab.binding.miio:2.4.0]

	at org.openhab.binding.miio.internal.transport.MiIoAsyncCommunication$MessageSenderThread.run(MiIoAsyncCommunication.java:219) [219:org.openhab.binding.miio:2.4.0]

Hmm, after restarting the rpi the warning gone and everything is working.