# \[APP\]\[Pro\] HTTP request flow cards - HTTP request triggers, conditions and actions for flows

**URL:** <https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684>\
**Category:** Apps\
**Tags:** app, tools\
**Created:** [September 14, 2018, 5:35pm UTC](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684 "2018-09-14T17:35:39Z")\
**Posts on this page:** 20\
**Page:** 6

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [May 6, 2020, 6:52am UTC](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684/103 "2020-05-06T06:52:13Z")

</div>

You only need to set the Method (to GET) and the URL. Leave the other fields empty.

---

<div class="post-metadata">

**Author:** ![Raytestrak](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/raytestrak/32/3299_2.png) [@Raytestrak](https://community.homey.app/u/Raytestrak)\
**Post date:** [May 6, 2020, 7:14am UTC](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684/104 "2020-05-06T07:14:02Z")

</div>

Doesn’t work unfortunately, but I do love these errors 😂

![falsy](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/2/22e8596b74bb1f923fd85ded4759dda5c39d40a9.png)

If I just run the url with curl it works fine (curl -k ‘https:// **router-ip** /cgi-bin/luci/command/cfg099944s’).  
Enables and disables my adblock just fine. It does mention javascript in the output, can Homey run javascript?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [May 6, 2020, 7:28am UTC](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684/105 "2020-05-06T07:28:52Z")

</div>

Oh hang on, you’re using `-k` so I assume that your router is using a self-signed certificate. That’s probably the reason the flow card doesn’t work. Isn’t it possible to access the URL through `http://`?

Otherwise it’s going to be difficult to get it working. You can sort-of run JS through [Homeyscript](https://homey.app/nl-nl/app/com.athom.homeyscript/HomeyScript/), but it very likely it will not accept a self-signed certificate either. Another possible solution might be the [HTTP request flow cards app](https://homey.app/nl-nl/app/com.internet/HTTP-request-flowkaarten/), but again, not sure how that will deal with self-signed certs.

---

<div class="post-metadata">

**Author:** ![Raytestrak](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/raytestrak/32/3299_2.png) [@Raytestrak](https://community.homey.app/u/Raytestrak)\
**Post date:** [May 6, 2020, 8:02am UTC](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684/106 "2020-05-06T08:02:39Z")

</div>

Yes I am. I have a signed certificate for my WAN interface, but exposing my router to the internet just to be able to toggle my adblock is madness. But … you may have given me an idea. I could do a port forward to my router and set a firewall rule to only allow access to Homey. Or I can set my router back to http of course.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [May 6, 2020, 8:08am UTC](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684/107 "2020-05-06T08:08:44Z")

</div>

A port forward would only work if your router supports hairpinning, and if it does, it probably won’t be able to differentiate if the request was made from Homey or any other device on your local network (but perhaps that’s acceptable).

Perhaps the router can run both HTTP and HTTPS at the same time?

---

<div class="post-metadata">

**Author:** ![Raytestrak](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/raytestrak/32/3299_2.png) [@Raytestrak](https://community.homey.app/u/Raytestrak)\
**Post date:** [May 6, 2020, 8:18am UTC](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684/108 "2020-05-06T08:18:37Z")

</div>

> [@robertklep](#):
>
> Perhaps the router can run both HTTP and HTTPS at the same time?

Yeah, that’s the **way** easier solution 🤣

Did that, works fine now. Thank you for your quick and extensive help.

---

<div class="post-metadata">

**Author:** ![Dominik](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@Dominik](https://community.homey.app/u/Dominik)\
**Post date:** [August 6, 2020, 10:09pm UTC](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684/109 "2020-08-06T22:09:22Z")

</div>

Hello,  
I want to using the openHAB REST-API for control my shutter.

This statement is my mission to rebuilt with homey:

`curl -X POST --header "Content-Type: text/plain" --header "Accept: application/json" -d "DOWN" "http://openhab:8080/rest/items/RaffstoresAlle"`

I tried it with the following:

URL:  
`{"method":"post","protocol":"http:","hostname":"openhab:8080","path":"/rest/items/RaffstoresAlle","headers":{"Content-Type":"text/plain","Accept":"application/json"}}`

Data: I tried the following:

```
"DOWN"
["DOWN"]
{"DOWN"}

```

I always get the following error message:

> Promise was rejected with falsy value

Can someone help me? 🙂

At the moment I setup a small lighttpd server with a php script on my pi which sends this commands and only use http flow cards to issue simple get\_requests, which works.

But nevertheless I’m interested how it works directly from homey 🙂.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [August 7, 2020, 6:14am UTC](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684/110 "2020-08-07T06:14:36Z")

</div>

> [@Dominik](#):
>
> “hostname”:“openhab:8080”

That should be `"hostname":"openhab","port":8080`

As for the data, perhaps just `DOWN` (no quotes).

---

<div class="post-metadata">

**Author:** ![Dominik](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@Dominik](https://community.homey.app/u/Dominik)\
**Post date:** [August 7, 2020, 4:37pm UTC](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684/111 "2020-08-07T16:37:58Z")

</div>

Thank you! But when I try:

`{"method":"post","protocol":"http:","hostname":"openhab","port":8080,"path":"/rest/items/RaffstoresAlle","headers":{"Content-Type":"text/plain","Accept":"application/json"}}`

I get an error message:

`Flow Card Error: 400`

![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/7/778a77582542f12664b2fa49e9168c2e85ff23de.png)

Do you know why?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [August 7, 2020, 4:59pm UTC](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684/112 "2020-08-07T16:59:36Z")

</div>

Perhaps use `POST` instead of `post`. Or do try quotes around the text (`"DOWN"`).

---

<div class="post-metadata">

**Author:** ![Dominik](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@Dominik](https://community.homey.app/u/Dominik)\
**Post date:** [August 7, 2020, 5:30pm UTC](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684/113 "2020-08-07T17:30:31Z")

</div>

Also doesn’t work ☹. Tested it with POST and:

DOWN  
“DOWN”  
(“DOWN”)  
{“DOWN”}  
[“DOWN”]

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [August 7, 2020, 5:50pm UTC](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684/114 "2020-08-07T17:50:26Z")

</div>

I tried a few things as well, and it looks like the app doesn’t allow you to send raw POST data (it _has_ to be a valid JSON object).

Instead of using the HTTP Request Flow Cards app, it might be possible to get it working using the “Make a web request” card from Logic, which would look something like this:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/b/bbab7eba3068a5811fabf1e37a6dd76d39d696c5.jpeg)

However, I’m not sure if it will accept any response data, so if you rely on that, it may not be a workable solution.

---

<div class="post-metadata">

**Author:** ![Dominik](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@Dominik](https://community.homey.app/u/Dominik)\
**Post date:** [August 7, 2020, 6:10pm UTC](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684/115 "2020-08-07T18:10:59Z")

</div>

> [@robertklep](#):
>
> However, I’m not sure if it will accept any response data, so if you rely on that, it may not be a workable solution.

Yes that works great! Thank you very much and have a nice evening 🙂.

---

<div class="post-metadata">

**Author:** ![MrTomTom](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mrtomtom/32/11858_2.png) [@MrTomTom](https://community.homey.app/u/MrTomTom)\
**Post date:** [October 9, 2020, 8:31pm UTC](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684/116 "2020-10-09T20:31:09Z")

</div>

Just a quick question. What’s the benefit of using the app instead of built-in webhook feature?

Cheers, Tom

---

<div class="post-metadata">

**Author:** ![Erik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/erik/32/9865_2.png) [@Erik](https://community.homey.app/u/Erik)\
**Post date:** [October 10, 2020, 11:23am UTC](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684/117 "2020-10-10T11:23:24Z")

</div>

None, unless you need the geek functions like json extraction and http options.

---

<div class="post-metadata">

**Author:** ![Froos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/froos/32/37707_2.png) [@Froos](https://community.homey.app/u/Froos)\
**Post date:** [March 15, 2021, 2:30pm UTC](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684/118 "2021-03-15T14:30:38Z")

</div>

Hi there, I encouter problems with the Body request parameter ‘’‘grant\_type’’. Can HTTP request flows work with Body request parameters / URLSeachParam? What is the syntax in a flow for this?

This works on a Advance Rest Client:

curl “[https://oauth.cleargrass.com/oauth2/token](https://oauth.cleargrass.com/oauth2/token)”   
-X POST   
-d “grant\_type=client\_credentials”   
-H “Authorization: Basic el92ZzI4xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxDZlZDY5”   
-H “Content-Type: application/x-www-form-urlencoded”

Result 200ok  
{“access\_token”:“EuSlSPvfxxxxxxxxxxxnnMqcdiDbP16rQU7ft1QTRss5BR1M”,“expires\_in”:7199,“scope”:"",“token\_type”:“bearer”}

---

<div class="post-metadata">

**Author:** ![leman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leman/32/16566_2.png) [@leman](https://community.homey.app/u/leman)\
**Post date:** [April 18, 2021, 2:05pm UTC](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684/119 "2021-04-18T14:05:00Z")

</div>

This is probably the best thread to ask…

I’m trying to find a way for Homey to return a JSON on GET request. Is it possible at all (by using this app or via Homey native functionality)?

---

<div class="post-metadata">

**Author:** ![leman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leman/32/16566_2.png) [@leman](https://community.homey.app/u/leman)\
**Post date:** [April 19, 2021, 1:21pm UTC](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684/120 "2021-04-19T13:21:59Z")

</div>

To clarify: I have a third party voice assistant which may be integrated in various smart home projects via webhooks. For certain use cases it can generate a GET requests on voice command and waits back for numeric value with one decimal in JSON format {“value”=_._} which is then read back to the user (e.g. read out AC target temp when asked by the user). I’m able to trigger a flow in Homey with a GET request, but I’m unsure if it’s possible to make Homey respond with JSON containing the relevant temp value.

---

<div class="post-metadata">

**Author:** ![volodeev](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/volodeev/32/12304_2.png) [@volodeev](https://community.homey.app/u/volodeev)\
**Post date:** [November 2, 2021, 7:12am UTC](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684/121 "2021-11-02T07:12:56Z")

</div>

Hi.  
How do I add an intermediate and root certificate to connect to the API? Does not find the value of kata A22, because there is no intermediate and root certificate. Similar error [[APP] Simple HTTP Connector For Flows (2.0.0) - Page 14 — Athom Forum Archive](https://forum.athom.com/discussion/comment/72604/#Comment_72604)

HTTP Request Flow Cards v2.0.11  
Athome Homey v.4.1.0

---

<div class="post-metadata">

**Author:** ![janrikard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/janrikard/32/34785_2.png) [@janrikard](https://community.homey.app/u/janrikard)\
**Post date:** [March 20, 2022, 8:47pm UTC](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684/122 "2022-03-20T20:47:41Z")

</div>

HI

Im trying to send 2 variables at once to my homey.  
I have used A20 to send one value via GET.

I think its A30 i should use.  
Is there an example on how to do this?  
how should the URL look?  
How do i get the variables via A80 so i cold use them?

/Rikard

[Previous page](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684.md?page=5)

[Next page](https://community.homey.app/t/app-pro-http-request-flow-cards-http-request-triggers-conditions-and-actions-for-flows/1684.md?page=7)
