IP Commands to a Global Cache IP2IR Help

Hello,

I previously used LUUP to send commands to Global Cache IP2IR’s via a schedule with excellent results. Now I’m trying to send a “OFF” command to my Samsung Home theater using LUUP to another Global Cache IP2IR. I used the Global Cache iLearn pgm to capture the code and when I use the Global Cache iTest it works flawlessly. The command begins and ends with parentheses on the fourth line. I thought I had it figured out, however, it will not execute on my MicasaVerde. Anyone have any ideas on this one?

local socket = require(“socket”)
host = “192.168.1.75”
c = assert(socket.connect(host, 4998))
c:send(“sendir,1:2,1,37764,1,1,94,72,16,44,16,44,16,16,16,16,16,16,16,16,16,44,16,16,16,44,16,44,16,16,16,16,16,44,16,16,16,44,16,16,16,44,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,44,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,44,16,16,16,16,16,16,16,16,16,16,16,3776”)
c:close()

I’ve seen a few threads where the user installed the GC100 plugin and eventually got it to work. That makes me wonder how I’m able to send the following LUUP commands to control PWM LED’s to the GC IP2IR without using the plug in:

local socket = require(“socket”)
host = “192.168.1.74”
c = assert(socket.connect(host, 4998))
c:send(“set_LED_LIGHTING,1:1,0,5\013”)
c:close()

local socket = require(“socket”)
host = “192.168.1.74”
c = assert(socket.connect(host, 4998))
c:send(“set_LED_LIGHTING,1:2,0,5\013”)
c:close()

local socket = require(“socket”)
host = “192.168.1.74”
c = assert(socket.connect(host, 4998))
c:send(“set_LED_LIGHTING,1:3,60,5\013”)
c:close()

Also, I noticed several views but no replys, could I be in the wrong sub forum?

Try changing the repeat.

Change 37764,1 to 37764,3

Also see my post at

http://forum.micasaverde.com/index.php/topic,9357.msg256101.html#msg256101

the lua code I use is diffferent than yours, may make a difference.

Thanks for the info, I’ll try it. I’m on the road for the week so I won’t get to try this till Sunday :cry: , I’ll post the results.

I tried changing the repeat with no luck. I used the code your referenced and substituted my sendir commands and it works as a power toggle, thank you. I’m going to try and find the command for “off” only, since I’m using this a daily timed command to turn the amp off. If its already off it will turn the amp back on which is what I don’t want.

Have you tried anything like this?