Program Scripts
Program Scripts are for behavior that is too specific for a simple scene but should still run inside the Haptique OS project.
Common uses
Section titled “Common uses”- Prepare a room based on time of day.
- Coordinate AV power, inputs, and lighting.
- Add conditional behavior around device state.
- Normalize integration responses into logical device state.
- Run installer-defined actions from a scene, favorite, RS90 button, or AI-approved command.
Safe setup steps
Section titled “Safe setup steps”- Start from one small behavior.
- Name the script by what the user outcome is.
- Limit the devices the script can control.
- Add confirmations for destructive or broad actions.
- Test the script from Haptique OS before mapping it to mobile, RS90, or AI.
- Log important state changes for support.
Where scripts fit
Section titled “Where scripts fit”Scripts should support the project model. A script can power a scene or favorite, but the user should still see understandable Spaces, logical devices, scenes, and labels in the apps.