# Local http GET requests possible with new Homey Pro?

**URL:** <https://community.homey.app/t/local-http-get-requests-possible-with-new-homey-pro/89229>\
**Category:** Questions & Help\
**Tags:** homey-pro\
**Created:** [September 11, 2023, 8:17pm UTC](https://community.homey.app/t/local-http-get-requests-possible-with-new-homey-pro/89229 "2023-09-11T20:17:08Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![the\_etk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/the_etk/32/83012_2.png) [@the\_etk](https://community.homey.app/u/the_etk)\
**Post date:** [September 11, 2023, 8:17pm UTC](https://community.homey.app/t/local-http-get-requests-possible-with-new-homey-pro/89229/1 "2023-09-11T20:17:08Z")

</div>

I’d like to be able to control some of my local devices using http requests, is it possible to do this if I get a Homey Pro? I know they won’t work with the cloud system but am hoping they should be ok with a Pro device?

---

<div class="post-metadata">

**Author:** ![Matthieu\_Moreau](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/matthieu_moreau/32/57526_2.png) [@Matthieu\_Moreau](https://community.homey.app/u/Matthieu_Moreau)\
**Post date:** [September 11, 2023, 8:21pm UTC](https://community.homey.app/t/local-http-get-requests-possible-with-new-homey-pro/89229/2 "2023-09-11T20:21:44Z")

</div>

hello see if this suits you

> **[Local API](https://homey.app/fr-fr/app/dev.dadda.localapi/Local-API/)**
>
> Local API Creator directly hosted and served from your Homey Hub

---

<div class="post-metadata">

**Author:** ![the\_etk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/the_etk/32/83012_2.png) [@the\_etk](https://community.homey.app/u/the_etk)\
**Post date:** [September 11, 2023, 8:26pm UTC](https://community.homey.app/t/local-http-get-requests-possible-with-new-homey-pro/89229/3 "2023-09-11T20:26:19Z")

</div>

thanks, I’m not sure if I understand the app properly - does it allow me to send something like:

`https://192.168.1.140/httpapi.asp?command=setPlayerCmd:play:http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_6music.m3u8`

locally?

This would send a command to an unsupported music player on my network to start playing a radio station

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [September 11, 2023, 9:20pm UTC](https://community.homey.app/t/local-http-get-requests-possible-with-new-homey-pro/89229/4 "2023-09-11T21:20:18Z")

</div>

Why https?

---

<div class="post-metadata">

**Author:** ![basvanderploeg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/basvanderploeg/32/83556_2.png) [@basvanderploeg](https://community.homey.app/u/basvanderploeg)\
**Post date:** [September 11, 2023, 10:38pm UTC](https://community.homey.app/t/local-http-get-requests-possible-with-new-homey-pro/89229/5 "2023-09-11T22:38:30Z")

</div>

You can do that with webhooks.

**Local Webhook:**

`http://<homey-ip>/webhook?event=my_event&tag=my_tag`

**Cloud webhook:**

`https://webhook.homey.app/<homey-cloud-id>/my_event?tag=my_tag`

Simply create a flow that triggers when the webhook is called.

 ![IMG_5942](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/3/d37d2828a6ffbc5da2667b517676d3ef66f54221.png)

Edit: I guess I understood your question wrong. You can easily make GET requests using this Logic card:

 ![IMG_5944](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/c/4cbf8a66e68ef848faf6b3a23b5729284028f7b8.png)

---

<div class="post-metadata">

**Author:** ![Matthieu\_Moreau](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/matthieu_moreau/32/57526_2.png) [@Matthieu\_Moreau](https://community.homey.app/u/Matthieu_Moreau)\
**Post date:** [September 12, 2023, 5:34am UTC](https://community.homey.app/t/local-http-get-requests-possible-with-new-homey-pro/89229/6 "2023-09-12T05:34:10Z")

</div>

in this case, with a simple logic card.

---

<div class="post-metadata">

**Author:** ![the\_etk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/the_etk/32/83012_2.png) [@the\_etk](https://community.homey.app/u/the_etk)\
**Post date:** [September 12, 2023, 6:42am UTC](https://community.homey.app/t/local-http-get-requests-possible-with-new-homey-pro/89229/7 "2023-09-12T06:42:19Z")

</div>

> [@basvanderploeg](#):
>
> Edit: I guess I understood your question wrong. You can easily make GET requests using this Logic card

When I try this with Homey cloud it fails as it’s a local IP address so doesn’t work over the external internet.

I wanted to check if doing the same thing off a local Homey Pro would actually work - can we confirm that the pro is able to control a local device over http?

---

<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:** [September 12, 2023, 6:45am UTC](https://community.homey.app/t/local-http-get-requests-possible-with-new-homey-pro/89229/8 "2023-09-12T06:45:25Z")

</div>

> [@the\_etk](#):
>
> I wanted to check if doing the same thing off a local Homey Pro would actually work - can we confirm that the pro is able to control a local device over http?

Yes, we can confirm that.

---

<div class="post-metadata">

**Author:** ![the\_etk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/the_etk/32/83012_2.png) [@the\_etk](https://community.homey.app/u/the_etk)\
**Post date:** [September 12, 2023, 7:02am UTC](https://community.homey.app/t/local-http-get-requests-possible-with-new-homey-pro/89229/9 "2023-09-12T07:02:07Z")

</div>

Perfect thank you!

---

<div class="post-metadata">

**Author:** ![Farley](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/farley/32/91753_2.png) [@Farley](https://community.homey.app/u/Farley)\
**Post date:** [November 15, 2023, 4:46am UTC](https://community.homey.app/t/local-http-get-requests-possible-with-new-homey-pro/89229/10 "2023-11-15T04:46:03Z")

</div>

This does not seem to be true. I’ve got the Homey Pro 2023 and local requests absolutely do not work whatsoever. Is there something I’m missing? I’ve got a simple Python-based local HTTP server setup to proxy to control some IoT devices which Homey does not natively support. I can in my terminal right now `curl` a URL which works perfectly but that same URL does not work from my Homey Pro neither in basic or advanced flow. Help? I’m happy to send screenshots, evidence, or whatever needed to help debug this further.

I’ve also tried a “Homeyscript” provided by others and it has a failure… ⚠ FetchError: request to [http://172.17.183.179:5000/switch\_one?state=on](http://172.17.183.179:5000/switch_one?state=on) failed, reason: connect EHOSTUNREACH 172.17.183.179:5000.

---

<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:** [November 15, 2023, 6:24am UTC](https://community.homey.app/t/local-http-get-requests-possible-with-new-homey-pro/89229/11 "2023-11-15T06:24:12Z")

</div>

> [@Farley](#):
>
> connect EHOSTUNREACH 172.17.183.179:5000.

That’s an internal Docker IP address. If you `curl` it from the same machine that is running the Docker container it might work, but it won’t be accessible from other machines in your network, for that you need to use port mapping.

---

<div class="post-metadata">

**Author:** ![Farley](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/farley/32/91753_2.png) [@Farley](https://community.homey.app/u/Farley)\
**Post date:** [November 15, 2023, 6:56am UTC](https://community.homey.app/t/local-http-get-requests-possible-with-new-homey-pro/89229/12 "2023-11-15T06:56:18Z")

</div>

@robertklep 172.16.0.0 – 172.31.255.255 is validate private IP networking ranges, and I use 172.17.x.x for my network at home. Are you trying to say that the Homey Pro internally uses docker and is internally using that range for something?

Here’s a glance at my Unifi Ubiquiti dashboard of a few of my internal devices on my network to show/highlight/prove that the above address is fully valid and is not virtualized on some docker network. My “Homey Pro” has a 172.17.x.x address also, of course.

[[Album] imgur.com ![](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/b/2bdf957e6f7f68511514dcf3e583e1b422a5c38f.jpeg "imgur.com") ](https://imgur.com/a/AtdEYLf)

[[Album] Imgur: The magic of the Internet ![](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/a/bab3942e04ae5fcae937bc084c0ea9b2fef08bb9.jpeg "Imgur: The magic of the Internet") ](https://imgur.com/a/uw30YC0)

---

<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:** [November 15, 2023, 7:08am UTC](https://community.homey.app/t/local-http-get-requests-possible-with-new-homey-pro/89229/13 "2023-11-15T07:08:28Z")

</div>

> [@Farley](#):
>
> and I use 172.17.x.x for my network at home. Are you trying to say that the Homey Pro internally uses docker and is internally using that range for something?

I didn’t mean that (I thought that your proxy might be running in a container), but yes, HP internally uses a Docker container to run Homey’s core and apps in, which will probably cause issues with routing (and I can’t even imagine the issues that may result from having the outward-pointing network interface having an address in the same range as the docker network interface…🤔).

The EHOSTUNREACH error is a routing error, I get the same if I try to ping the IP address from Homey:

```auto
$ ping 172.17.183.179
PING 172.17.183.179 (172.17.183.179) 56(84) bytes of data.
From 172.17.0.1 icmp_seq=1 Destination Host Unreachable

```

(172.17.0.1 is the Docker “router”)

---

<div class="post-metadata">

**Author:** ![Farley](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/farley/32/91753_2.png) [@Farley](https://community.homey.app/u/Farley)\
**Post date:** [November 15, 2023, 7:12am UTC](https://community.homey.app/t/local-http-get-requests-possible-with-new-homey-pro/89229/14 "2023-11-15T07:12:09Z")

</div>

@robertklep So… if I’m understanding you correctly, the only way to solve this problem is to change my network to use a different IP scheme other than 172.17.x.x? Is there any other “reserved” internal IP networks that I can’t use for my network before I make this somewhat significant change in my network here at my home/business?

This would also explain why I can’t seem to connect to some Sonoff Wifi-based devices either. ☹ Seems like an oversight to hardcode using that IP scheme. Afaik, docker by default when you first install and start it up on a new device detects what networks are in use and uses an IP network that isn’t in-use. Does this on all my computers and servers, but it seems like Homey has this hardcoded

---

<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:** [November 15, 2023, 7:23am UTC](https://community.homey.app/t/local-http-get-requests-possible-with-new-homey-pro/89229/15 "2023-11-15T07:23:26Z")

</div>

> [@Farley](#):
>
> the only way to solve this problem is to change my network to use a different IP scheme other than 172.17.x.x?

It _might_ be possible to do some trickery with an additional router (which would have a “WAN” address in your existing range, and the “LAN” ports in a safe range and do some sort of address rewriting) but I can’t provide any specifics on how that would work.

> [@](#):
>
> Is there any other “reserved” internal IP networks that I can’t use for my network before I make this somewhat significant change in my network here at my home/business?

Not that I can think of, 10.0.0.0/8 and 192.168.0.0/24 should work fine.

---

<div class="post-metadata">

**Author:** ![Farley](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/farley/32/91753_2.png) [@Farley](https://community.homey.app/u/Farley)\
**Post date:** [November 15, 2023, 7:26am UTC](https://community.homey.app/t/local-http-get-requests-possible-with-new-homey-pro/89229/16 "2023-11-15T07:26:44Z")

</div>

Thanks so much for the heads up. To meet my desired needs for automation I’ll explore either a VLAN and dedicated Wireless AP with a 192/10.x subnet and make my IoT-ish devices join that OR I’ll take the leap and change my IP scheme of my entire network. I’ve got my work cut out for me either way. Thanks so much!

---

<div class="post-metadata">

**Author:** ![Farley](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/farley/32/91753_2.png) [@Farley](https://community.homey.app/u/Farley)\
**Post date:** [November 21, 2023, 12:21am UTC](https://community.homey.app/t/local-http-get-requests-possible-with-new-homey-pro/89229/17 "2023-11-21T00:21:16Z")

</div>

Update: Changed my network’s IP CIDR resolved my issues. Was annoying, but worth it! Still have to fix a handful of things inside my network that had static IPs and such, but yep. Thanks RobertKlep
