Create and login to the telnet connection to use with the Lutron Integration Protocol.
git clone https://github.com/Controlhaus/lutron-integration-protocol.git
cd lutron-integration-protocol
npm install
node main.js --ipAddress TheLutronIpAddress --login test --password test
serviceNameA prefix for log messages. Default:LutronipAddressThe host address or url to connect to.portThe telnet port to connect to. Default:23loginThe username. Default:lutronpasswordThe password. Default:integrationheartbeatIntervalThe interval between sending heartbeat messages in milliseconds. The heartbeat is used to detect unexpected disconnects and automatically reconnect. Default:10000
The following commands are available from the command line:
connectStarts the telnet connection. Called by default at startup.closeCloses the telnet connection.MessageToSendSendsMessageToSendappended with a carriage return directly to the socket.
See the Lutron documentation for the complete protocol.