Start with a ready-made model
SPX includes a library of reusable device models, from energy meters and controllers to sensors and building systems. Choose a model close to your device, create an instance and connect your software through its supported interface.
The model definitions are available in the open spx-examples GitHub repository. You can inspect the YAML, adapt its behavior and protocol mappings, or use it as a starting point for your own device.
Find and use a model
- Browse the library overview or model catalog by device, domain or protocol.
- Inspect the model's attributes, behavior and communication settings to see whether it fits your use case.
- Run and test an instance in SPX and connect your client. Check the particular model and release for supported protocols and verified behavior.
For a practical example, see how to run a Modbus energy meter. You can also ask your AI agent to help find or adapt a model in your SPX workspace.
Make it your own
Use an existing definition as a starting point. Adjust attributes, simulated behavior, scenarios or protocol mappings to match the device and test you need. Save your version with your project and validate it against your requirements and client.
The models are reference simulations; a similar name or protocol does not by itself guarantee full compatibility with a physical device. Consult the model and its documentation for the scope of its behavior.
Missing a device? Share a model.
If the library does not contain the device you need, create or adapt a model and consider contributing it to the community. Contributions from engineers and AI-assisted workflows are welcome.
- Start from a related model and document the device behavior and protocol mapping.
- Add the model and relevant catalog information, and test the behavior you are contributing.
- Open a pull request to
developfor review. Follow the contribution guide for the current checks and submission steps.
Maintainers review contributions before they become part of a published catalog. A merged model is not automatically included in an installed SPX release.
