Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 759 Bytes

README.md

File metadata and controls

31 lines (17 loc) · 759 Bytes

mqtt-lirc

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

Setup

npm install --production

Start Broker

mosquitto

Publish Configuration

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

Execute command

mosquitto_pub -d -t home/devices/appletv/state/set -m "on"

dependencies