# Call HomeyScript from a device

**URL:** <https://community.homey.app/t/call-homeyscript-from-a-device/135165>\
**Category:** Developers\
**Tags:** app, homeyscript, homey-pro\
**Created:** [April 21, 2025, 7:57pm UTC](https://community.homey.app/t/call-homeyscript-from-a-device/135165 "2025-04-21T19:57:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christian\_Grewenig](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/christian_grewenig/32/49383_2.png) [@Christian\_Grewenig](https://community.homey.app/u/Christian_Grewenig)\
**Post date:** [April 21, 2025, 7:57pm UTC](https://community.homey.app/t/call-homeyscript-from-a-device/135165/1 "2025-04-21T19:57:19Z")

</div>

Hi,

Can I access HomeyScript from a Homey device? Or can I list all HomeyScripts when setting up a HomeyDevice, let the user select one and call this script with parameters during operation?

I imagine that the user creates a HomeyScript as a converter and the device then uses this converter accordingly.

If so, where can I find corresponding documentation or examples?

Thank you very much  
Christian

---

<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 22, 2025, 4:17pm UTC](https://community.homey.app/t/call-homeyscript-from-a-device/135165/2 "2025-04-22T16:17:27Z")

</div>

HomeyScript uses the Web API, which is documented [here](https://athombv.github.io/node-homey-api/HomeyAPIV2.html).

There’s also a HomeyScript reference document [here](https://athombv.github.io/com.athom.homeyscript/global)

See also here-under \ ***Related Topics**

---

<div class="post-metadata">

**Author:** ![Christian\_Grewenig](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/christian_grewenig/32/49383_2.png) [@Christian\_Grewenig](https://community.homey.app/u/Christian_Grewenig)\
**Post date:** [April 22, 2025, 7:45pm UTC](https://community.homey.app/t/call-homeyscript-from-a-device/135165/3 "2025-04-22T19:45:59Z")

</div>

Ok, thank you very much.

I had already seen this API documentation. But my understanding of the documentation is that it is used to access devices from HomeyScript. I would like to achieve exactly the opposite.

I want to be able to list all HomeScript files within a device and then call one of them with parameters and return value. Unfortunately, the linked documentation does not help me here.

Does anyone have an example of how to do this?

Best regards  
Christian

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [April 22, 2025, 8:07pm UTC](https://community.homey.app/t/call-homeyscript-from-a-device/135165/4 "2025-04-22T20:07:47Z")

</div>

This is most likely not possible.  
In general apps can’t access other apps unless that app has added in an (internal) App-API (privacy and protection purposes).  
But HomeyScript doesn’t have such a thing (publicly), as why would it.

You might be better off trying to explain what you are trying to do, as why do you need access to HomeyScript, while you can run any script in your own app, including the used web-API.
