A simple MQTT agent based on node.js that subscribes to a given list of MQTT topics on the specified broker and executes a lirc command whenever a message arrives. It can also be used in combination with an Home Automation Framework like Home.Pi
npm install --production
mosquitto
mosquitto_pub -d -r -t home/devices/appletv/config/command/on -m "XYZ"
##Start Binding with Topics to subscribe
node mqtt-exec -t home/devices/appletv/state/set
mosquitto_pub -d -t home/devices/appletv/state/set -m "on"