# \[Solved\] HTTP Binding open url

**URL:** <https://community.openhab.org/t/solved-http-binding-open-url/119531>\
**Category:** Bindings\
**Tags:** solved, shelly-25\
**Created:** [March 23, 2021, 3:30pm UTC](https://community.openhab.org/t/solved-http-binding-open-url/119531 "2021-03-23T15:30:09Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dande](https://community.openhab.org/user_avatar/community.openhab.org/dande/32/75367_2.png) [@Dande](https://community.openhab.org/u/Dande)\
**Post date:** [March 23, 2021, 3:30pm UTC](https://community.openhab.org/t/solved-http-binding-open-url/119531/1 "2021-03-23T15:30:09Z")

</div>

Hello,

I wanna send a request to the url [http://192.168.xxx.xxxx/roller/0?go=open](http://192.168.xxx.xxxx/roller/0?go=open) to open,close or stop my shelly rollershutter. How can I do this? I want to control the items with alexa.

---

<div class="post-metadata">

**Author:** ![hafniumzinc](https://community.openhab.org/letter_avatar_proxy/v4/letter/h/b9bd4f/32.png) [@hafniumzinc](https://community.openhab.org/u/hafniumzinc)\
**Post date:** [March 23, 2021, 3:40pm UTC](https://community.openhab.org/t/solved-http-binding-open-url/119531/2 "2021-03-23T15:40:12Z")

</div>

Can you show us what you’ve tried so far, and where you are stuck?

---

<div class="post-metadata">

**Author:** ![Dande](https://community.openhab.org/user_avatar/community.openhab.org/dande/32/75367_2.png) [@Dande](https://community.openhab.org/u/Dande)\
**Post date:** [March 23, 2021, 4:23pm UTC](https://community.openhab.org/t/solved-http-binding-open-url/119531/3 "2021-03-23T16:23:50Z")

</div>

I have no idea to bring this url in a item. That’s why I can’t show you anything and I need help

---

<div class="post-metadata">

**Author:** ![Wolfgang\_S](https://community.openhab.org/user_avatar/community.openhab.org/wolfgang_s/32/52719_2.png) [@Wolfgang\_S](https://community.openhab.org/u/Wolfgang_S)\
**Post date:** [March 23, 2021, 6:49pm UTC](https://community.openhab.org/t/solved-http-binding-open-url/119531/4 "2021-03-23T18:49:47Z")

</div>

> [@Dande](#):
>
> I have no idea to bring this url in a item.

have a look at [HTTP - Bindings | openHAB](https://www.openhab.org/addons/bindings/http/)  
It is also possible to use the [Exec binding](https://www.openhab.org/addons/bindings/exec/) by creating a script which runs e.g. a curl or wget command.  
You could try [executeCommandLine](https://www.openhab.org/docs/configuration/actions.html#exec-actions) which is similar to the exec binding.

---

<div class="post-metadata">

**Author:** ![rpwong](https://community.openhab.org/user_avatar/community.openhab.org/rpwong/32/36036_2.png) [@rpwong](https://community.openhab.org/u/rpwong)\
**Post date:** [March 23, 2021, 7:34pm UTC](https://community.openhab.org/t/solved-http-binding-open-url/119531/5 "2021-03-23T19:34:46Z")

</div>

> [@Dande](#):
>
> I want to control the items with alexa.

Are you aware that there’s an Alexa skill to connect to openHAB via the myopenHAB cloud?

---

<div class="post-metadata">

**Author:** ![Dande](https://community.openhab.org/user_avatar/community.openhab.org/dande/32/75367_2.png) [@Dande](https://community.openhab.org/u/Dande)\
**Post date:** [March 24, 2021, 1:06pm UTC](https://community.openhab.org/t/solved-http-binding-open-url/119531/6 "2021-03-24T13:06:02Z")

</div>

Yes. But how can I connect an roller shutter channel with open, close and stop in one channel with Alexa?

---

<div class="post-metadata">

**Author:** ![Vradatta](https://community.openhab.org/user_avatar/community.openhab.org/vradatta/32/56686_2.png) [@Vradatta](https://community.openhab.org/u/Vradatta)\
**Post date:** [March 24, 2021, 1:12pm UTC](https://community.openhab.org/t/solved-http-binding-open-url/119531/7 "2021-03-24T13:12:14Z")

</div>

Why you are not using the [Shelly Binding](https://www.openhab.org/addons/bindings/shelly/)?

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [March 24, 2021, 2:09pm UTC](https://community.openhab.org/t/solved-http-binding-open-url/119531/8 "2021-03-24T14:09:45Z")

</div>

Have you looked at any examples?

> [@\[OH3\] Roller shutter control with Alexa](https://community.openhab.org/t/oh3-roller-shutter-control-with-alexa/117262):
>
> Platform information: Hardware: AMD64/RAM 2048Mo/DISK 6Go OS: Debian x64 Java Runtime Environment: Zulu11.45 - 11.0.10 openHAB version: 3.0.1 Release build Issue of the topic: I’ve setup a my first OpenHab install with the cloud connector and the Alexa skill. I can control all my items without any issue except my roller shutter I use a HTTP Binding with the RollerShutter configuration. With my item, all the controls are working perfectly (UP/DOWN/STOP) but when i use it with Alexa, …

---

<div class="post-metadata">

**Author:** ![Dande](https://community.openhab.org/user_avatar/community.openhab.org/dande/32/75367_2.png) [@Dande](https://community.openhab.org/u/Dande)\
**Post date:** [March 24, 2021, 3:20pm UTC](https://community.openhab.org/t/solved-http-binding-open-url/119531/9 "2021-03-24T15:20:21Z")

</div>

The shelly binding integrates the channel, but ALL e.g. open, close and stop in one channel. I dont now I can alexa tell to control that one channel in three ways. Thats the main problem.

---

<div class="post-metadata">

**Author:** ![Dande](https://community.openhab.org/user_avatar/community.openhab.org/dande/32/75367_2.png) [@Dande](https://community.openhab.org/u/Dande)\
**Post date:** [March 24, 2021, 3:21pm UTC](https://community.openhab.org/t/solved-http-binding-open-url/119531/10 "2021-03-24T15:21:33Z")

</div>

Yes I saw that. But he controls the rollershutter with percent. I cant do that (shelly problem). I only can control it with open, close and stop.

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [March 24, 2021, 3:35pm UTC](https://community.openhab.org/t/solved-http-binding-open-url/119531/11 "2021-03-24T15:35:24Z")

</div>

Oh, more like this

> [@Amazon Alexa mqtt shutters integration help](https://community.openhab.org/t/amazon-alexa-mqtt-shutters-integration-help/101524/2):
>
> So the first thing is that you can only use percentage number currently, as per the examples in the documentation, when modeling a Rollershutter item as ModeController. If you want to use the direction command, you would need to use a proxy String item part of a group endpoint to achieve as per the example in the post below:

---

<div class="post-metadata">

**Author:** ![Dande](https://community.openhab.org/user_avatar/community.openhab.org/dande/32/75367_2.png) [@Dande](https://community.openhab.org/u/Dande)\
**Post date:** [March 24, 2021, 3:45pm UTC](https://community.openhab.org/t/solved-http-binding-open-url/119531/12 "2021-03-24T15:45:06Z")

</div>

I don’t understand how that can help in my situation ☹

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [March 24, 2021, 3:48pm UTC](https://community.openhab.org/t/solved-http-binding-open-url/119531/13 "2021-03-24T15:48:43Z")

</div>

Well, it explains how to get UP, DOWN,STOP commands from Alexa, which is what you said you wanted.

Are you trying to solve everything in one thought? There are two parts to your objective. Get commands you want from Alexa to an openHAB Item. Get commands from an openHAB Item to your HTTP device. Two separate jobs.

---

<div class="post-metadata">

**Author:** ![Dande](https://community.openhab.org/user_avatar/community.openhab.org/dande/32/75367_2.png) [@Dande](https://community.openhab.org/u/Dande)\
**Post date:** [March 24, 2021, 3:54pm UTC](https://community.openhab.org/t/solved-http-binding-open-url/119531/14 "2021-03-24T15:54:22Z")

</div>

Ok I explain my idea. The current situation is one channel with 3 modes open, close and stop. I can’t add a alexa metadata for that one channel with 3 function.  
My idea is to seperate the 3 commands in 3 difrent channels. Then I want to add in all 3 channel seperate alexa metadatas.  
Is this the wrong way? Does anyone know a better way?

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [March 24, 2021, 3:58pm UTC](https://community.openhab.org/t/solved-http-binding-open-url/119531/15 "2021-03-24T15:58:02Z")

</div>

> [@Dande](#):
>
> Is this the wrong way?

Yes. See further references in earlier thread

> [@Official Alexa Smart Home Skill for openHAB 2](https://community.openhab.org/t/official-alexa-smart-home-skill-for-openhab-2/23533/992):
>
> Hi Jeremy, Thank you. All working now without any extra bits of language code Alexa had trouble with ‘Knits’ in your example. She thinks I say two minutes and sets a timer. Doh! So, I changed it to Woolens grinning For my blinds, open, close, raise and lower all work. The work around for the lack of an Alexa Stop command for blinds is working and totally handled by openHAB without an Alexa routine. I used both mode and range controllers to do it. Or I should say it could be fully handled…

---

<div class="post-metadata">

**Author:** ![Dande](https://community.openhab.org/user_avatar/community.openhab.org/dande/32/75367_2.png) [@Dande](https://community.openhab.org/u/Dande)\
**Post date:** [March 26, 2021, 8:27am UTC](https://community.openhab.org/t/solved-http-binding-open-url/119531/16 "2021-03-26T08:27:03Z")

</div>

I solved my problem. Easy way:  
I created 3 dummy switches for open, close and stop. Then I created 3 rules. When e.g. the stop switch chaned from off to on, then send command “stop” to the shelly control channel and update state of the stop switch back to OFF. Thats all. Now I have 3 switched modded to buttons that I can seperate control with alexa metadata =)
