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?
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.
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.