Hi, i own a Vera Edge UI7 for the lights and a global cache itach wifi 2 ir device for the AV.
Is there a way i can control the AV from the vera? So i cna set up timed turn on and off scenes, etc
thanks
Hi, i own a Vera Edge UI7 for the lights and a global cache itach wifi 2 ir device for the AV.
Is there a way i can control the AV from the vera? So i cna set up timed turn on and off scenes, etc
thanks
In UI5 there is a an add IR devices menu and if you are running the GC100 plug in then you can build a “remote” right in the Vera GUI. I don’t think they brought this over to UI7. Now we should be able to send the commands from Lua - I need to track down how to send IR commands. (I already send serial commands to a IP2SL in Lua.) I started looking at this last night, but haven’t gotten very far yet…
Sent from my SM-G900V using Tapatalk
OK, this is NOT working. Can anyone give me a working example of a Lua call to a GC IP2IR?
[code]
local CommandtoSend
CommandtoSend= ‘sendir,1:1,1,40000,1,1,96,24,24,24,48,24,48,25,48,24,24,24,48,24,24,24,24,24,24,24,24,24,24,24,48,24,48,25,25,24,24,838’
print (“test:”, CommandtoSend)
– Connect and Send Command
local socket = require(“socket”)
host = “192.168.0.115” --IP2IR Living Room
c = assert(socket.connect(host, 4998))
c:settimeout(5)
local sres, serr = c:send(CommandtoSend)
print(“Send:”, sres, serr)
local data, rerr = c:receive(5)
print (“Receive:”, data, rerr)
c:close()[/code]
OK, this works! Turns on my Panasonic TV. Note the /r at the end - will not work without the carriage return! Also note 1:2 instead of 1:1. That is indicating IR port 2 on the IP2IR. IR commands can be downloaded from Global Cache’s database at https://irdb.globalcache.com/ after you register…
[code]local CommandtoSend
CommandtoSend= ‘sendir,1:2,1,37000,1,1,128,63,16,16,16,48,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,48,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,48,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,48,16,48,16,48,16,48,16,48,16,16,16,16,16,16,16,48,16,48,16,48,16,48,16,48,16,16,16,48,16,2712,\r’
print (“test:”, CommandtoSend)
– Connect and Send Command
local socket = require(“socket”)
host = “192.168.0.115” --IP2IR Living Room
c = assert(socket.connect(host, 4998))
c:settimeout(5)
local sres, serr = c:send(CommandtoSend)
print(“Send:”, sres, serr)
local data, rerr = c:receive(5)
print (“Receive:”, data, rerr)
c:close()
[/code]
If you google around you will fine more examples. This is a good summary, but obviously written for UI5…
http://www.vesternet.com/resources/application-notes/apnt-68#.Vp54YZorLAU
Hi Wilme2, i tried the code you posted and worked. thanks
[quote=“wilme2, post:2, topic:190600”]In UI5 there is a an add IR devices menu and if you are running the GC100 plug in then you can build a “remote” right in the Vera GUI. I don’t think they brought this over to UI7. Now we should be able to send the commands from Lua - I need to track down how to send IR commands. (I already send serial commands to a IP2SL in Lua.) I started looking at this last night, but haven’t gotten very far yet…
Sent from my SM-G900V using Tapatalk[/quote]
Based on the above:
I am on Vera 3 / UI5 and just installed the iTach WF2IR.
First installed the GC100 App (plug-in) and added I_GC100.xml from APPS/DEVELOP APPS/LUUP FILES to modify the plug-in for double sending of IR-commands.
I also have the GC100 device in UI5 configured with the correct IP-address. Tried IP alone and both MAC and IP-addresses.
What goes wrong:
Wondering what I do wrong or what I may have missed here…
Was so happy with the straight forward reference to a menu in UI5, opposite to the very detailed editing and generating of files to generate IR-devices in UI5
Appreciate any help one may have
did you get it to work? I am having the same problem? ANy help would be greatly appreciated.
Best Home Automation shopping experience. Shop at Ezlo!
© 2024 Ezlo Innovation, All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules