Ewelink icon

Ewelink

Consume Ewelink API

Overview

This node interacts with the eWeLink API to retrieve the current temperature from a specified device. It is useful in automation scenarios where you need to monitor or log the temperature of smart devices (such as sensors, thermostats, or other IoT hardware) managed via eWeLink. For example, you could use this node to trigger alerts if the temperature exceeds a certain threshold, or to collect periodic temperature data for analytics.

Properties

Name Type Meaning
Device ID String The unique identifier of the device whose current temperature is queried. This is required to specify which device's temperature should be retrieved.

Output

The output is a JSON object containing the current temperature information for the specified device. The exact structure depends on the response from the eWeLink API, but typically includes fields such as:

{
  "temperature": <number>,
  // ...other possible metadata fields returned by the API
}
  • temperature: The current temperature value reported by the device.
  • Additional fields may be present depending on the device and API version.

Dependencies

  • External Service: Requires access to the eWeLink API.
  • Credentials: You must configure valid eWeLink account credentials (email and password) in n8n under the credential type ewelinkApi.
  • npm Dependency: Uses the ewelink-api npm package.

Troubleshooting

  • Authentication failed: If your credentials are incorrect or expired, you may see an error like Authentication failed - status 406. Ensure your email and password are correct and that your eWeLink account is active.
  • Device not found: If the provided Device ID does not exist or is not accessible, the node may return an error indicating the device cannot be found.
  • API rate limits or connectivity issues: Network problems or exceeding API usage limits can cause errors. Retry after some time or check your network connection.

Links and References

Discussion