zetta-wemothat-driverdeprecated

Zetta driver for Wemo

Usage no npm install needed!

<script type="module">
  import zettaWemothatDriver from 'https://cdn.skypack.dev/zetta-wemothat-driver';
</script>

README

Zetta driver for Wemo

Extended Wemo driver for Zetta that provides broader model support and handles device events.

Supported Hardware

  • Wemo Light Bulb
  • Wemo Insight Switch
  • Wemo Switch
  • Wemo Motion
  • Wemo Maker
  • [ ] Osram Lightify TW
  • Osram Flex RGBW
  • Osram Gardenspot RGB

Install

$ npm install zetta-wemothat-driver

Usage

var zetta = require('zetta');
var Wemo = require('zetta-wemothat-driver');

zetta()
  .use(Wemo)
  .listen(1337)

Devices

Wemo Motion

This sensor emits the states motion or quiet.

Wemo (Color) Light

Transitions

turnOn()

Turns the bulb on.

turnOff()

Turns the bulb off.

dim(level = 0-255)

Turns the light on and dims it to the given level.

setColor(red = 0-255, green = 0-255, blue = 0-255)

Sets the light to the specified RGB color.

Wemo Switch

Transitions

turnOn()

Turns the switch on.

turnOff()

Turns the switch off.

Wemo Insight Switch

Streams

power

The current power consumption of the device in watts.

Transitions

turnOn()

Turns the switch on.

turnOff()

Turns the switch off.

License

Published under the MIT License.