Openhab2 and Homematic, RestAPI doesn't change the light

I use Openhab2 together with Homematic (openhab2 binding) without any problem. I can for example toogle the light on the Basic UI screen with my sitemap. However when I try to change the STATE via RestAPI, only the icon on BasicUI screen toggle but not the actual light. I use the following commands:

C:\Users\Roger>curl -X PUT --header “Content-Type: text/plain” --header “Accept: application/json” -d “OFF” “http://192.168.1.8:8080/rest/items/Hobbyroom_Light/state

C:\Users\Roger>curl -X PUT --header “Content-Type: text/plain” --header “Accept: application/json” -d “ON” “http://192.168.1.8:8080/rest/items/Hobbyroom_Light/state

Found the problem myself. PUT only change the state when POST send the command. Correct commands should be:

C:\Users\Roger>curl -X POST --header “Content-Type: text/plain” --header “Accept: application/json” -d “OFF” “http://192.168.1.8:8080/rest/items/Hobbyroom_Light

C:\Users\Roger>curl -X POST --header “Content-Type: text/plain” --header “Accept: application/json” -d “ON” “http://192.168.1.8:8080/rest/items/Hobbyroom_Light