Wemo Switch to HomeKit

This flow is used to connect a Wemo Switch to HomeKit.

[{"id":"cb8df0da.53447","type":"tab","label":"Wemo","disabled":false,"info":""},{"id":"f24611f4.7c5e8","type":"wemo in","z":"cb8df0da.53447","name":"","topic":"wemo","device":"aeda4ce7.b2a808","label":"Patio","x":90,"y":100,"wires":[["ee3d60f.43c83a"]]},{"id":"5b23bd00.fa20c4","type":"wemo out","z":"cb8df0da.53447","name":"","device":"aeda4ce7.b2a808","label":"Patio","x":1070,"y":100,"wires":[]},{"id":"8efe8af6.7b8a68","type":"homekit-service","z":"cb8df0da.53447","isParent":true,"bridge":"a6411d87.b14cc","parentService":"","name":"Patio","serviceName":"Switch","topic":"patio","filter":false,"manufacturer":"Belkin","model":"Wemo","serialNo":"1","firmwareRev":"","hardwareRev":"","softwareRev":"1.0.0","cameraConfigVideoProcessor":"ffmpeg","cameraConfigSource":"","cameraConfigStillImageSource":"","cameraConfigMaxStreams":2,"cameraConfigMaxWidth":1280,"cameraConfigMaxHeight":720,"cameraConfigMaxFPS":10,"cameraConfigMaxBitrate":300,"cameraConfigVideoCodec":"libx264","cameraConfigAudioCodec":"libfdk_aac","cameraConfigAudio":false,"cameraConfigPacketSize":1316,"cameraConfigVerticalFlip":false,"cameraConfigHorizontalFlip":false,"cameraConfigMapVideo":"0:0","cameraConfigMapAudio":"0:1","cameraConfigVideoFilter":"scale=1280:720","cameraConfigAdditionalCommandLine":"-tune zerolatency","cameraConfigDebug":false,"cameraConfigSnapshotOutput":"disabled","cameraConfigInterfaceName":"","characteristicProperties":"{\n    \"On\": 1\n}","x":650,"y":100,"wires":[["754f01fb.e0e7b8"],[]]},{"id":"754f01fb.e0e7b8","type":"switch","z":"cb8df0da.53447","name":"","property":"hap.newValue","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":790,"y":100,"wires":[["60d261a2.d758a8"],["9c13053d.ecfe8"]]},{"id":"60d261a2.d758a8","type":"template","z":"cb8df0da.53447","name":"ON","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"true","output":"str","x":930,"y":80,"wires":[["5b23bd00.fa20c4"]]},{"id":"9c13053d.ecfe8","type":"template","z":"cb8df0da.53447","name":"OFF","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"false","output":"str","x":930,"y":120,"wires":[["5b23bd00.fa20c4"]]},{"id":"f5e67a87.bf5a68","type":"change","z":"cb8df0da.53447","name":"Change Json","rules":[{"t":"change","p":"payload","pt":"msg","from":"1","fromt":"num","to":"{ \"On\": true }","tot":"json"},{"t":"change","p":"payload","pt":"msg","from":"0","fromt":"num","to":"{ \"On\": false }","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":100,"wires":[["8efe8af6.7b8a68"]]},{"id":"ee3d60f.43c83a","type":"switch","z":"cb8df0da.53447","name":"","property":"payload.state","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":210,"y":100,"wires":[["294d8af6.b45d46"],["32c4d3d7.e1eda4"]]},{"id":"294d8af6.b45d46","type":"template","z":"cb8df0da.53447","name":"ON","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"ON","output":"str","x":350,"y":80,"wires":[["f5e67a87.bf5a68"]]},{"id":"32c4d3d7.e1eda4","type":"template","z":"cb8df0da.53447","name":"OFF","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"OFF","output":"str","x":350,"y":120,"wires":[["f5e67a87.bf5a68"]]},{"id":"aeda4ce7.b2a808","type":"wemo-dev","z":"","device":"431905K45912F5","name":"Patio"},{"id":"a6411d87.b14cc","type":"homekit-bridge","z":"","bridgeName":"Smart Outlets","pinCode":"098-76-543","port":"","manufacturer":"","model":"","serialNo":"1"}]

Flow Info

Created 5 years, 2 months ago
Updated 5 years ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • change (x1)
  • switch (x2)
  • template (x4)
Other

Tags

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