Actions2
Overview
This node interacts with the PrimaPower API to retrieve information about parameters. Specifically, for the "Get Parameter Value" operation, it fetches the current value of a specified parameter by its ID. This is useful in scenarios where you need to monitor or use real-time data from PrimaPower devices or systems, such as automation workflows that depend on sensor readings or device states.
Practical examples include:
- Fetching the latest measurement or status value from a PrimaPower device.
- Integrating PrimaPower parameter values into dashboards or reports.
- Triggering further actions based on specific parameter values retrieved.
Properties
| Name | Meaning |
|---|---|
| Parameter ID | The numeric identifier of the parameter whose value you want to retrieve (e.g., 1234). |
Output
The node outputs JSON data representing the parameter's value fetched from the PrimaPower API. The exact structure depends on the API response but generally includes details about the parameter and its current value.
No binary data output is involved.
Dependencies
- Requires an active connection to the PrimaPower API.
- Needs an API authentication credential configured in n8n to authorize requests.
- The base URL for API requests is
https://prima-power.nl. - Requests have a timeout set to 5 seconds and expect JSON responses.
Troubleshooting
- Timeouts or no response: Ensure network connectivity to
https://prima-power.nland verify the API service is operational. - Authentication errors: Confirm that the API key or authentication token is correctly configured and has sufficient permissions.
- Invalid Parameter ID: If the parameter ID does not exist or is incorrect, the API may return an error or empty response. Double-check the parameter ID input.
- Unexpected response format: If the API changes its response structure, the node output might not parse correctly; verify API documentation for updates.
Links and References
- PrimaPower Official Website
- Refer to PrimaPower API documentation for detailed parameter and endpoint descriptions (not provided here).