11. Try the same action with OpenApp Scripting
For normal app code, prefer direct SDK methods such as client.entities.actions(...). OpenApp Scripting is useful when you want a script that chains several OpenApp operations (the SDK exposes it as client.scripting).
The previous step, The same call from the SDK, already showed client.scripting.execute (string) and client.scripting.execute_file (.openapp file) for opening the demo door. Here is the same pattern end to end:
from openapp_sdk import Client
ENTITY_ID = "paste-your-entity-id-here"API_KEY = "paste-your-full-api-key-here"
client = Client.connect(api_key=API_KEY)result = client.scripting.execute( script=f'entity_action("{ENTITY_ID}", "switchable.open", #{{}});')print(result)Or save the script in open-door.openapp:
entity_action("paste-your-entity-id-here", "switchable.open", #{});Then run that file through the SDK:
from openapp_sdk import Client
API_KEY = "paste-your-full-api-key-here"
client = Client.connect(api_key=API_KEY)result = client.scripting.execute_file("open-door.openapp")print(result)You have traced the same open-door action from dashboard and portal through curl, the SDK, and an OpenApp Scripting program—plus the earlier path from account and org to integrations, entities, and Virtual Access. Next steps points to deeper guides, production hardware and orgs, and the full reference surface.