Ewelink icon

Ewelink

Consume Ewelink API

Overview

This node integrates with the eWeLink API to interact with smart devices. Specifically, for the Device resource and the Get Current Temp & Humidity operation, it retrieves the current temperature and humidity readings from a specified device. This is useful in scenarios where you need to monitor environmental conditions (such as in smart homes, greenhouses, or server rooms) and trigger automations based on real-time sensor data.

Practical Example:
You could use this node to periodically check the temperature and humidity of a smart sensor and send alerts if values exceed certain thresholds, or log the data for later analysis.

Properties

Name Type Meaning
Device ID String The unique identifier of the device whose current temperature and humidity you want to retrieve.

Output

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

{
  "temperature": <number>,
  "humidity": <number>,
  // ...other possible metadata fields
}
  • temperature: The current temperature reported by the device.
  • humidity: The current humidity reported by the device.

Dependencies

  • eWeLink Account: Requires valid eWeLink credentials (email and password) configured in n8n credentials.
  • ewelink-api: Uses the ewelink-api npm package to communicate with the eWeLink cloud service.

Troubleshooting

  • Authentication failed: If credentials are incorrect or expired, you may see an error like Auth settings are not valid: Authentication failed - status 406. Double-check your eWeLink email and password in the n8n credentials.
  • 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: If the eWeLink API is unreachable or rate-limited, requests may fail temporarily.

Links and References

Discussion