Help with HTTP Binding item configuration

Rollershutter Raffstore “Text [%d %%]” { http=">[*:POST:http://hp27/deviceajax.do?cid=9&did=1010042&goto=%2$s&command=0]" }

This is my code. But it doesnt work. Can someone please help me???
The sitemap file is corect.

Have you tried pinging that host from OH to know you are reaching it, if that works ping the dns name and ensure OH can resolve the name.
If basic connectivity is confirmed, test with curl and verify you can post the command to the device.

@usr Use codefences (as you have been told several times before!). You need help so you need to make it easy for us to help you.

I did a little googling using deviceajax.do as a keyword for you and found this topic.

So it seems to me that you should not use a POST but use a GET instead (I haven’t checked correctness of your item syntax):

Rollershutter Raffstore “Text [%d %%]” { http=">[*:GET:[http://hp27/deviceajax.do?cid=9&did=1010042&goto=%2$s&command=0]" }

But first like anonymous.one said, make sure that you can reach the device from you openHAB node.

If this does not help, then first make it work using a normal web browser. Then post the working URL using code fences (no code fences is no more help from me).

Edit: fixed the item definition. It got messed up due to copy/paste.

Those still look like GET and not POST.

You’ll want to define a url for UP and a url for DOWN in your Item binding, like the first example in the docs

I red the doku but it didn`t help me to fix it

What have you tried?

You don’t want POST. You want GET.

Rollershutter Raffstore “Text [%d %%]” { http=">[*:GET: ....

Next, you don’t want to send the same thing for all commands *
You want to send something different for UP and DOWN

http=">[UP:GET: .... ] >[DOWN:GET: .... ]"
Rollershutter Raffstore "Text [%d %%]" { http=">[UP:GET:[http://hp27/deviceajax.do?cid=9&did=1010042&goto=%2$s&command=0] >[DOWN:GET: [http://hp27/deviceajax.do?cid=9&did=1010042&goto=%252%24s&command=1]}"

I have made your things in it but it doesn´t work.
I want to do that with a slider…are you sure it is with up and down?

The Item definition you have posted has all kinds of unwanted url encoding in it, but that may just be because of posting. Check your file content though.

We only know what you tell us. If you want to translate some other command instead of up and down, that’s fine, but we cannot guess and that is all you mentioned so far.

Look in events.log to see what commands are getting sent to your Item when you use whichever UI widget you have chosen.
If you use a slider, I think you will get numbers 0 to 100. What would you like to happen with those?

You have successfully installed HTTP binding, haven’t you?

it is not working
yes i have installed it

Okay, one step forward.

Look in events.log to see what commands are getting sent to your Item when you use whichever UI widget you have chosen.
If you use a slider, I think you will get numbers 0 to 100. What would you like to happen with those?

events.log (112.5 KB)

This is all we needed

2019-01-10 12:15:26.309 [ome.event.ItemCommandEvent] - Item 'Raffstore' received command 69

Okay, so your Item Raffstore is being sent numeric commands.

What would you like to happen with those commands? Do you know what to send to your mystery device to make it go to position 75, say? May we know what the mystery device is, perhaps?

1 Like

I have a lenove pc, should i maybe reinstall openhab?

You can reinstall if you like, it won’t help openHAB to guess what you want.

Please be clear about what you would like to be sent to the unknown device.

I want a slider where i can scroll mit rollershutter

from rademacher

Then you can do 2 things: either declare the item as a dimmer instead of a rollershutter or declare in de sitemap the item as a slider.
To test, you can also use the console and use the command: smarthome:send Raffstore 100 (or whatever number to use to get the rollershutter open/close or to certain position)

image
i made it but nothing happened. I think the command is not 100 Procent right.

Now my sitemap is a slider and my iteam is a dimmer

I red the docu but cant find how it works…i think iam nearly to control

Can someone help???