# Controlling devices via HTTP

**URL:** <https://community.homey.app/t/controlling-devices-via-http/43072>\
**Category:** Questions & Help\
**Created:** [February 15, 2021, 10:31pm UTC](https://community.homey.app/t/controlling-devices-via-http/43072 "2021-02-15T22:31:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarumaycry](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tarumaycry/32/34267_2.png) [@tarumaycry](https://community.homey.app/u/tarumaycry)\
**Post date:** [February 15, 2021, 10:31pm UTC](https://community.homey.app/t/controlling-devices-via-http/43072/1 "2021-02-15T22:31:58Z")

</div>

I have a device that has an inbuilt http server which allows you to turn things ON/OFF through HTTP: (just an example below)  
ON: [http://IPADR/device1/on](http://IPADR/device1/on)  
OFF:[http://IPADR/device1/off](http://IPADR/device1/off)

Whats the best way to control this? Can i create a virtual button of some sort for this?

---

<div class="post-metadata">

**Author:** ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)\
**Post date:** [February 15, 2021, 11:05pm UTC](https://community.homey.app/t/controlling-devices-via-http/43072/2 "2021-02-15T23:05:47Z")

</div>

You can use webhooks for this. If you like, you can trigger this webhook by a virtual button, yes…

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [February 16, 2021, 3:38pm UTC](https://community.homey.app/t/controlling-devices-via-http/43072/3 "2021-02-16T15:38:01Z")

</div>

Like this in a Flow:  
 ![Clipboarder.2021.02.16-002](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/1/1192977d37a585a0c7ece840c8cdd5a169836c69.png)

---

<div class="post-metadata">

**Author:** ![tarumaycry](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tarumaycry/32/34267_2.png) [@tarumaycry](https://community.homey.app/u/tarumaycry)\
**Post date:** [February 18, 2021, 6:04am UTC](https://community.homey.app/t/controlling-devices-via-http/43072/4 "2021-02-18T06:04:27Z")

</div>

omg - thanks for this.
