# Http request App - how to sent a command to Domoticz

**URL:** <https://community.homey.app/t/http-request-app-how-to-sent-a-command-to-domoticz/6718>\
**Category:** Questions & Help\
**Created:** [January 13, 2019, 3:55pm UTC](https://community.homey.app/t/http-request-app-how-to-sent-a-command-to-domoticz/6718 "2019-01-13T15:55:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [January 13, 2019, 3:55pm UTC](https://community.homey.app/t/http-request-app-how-to-sent-a-command-to-domoticz/6718/1 "2019-01-13T15:55:41Z")

</div>

I am able to extract data from my Domoticz installation running on my NAS, via the http request App.

 ![35](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/7/7d63b5543eb744b0ecba555b9491d482bc83f55c.png)

As an example:

![06](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/f/fab0873e0f449c914d2dd38855c3d59ed34f3454.png)

Now, I am trying to sent a command from Homey to Domoticz. Goal is to to flip a virtual switch in Domoticz via a flow in Homey 🙂

Via a browser, these command works:  
[http://IP](http://IP):PORT/json.htm?type=command&param=switchlight&idx=XX&switchcmd=On  
[http://IP](http://IP):PORT/json.htm?type=command&param=switchlight&idx=XX&switchcmd=Off  
where IP:PORT point to the Domoticz installation on my NAS and XX the ID of the Domoticz device.

I can’t get it to work in a flow, using the PUT cards. Can this be done? Which card do I use?

---

<div class="post-metadata">

**Author:** ![Jeroen\_Somhorst](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_somhorst/32/184_2.png) [@Jeroen\_Somhorst](https://community.homey.app/u/Jeroen_Somhorst)\
**Post date:** [January 13, 2019, 3:58pm UTC](https://community.homey.app/t/http-request-app-how-to-sent-a-command-to-domoticz/6718/2 "2019-01-13T15:58:12Z")

</div>

It doesn’t work wit the domoticz app? 😉

anyways. As far as I know you need to use GET requests instead of PUT.

---

<div class="post-metadata">

**Author:** ![bvdbos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bvdbos/32/2352_2.png) [@bvdbos](https://community.homey.app/u/bvdbos)\
**Post date:** [January 13, 2019, 4:20pm UTC](https://community.homey.app/t/http-request-app-how-to-sent-a-command-to-domoticz/6718/3 "2019-01-13T16:20:30Z")

</div>

As all info is in the url itself, shouldn’t it just be a “get”?

---

<div class="post-metadata">

**Author:** ![Jeroen\_Somhorst](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroen_somhorst/32/184_2.png) [@Jeroen\_Somhorst](https://community.homey.app/u/Jeroen_Somhorst)\
**Post date:** [January 13, 2019, 4:49pm UTC](https://community.homey.app/t/http-request-app-how-to-sent-a-command-to-domoticz/6718/4 "2019-01-13T16:49:16Z")

</div>

Indeed it’s a get request.

---

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [January 13, 2019, 5:11pm UTC](https://community.homey.app/t/http-request-app-how-to-sent-a-command-to-domoticz/6718/5 "2019-01-13T17:11:13Z")

</div>

Thanks guys! Got it to work. I had 2 ‘issues’… I indeed was using PUT instead of GET, but also the copy / paste did not work correctly. The & in the code caused a problem. After correcting these two, al works fine!

@Jeroen_Somhorst  
Yes, I could use your App. This was just a small test on getting this to work with a dummy switch in Domoticz 🙂

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [October 11, 2025, 6:08am UTC](https://community.homey.app/t/http-request-app-how-to-sent-a-command-to-domoticz/6718/6 "2025-10-11T06:08:25Z")

</div>

Archived on October 11, 2025, 6:08am UTC


