Call HomeyScript from a device

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

HomeyScript uses the Web API, which is documented here.

There’s also a HomeyScript reference document here

See also here-under *Related Topics

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

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.