Turn a Wemo device on/off using a Wemo switch

What

A flow that turns a Wemo device on/off when another Wemo device is turned on/off.

Why

For some reason, you can't use a Wemo switch to turn another Wemo device on/off, either by using Wemo natively, or by wiring a Wemo input node directly into a Wemo output node in Node-RED.

How

This flow demonstrates the simple fix: The output of the Wemo input node is transformed into a message that a Wemo output node will recognize as an on/off command.

Note

You'll obviously still need to configure the Wemo nodes to correspond to two devices in your network. Personally, I wired an additional Wemo output node to the change node, so that my single Wemo wall switch can control two floor lamps plugged into Wemo socket switches.

[{"id":"c30a31d2.d473f","type":"change","z":"45f5765b.9f4aa8","name":"map input","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.state","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":60,"wires":[["ffb01308.47aed"]],"info":"Change the on/off event notification from one wemo device, into an on/off command for another wemo device."},{"id":"1996aa93.063a75","type":"wemo in","z":"45f5765b.9f4aa8","name":"wemo control device","topic":"","device":"","label":"Add new wemo-dev...","x":130,"y":60,"wires":[["c30a31d2.d473f"]]},{"id":"ffb01308.47aed","type":"wemo out","z":"45f5765b.9f4aa8","name":"wemo slave device","device":"","label":"Add new wemo-dev...","x":510,"y":60,"wires":[]}]

Flow Info

Created 5 years, 9 months ago
Rating: not yet rated

Actions

Rate:

Node Types

Core
  • change (x1)
Other

Tags

  • wemo
  • belkin
  • light
  • switch
  • iot
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option