Question on managing events outside OpenHab GUI

Hello Matthias

I hope you got your question concerning setting temperatures through the Controme API is settled by now. I stumbled upon your Topic here, as I’m myself looking for answers on how to provide sensor values into the controme system via their API in this threat.

However concerning your question: - there is a nice tool by @BoBiene linked at the end of this threat https://community.openhab.org/t/controme-smart-heat/26797/5 , which almost automatically does what you want. (almost, as there is an easily fixable issue in the .item file which is created). Have a look

For setting the desired room temperature (Soll) the tool creates a rule file in which via commandline a Curl command is send to the RestAPI of the controme server.

The syntax is like this:

executeCommandLine("curl -X POST -F user=USERNAME -F password=PASSWORD -F soll="+receivedCommand.toString+" http://MINI-IP-ADRESS//set/json/v1/HAUSID/soll/ROOM-ID/")

The rules are connected to “Dummie_Items” (YOUR_SOLL_ITEM), which you can change e.g. with a slider in a sitemap.

the related rules read than e.g.:

rule "Set SOLL Temp" 
when Item YOUR_SOLL_ITEM received command 
then
executeCommandLine("curl -X POST -F user=USERNAME -F password=PASSWORD -F soll="+receivedCommand.toString+" http://192.168.10.233//set/json/v1/2/soll/3/")
end