Context
The scenes are pure JSON, without code execution, so they can be shared without a sandbox or security risk.
Phase 1: Export / Import:
- Export: « Export » button on a scene → JSON file with parameters to fill in (device, room, threshold…), each described in a schema of type
config_schema - Import: « Import a scene » button → the user provides the file (or pastes the JSON), a form generated from the schema lets them choose their own devices/rooms, then the scene is created
- Sharing is done on the community forum (attachment or copy-paste), zero new infrastructure
Phase 2: Integrated Gallery (optional, separate ticket):
- Publication and navigation directly from Gladys, via a service hosted on the Gladys side (requires handling authentication and moderation)
Points of Attention
- Strict validation of the imported JSON on the server side (existing Joi schema for scenes)
- Compatible with Gladys Plus without specific work (standard JSON API on the instance side)
- Spec to write in
docs/specs/before implementation