# Is it possible to turnon/turnoff device in Homey Pro 2023 using curl requests?

**URL:** <https://community.homey.app/t/is-it-possible-to-turnon-turnoff-device-in-homey-pro-2023-using-curl-requests/106478>\
**Category:** Questions & Help\
**Tags:** homey-pro\
**Created:** [March 17, 2024, 12:14pm UTC](https://community.homey.app/t/is-it-possible-to-turnon-turnoff-device-in-homey-pro-2023-using-curl-requests/106478 "2024-03-17T12:14:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adr1an](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adr1an/32/79007_2.png) [@adr1an](https://community.homey.app/u/adr1an)\
**Post date:** [March 17, 2024, 12:14pm UTC](https://community.homey.app/t/is-it-possible-to-turnon-turnoff-device-in-homey-pro-2023-using-curl-requests/106478/1 "2024-03-17T12:14:23Z")

</div>

Hi,

I’d like to be turn off / turn on devices in homey using curl from a linux box.  
Can someone point me in the right direction?  
Thank you.

---

<div class="post-metadata">

**Author:** ![CaptainVoni](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/captainvoni/32/3549_2.png) [@CaptainVoni](https://community.homey.app/u/CaptainVoni)\
**Post date:** [March 17, 2024, 12:18pm UTC](https://community.homey.app/t/is-it-possible-to-turnon-turnoff-device-in-homey-pro-2023-using-curl-requests/106478/2 "2024-03-17T12:18:10Z")

</div>

Take a look at the logic When-flow card for webhooks. There’s also a short description there how it works.

---

<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:** [March 17, 2024, 12:36pm UTC](https://community.homey.app/t/is-it-possible-to-turnon-turnoff-device-in-homey-pro-2023-using-curl-requests/106478/3 "2024-03-17T12:36:03Z")

</div>

It works when you execute  
`curl url`

When you only use or want to use local webhooks, use this:  
`curl http://my_homey_ip/webhook?event=my_event&tag=my_tag`  
(Otherwise follow the hint by CaptainVoni (hover the (i) at the trigger card below))

This flow triggers:

 ![Screenshot from 2024-03-17 12-27-25](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/5/05fea777fab35a5fc56c3f839ee63866fbf14a83.png)

.

As a ‘device\_y on’ and ’ device\_y off’ example:  
On:  
`curl http://my_homey_ip/webhook?event=device_y&tag=turn_on`  
Off:  
`curl http://my_homey_ip/webhook?event=device_y&tag=turn_off`  
But this will turn it off as well, while the tag doesn’t match ’ turn\_on’…:  
`curl http://my_homey_ip/webhook?event=device_y`

Flow:  
 ![Screenshot from 2024-03-17 12-32-49](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/7/179b34a24f29b58e06573d28aa20ba7b03d34356.png)
