JSPM

meshblu-wemo-motion

1.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q39419F

Package Exports

  • meshblu-wemo-motion

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (meshblu-wemo-motion) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Meshblu Wemo motion sensor Plugin

A plugin for connecting your Belkin Wemo motion sensor to Meshblu.

It's intended to be used with Gateblu, but works great as a standalone application as well.

The options schema and the message schema is auto published to the meshblu device when the plugin starts.

This plugin can send event messages when the device's state is changed. An example of event message is given in the bottom of this document.

Installation

It's recommend to be used with Gateblu, but if you want to run it by itself, you'll need to register a device with Meshblu and create a meshblu.json in the root of the meshblu-wemo-motion directory that looks like the following:

{
  "uuid":   "<your meshblu-wemo-motion uuid>",
  "token":  "<your meshblu-wemo-motion token>",
  "server": "meshblu.octoblu.com",
  "port":   "80"
}

Then run:

npm install
npm start

Options Schema

{
  "type": "object",
  "properties": {
    "friendlyName": {
      "type": "string",
      "required": true
    }
  }
}

Event Message

A event message will look like:

{
  "devices": [ "*" ],
  "payload": {
    "motion": true
  },
  "topic": "state-changed",
  "fromUuid": "<uuid of meshblu-wemo-motion>"
}