X10 Mochad, Send commands to Units

This sample flow shows how to send commands to X10 modules via the Mochad TCP interface.

[{"id":"c192072d.6c099","type":"tcp out","z":"e44ffa88.c27f2","host":"localhost","port":"1099","beserver":"client","base64":false,"end":false,"name":"","x":630,"y":580,"wires":[]},{"id":"e6813c9f.2ecfb","type":"function","z":"e44ffa88.c27f2","name":"Add CR","func":"msg.payload = msg.payload + String.fromCharCode(13);\nreturn msg;","outputs":1,"noerr":0,"x":410,"y":580,"wires":[["c192072d.6c099"]]},{"id":"cd7736d8.f3e0f","type":"inject","z":"e44ffa88.c27f2","name":"","topic":"A3 On","payload":"pl a3 on","payloadType":"str","repeat":"","crontab":"","once":false,"x":140,"y":580,"wires":[["e6813c9f.2ecfb"]]},{"id":"162e3739.e50e69","type":"inject","z":"e44ffa88.c27f2","name":"","topic":"A3 Off","payload":"pl a3 off","payloadType":"str","repeat":"","crontab":"","once":false,"x":140,"y":620,"wires":[["e6813c9f.2ecfb"]]}]
kempmaritz

Flow Info

created 4 months, 3 weeks ago

Node Types

Core
  • function (x1)
  • inject (x2)
  • tcp out (x1)

Tags

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