# Get logica value using webhook

**URL:** <https://community.homey.app/t/get-logica-value-using-webhook/62856>\
**Category:** Questions & Help\
**Created:** [April 20, 2022, 3:42pm UTC](https://community.homey.app/t/get-logica-value-using-webhook/62856 "2022-04-20T15:42:48Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![B3rt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/b3rt/32/9435_2.png) [@B3rt](https://community.homey.app/u/B3rt)\
**Post date:** [April 20, 2022, 3:42pm UTC](https://community.homey.app/t/get-logica-value-using-webhook/62856/1 "2022-04-20T15:42:48Z")

</div>

Is it possible to retrieve a webhook value using a webhook or something?

I know it is possible to set a value using a webhook, but is it possible to retrieve one also?

For example i have a logic value called; device\_online true/false  
Now i wish to retrieve this value (if it is false or true) using a script running on my NAS

Is this possible, if so how?

---

<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:** [April 20, 2022, 4:05pm UTC](https://community.homey.app/t/get-logica-value-using-webhook/62856/2 "2022-04-20T16:05:10Z")

</div>

Maybe this gets you going:

> [@Generate a device with json data](https://community.homey.app/t/generate-a-device-with-json-data/49439/2):
>
> With http request app you can get these dat into individual variables. Some examples;

---

<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:** [April 20, 2022, 4:33pm UTC](https://community.homey.app/t/get-logica-value-using-webhook/62856/3 "2022-04-20T16:33:46Z")

</div>

> [@B3rt](#):
>
> but is it possible to retrieve one also?

Not using webhooks. There are other solutions, like having Homey make a web request to your NAS, or using an in-between protocol like MQTT.

---

<div class="post-metadata">

**Author:** ![B3rt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/b3rt/32/9435_2.png) [@B3rt](https://community.homey.app/u/B3rt)\
**Post date:** [April 20, 2022, 4:42pm UTC](https://community.homey.app/t/get-logica-value-using-webhook/62856/4 "2022-04-20T16:42:37Z")

</div>

thx, but the examples only show how to send values not retrieve values, only set (or send) values to Homey, i need the other way…

So simply said i do a webhook call to Homey and homey then sends (or displays) values i want and i can use these values in a script running on my nas…

---

<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:** [April 20, 2022, 6:56pm UTC](https://community.homey.app/t/get-logica-value-using-webhook/62856/5 "2022-04-20T18:56:57Z")

</div>

> [@B3rt](#):
>
> So simply said i do a webhook call to Homey and homey then sends (or displays) values i want and i can use these values in a script running on my nas…

🙈 Oww, I see now. Then my post makes no sense indeed hehe \* grabs an extra strong coffee \*

But anyway, what if you use Logics card http POST?  
F.i. your NAS script sends a http GET request to Homey;  
Flow action:

 ![Screenshot_20220420-211602_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/d/8d4e9507df47627bd56c54e4964373563f3ebd01.jpeg)  
This sends a Yes/No value.

HTTP Request app has some more possibilities  
F.i. your NAS script sends a http GET request to Homey;  
Homey flow returns with HTTP Post action of one of these (don’t know which one)

 ![Screenshot_20220420-210313_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/0/40fa2ae315135b48484683f6549fc8ffb23b4719.jpeg)

---

<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:** [April 20, 2022, 11:04pm UTC](https://community.homey.app/t/get-logica-value-using-webhook/62856/6 "2022-04-20T23:04:16Z")

</div>

[https://homey.app/f/udQd91](https://homey.app/f/udQd91)  
Something like this?

---

<div class="post-metadata">

**Author:** ![B3rt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/b3rt/32/9435_2.png) [@B3rt](https://community.homey.app/u/B3rt)\
**Post date:** [April 20, 2022, 11:27pm UTC](https://community.homey.app/t/get-logica-value-using-webhook/62856/7 "2022-04-20T23:27:50Z")

</div>

i need the result as a value which i can use/receive/proces with my scrip on my nas  
The best is a json response with the result.

---

<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:** [April 21, 2022, 8:57am UTC](https://community.homey.app/t/get-logica-value-using-webhook/62856/8 "2022-04-21T08:57:49Z")

</div>

Whats wrong with “tag” in my example?

Have look at: [Webhooks - Homey Apps SDK](https://apps.developer.homey.app/cloud/webhooks)

---

<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:** [April 21, 2022, 9:06am UTC](https://community.homey.app/t/get-logica-value-using-webhook/62856/9 "2022-04-21T09:06:35Z")

</div>

It’s not about getting data _into_ Homey, it’s getting data _out_.

---

<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:** [April 21, 2022, 9:15am UTC](https://community.homey.app/t/get-logica-value-using-webhook/62856/10 "2022-04-21T09:15:15Z")

</div>

O K So this is not a Homey topic. Sorry.

---

<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:** [April 21, 2022, 9:18am UTC](https://community.homey.app/t/get-logica-value-using-webhook/62856/11 "2022-04-21T09:18:49Z")

</div>

> [@JPe4619](#):
>
> O K So this is not a Homey topic

Yes it is.

---

<div class="post-metadata">

**Author:** ![B3rt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/b3rt/32/9435_2.png) [@B3rt](https://community.homey.app/u/B3rt)\
**Post date:** [April 21, 2022, 10:02am UTC](https://community.homey.app/t/get-logica-value-using-webhook/62856/12 "2022-04-21T10:02:39Z")

</div>

it is Homey related and @robertklep is correct, it is getting data OUT of Homey.

For example i want to know if curtain sensors are armed or not in my NAS, only if they are i want to start other scripts on my NAS etc
