Testing safely without affecting real customers
In the Leafy Energy demo, the API clearly separates a sandbox environment from a production-like environment so you can experiment safely.
Sandbox
- Fictional customers, sites and synthetic consumption data.
- Ideal for demos, proofs of concept and integration tests.
Production (demo)
- More realistic data and scenarios, but still not connected to actual grid data.
- Useful for demonstrating performance and monitoring concepts.
Selecting the environment in code
// Pseudo-code
const baseUrl = isSandbox
? "https://sandbox.leafy.energy/v1"
: "https://api.leafy.energy/v1";
Documentation and training material use this to stress the importance of separate environments in energy and smart home projects.
Comments
0 comments
Please sign in to leave a comment.