npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-fake-wemo

v0.1.2

Published

Node red contribution to create fake Wemo devices.

Downloads

21

Readme

node-red-contrib-fake-wemo

Node red contribution to create fake Wemo devices.

It's probably the simplest way to hook up your Echo device to Node Red, allowing you to give simple on/off commands to start your flows running.

It only works on versions of Node supporting es6 as of now. I may update it in future to be more widely compatible, or PRs welcome

Installation

Change directory to your node red installation:

$ npm install node-red-contrib-fake-wemo

Configuration

Drag the node on to your workspace, configure it as below and then ask Alexa to discover devices.

| Config | Description
| --------------- | ------------
| Node Name | This is the name of the node as it appears in the Node-RED workspace
| Initial State | The node maintains an internal state flag so that it can report to Alexa whether your node is currently on or off. When you redeploy, this state is lost. You can set the implicitly state implicitly or get it from another flow or global variable | | Friendly Name | This is the name that you'll see in the list of devices discovered by Alexa, it's also the name that you'll use in voice commands to turn your node on or off | Bind | The interface and port to bind an internal http server to, that allows Alexa to send commands to your node
| On Topic | This is the topic sent when you ask Alexa to turn your thing on
| On Payload | This is the payload sent when you ask Alexa to turn your thing on
| Off Topic | This is the topic sent when you ask Alexa to turn your thing off
| Off Payload | This is the payload sent when you ask Alexa to turn your thing off

Troubleshooting

If Alexa can't discover the devices faked by this node, please check you don't have a firewall blocking the port you've selected above and also port 1900/udp

Enabling extra debugging

Install node-red-contrib-config and drag a config node into your workspace. Configure the node to set a global variable called fake-wemo with a JSON value of {"debug": true}. Also make sure that the config tickbox for active is unchecked. Redeploy. Now click the button on the config node. This will trigger all instances of fake-wemo to write extra logging to the os syslog next time they're invoked.

Credits

This contribution was inspired by, and in some areas uses code from the excellent node-red-contrib-wemo-emulator by @biddster that worked so well for so long. Unfortunately of late, due to some changes Amazon made to the protocol, it no longer works as it should.