{"library":"ewelink-api","type":"library","category":null,"description":"The ewelink-api library provides a programmatic interface for interacting with eWeLink-compatible smart home devices, such as Sonoff products, from Node.js environments. It supports both cloud-based interaction (requiring internet access) and ZeroConf (LAN mode) for local control without an internet connection. The current stable version is 3.1.1, with releases occurring on a moderate, irregular cadence, focusing on bug fixes, dependency updates, and feature enhancements like improved error handling and new device control methods. Key differentiators include its multi-environment compatibility (Node.js, browsers, serverless), robust device state management, and power consumption monitoring for compatible devices.","language":"javascript","status":"active","version":"3.1.1","tags":["javascript","ewelink","sonoff","api","node","nodejs","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ewelink-api","imports":["import EwelinkApi from 'ewelink-api';","const EwelinkApi = require('ewelink-api');","import type { Device, DeviceStatus } from 'ewelink-api/dist/ts/interface';"]},{"cmd":"yarn add ewelink-api","imports":[]},{"cmd":"pnpm add ewelink-api","imports":[]}],"homepage":null,"github":"https://github.com/skydiver/ewelink-api","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ewelink-api","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/ewelink-api/compatibility"}}