# How to get a 'result' passed to a script?

**URL:** <https://community.homey.app/t/how-to-get-a-result-passed-to-a-script/152357>\
**Category:** Questions & Help\
**Created:** [March 12, 2026, 10:40am UTC](https://community.homey.app/t/how-to-get-a-result-passed-to-a-script/152357 "2026-03-12T10:40:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Anders](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mark_anders/32/121970_2.png) [@Mark\_Anders](https://community.homey.app/u/Mark_Anders)\
**Post date:** [March 12, 2026, 10:40am UTC](https://community.homey.app/t/how-to-get-a-result-passed-to-a-script/152357/1 "2026-03-12T10:40:34Z")

</div>

I have this flow but need to change the value of the ‘Result’, but i cant figure out how to access that value form the script? Args doesn’t contain any information, so how else can access the Result form Logic Parse card?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/f/0f5a72deaa7c486aeb5d8322c7d6d5b4ad54eb28.jpeg)

---

<div class="post-metadata">

**Author:** ![Anoniemand](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anoniemand/32/120697_2.png) [@Anoniemand](https://community.homey.app/u/Anoniemand)\
**Post date:** [March 12, 2026, 12:23pm UTC](https://community.homey.app/t/how-to-get-a-result-passed-to-a-script/152357/2 "2026-03-12T12:23:33Z")

</div>

Does result has any value before you ask the script to do anything with it? When looking at something I created, the syntax seems right:

 ![Screenshot 2026-03-11 at 10.10.52](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/c/4cafe78459f5373a7da1f85dc28e23ea7ba33be5.png)

I’m handig over a complete JSON string via “Body” but as said the syntax seems right for args[0]

---

<div class="post-metadata">

**Author:** ![Mark\_Anders](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mark_anders/32/121970_2.png) [@Mark\_Anders](https://community.homey.app/u/Mark_Anders)\
**Post date:** [March 12, 2026, 2:43pm UTC](https://community.homey.app/t/how-to-get-a-result-passed-to-a-script/152357/3 "2026-03-12T14:43:14Z")

</div>

Yes, the Result tag has a correct value and passes to the virtual sensor perfectly. I just need to divide by 1000. However args in the script contains no values. The script works fine as a standalone test and manually giving it an argument.

---

<div class="post-metadata">

**Author:** ![Anoniemand](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anoniemand/32/120697_2.png) [@Anoniemand](https://community.homey.app/u/Anoniemand)\
**Post date:** [March 12, 2026, 4:03pm UTC](https://community.homey.app/t/how-to-get-a-result-passed-to-a-script/152357/4 "2026-03-12T16:03:04Z")

</div>

Maybe use the BLL card “run BLL expression (as tag)” instead? I’m translating from dutch, so maybe not exact match.

 ![Screenshot 2026-03-12 at 17.01.43](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/e/aec8eea7a2da9dfdccf199d10a21529118849502.png)  
 ![Screenshot 2026-03-12 at 17.01.53](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/4/f4c504fb57c1388fb96013970f4c331fff1308d1.png)

---

<div class="post-metadata">

**Author:** ![Mark\_Anders](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mark_anders/32/121970_2.png) [@Mark\_Anders](https://community.homey.app/u/Mark_Anders)\
**Post date:** [March 12, 2026, 6:58pm UTC](https://community.homey.app/t/how-to-get-a-result-passed-to-a-script/152357/5 "2026-03-12T18:58:43Z")

</div>

Great thanks, yes that works, still it would be nice to able to get the value into a script directly

---

<div class="post-metadata">

**Author:** ![Tom\_ten\_Den](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tom_ten_den/32/120986_2.png) [@Tom\_ten\_Den](https://community.homey.app/u/Tom_ten_Den)\
**Post date:** [March 13, 2026, 3:48pm UTC](https://community.homey.app/t/how-to-get-a-result-passed-to-a-script/152357/6 "2026-03-13T15:48:47Z")

</div>

I let Google AI make my script; it has step-by-step instructions on what you need to do.

I don’t understand it at all, but it works. 😂
