[SOLVED] Http binding, send string?

I`d like to send a message to my dreambox. to do so I send an url which works fine:

var String REMmsg = "http://192.168.1.150/web/message?text=Bitte%20Papiermull%20rausstellen!!&type=1&timeout=100"
sendHttpGetRequest(REMmsg)

I want to reuse the String in another rule so I update a string item with:

enigma_REMmsg.postUpdate(REMmsg)

in that other rule I do:

sendHttpGetRequest(enigma_REMmsg.toString)

but this throws a ton of errormessages including this one:

Caused by: java.net.URISyntaxException: Illegal character in scheme name at index 6: enigma_REMmsg (Type=StringItem, State=http://192.168.1.150/web/message?text=Bitte%20Papiermull%20rausstellen!!&type=1&timeout=100, Label=null, Category=null)

can someone tell what I do wrong? thanks…

Since enigma_REMmsg is an item, you need to get its state…

sendHttpGetRequest(enigma_REMmsg.state.toString)

Another option is to use a global variable, as long as the rules are in the same file.

…so easy, thanks for pointing me to that option! :slight_smile: