ewelink-api-fixed

fork + hotfix for github.com/skydiver/ewelink-api

Usage no npm install needed!

<script type="module">
  import ewelinkApiFixed from 'https://cdn.skypack.dev/ewelink-api-fixed';
</script>

README

ewelink-api-fixed

eWeLink API for JavaScript

Please note: This is an unmaintained fork of https://github.com/skydiver/ewelink-api/ with fix specifically for getDevicePowerUsage

Key features

  • can run on browsers, node scripts or serverless environment
  • set on/off devices
  • get power consumption on devices like Sonoff POW
  • listen for devices events
  • using zeroconf (LAN mode), no internet connection required

Installation

 npm install ewelink-api-fixed

Usage

Check library documentation and examples at https://github.com/skydiver/ewelink-api/