Ewelink icon

Ewelink

Consume Ewelink API

Overview

This n8n node interacts with the eWeLink API to retrieve the current humidity from a specified device. It is useful in automation scenarios where you need to monitor or react to environmental conditions, such as triggering alerts when humidity exceeds certain thresholds, logging environmental data, or integrating with smart home systems.

Practical examples:

  • Automatically log humidity readings from a sensor to a Google Sheet.
  • Trigger a notification if humidity drops below a set value.
  • Use humidity data to control other smart devices (e.g., turn on a humidifier).

Properties

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

Output

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

{
  "humidity": <number>,
  // ...other possible metadata fields returned by the API
}

If an error occurs and "Continue On Fail" is enabled, the output will include an error field with the error message.

Dependencies

  • External Service: Requires access to the eWeLink API.
  • Credentials: You must configure eWeLink account credentials (email and password) in n8n under the "ewelinkApi" credential type.

Troubleshooting

Common issues:

  • Invalid Credentials: If the provided email or password is incorrect, authentication will fail.
    • Error Message: "Auth settings are not valid: Authentication failed - status 406"
    • Resolution: Double-check your eWeLink account credentials in n8n.
  • Device Not Found: If the Device ID does not exist or is not accessible, the API may return an error.
    • Resolution: Ensure the Device ID is correct and that your account has access to the device.
  • API Rate Limits or Connectivity Issues: Network problems or exceeding API limits can cause failures.
    • Resolution: Check your network connection and consult eWeLink API documentation for rate limits.

Links and References

Discussion