We have moved at community.getvera.com

Author Topic: Send telnet command to Lutron Grafikeye QS ip interface  (Read 1209 times)

Offline Gorr75

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Send telnet command to Lutron Grafikeye QS ip interface
« on: July 12, 2015, 05:23:46 pm »
Hi All experts,
I have a Vera 3 with UI 7 and would like to send telnet commands to a Lutron Grafikeye QS Dimmer with the IP interface attached.
I use it with another app called irule and know the commands well. I can send the commands via Windows Telnet and it works fine. My issue is that I don't know LUA...
I use the Sonos plug in with LUa that works great. What I would like to do in the first place is to send a login then be able to send the commands. It sends the commands from the webui. When I change to the wrong IP it fails.

I have looked at snippets of code and also tried the Lutron plug in without success.

My code that I hoped should work looks like this:

local socket = require("socket")
host = "192.168.0.10"
c = assert(socket.connect(host, 23))
c:send("password\r")
c:send("#DEVICE,0x000a0cd9,1,14,30,1\r")
c:close()

The #Device command works fine in Telnet.exe so I know that works. If I get this to work I would like to use and feedback back from the Lutron system as well but that is the next step :)

If anyone have any pointers I would appriciate it. I might need to put in a sleep command in between the two send commands.

Thanks in advance
 

Offline MaryLoo

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Send telnet command to Lutron Grafikeye QS ip interface
« Reply #1 on: January 18, 2018, 12:35:45 pm »
Hello,

Did you get a solution to your problem ?

I have the same problem : I try to send telnet command to Lutron QS interface.

Thanks in advance for your support

MaryLoo.

Offline fodder1

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: Send telnet command to Lutron Grafikeye QS ip interface
« Reply #2 on: February 12, 2019, 05:46:13 pm »
I would be interested if you figured out how to do telnet commands as well. (for a different project.)