Page 1 of 1

Global Cach├® plugin

Posted: Sun Sep 25, 2011 6:36 am
by bjca
Hi,

I Bought me some Global Cach├® devices a year ago but did'nt find any good integration to EventGhost, so I spent some hours to "borrow", modify and add from a number of already existing plugins - something that ended up in this...

I'm not realy a programmer or experienced at python, but it seems to work for my set of iTach boxes and a GC-100 device, and it could be useful for others.

I have tried to make a simple configurable setup, that take care of the communication and initialization of the devices and all supported controls (according to the Global Cach├® interface spec's), it's just to give IP adress and Device type - note! Global Cach├® "default" format for IR codes need to be used.

Re: Global Cach├® plugin

Posted: Sun Sep 25, 2011 3:55 pm
by piert
Thanks for sharing!

I investigated the Global Cach├® modules a while back and thought they were very powerful and, according to many users, reliable.
I thought about getting that hardware but in the end went for IRtrans (which I found confusing to set up initially, but has been working very reliably for a long time now).

Regards
Perry

Re: Global Cach├® plugin

Posted: Thu Sep 29, 2011 6:43 pm
by bruinlax
thanks - I'm surprised it hasn't been written before.

When i test it out -i send a code such as:

Code: Select all

sendir,1:3,1,37000,3,1,128,64,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,48,16,16,16,48,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,48,16,16,16,16,16,48,16,48,16,48,16,48,16,48,16,16,16,16,16,48,16,3700
i get the following error
Error: Global Cache, myGC: 1:1 - Invalid frequency value.

that command works great when i put it in a python script.

Happy to help debug - but i need to get my feet wet with python first.

Re: Global Cach├® plugin

Posted: Fri Sep 30, 2011 4:08 am
by bruinlax
after i browsed through your code i notice that you added the sendir,<connectoraddress>,<ID> and the carriage return to the command. Makes sense for the functionality, but a little clunky maybe to go through and edit the global cache strings. Would work really well though if the box took a hex input converted it and added that info onto it. (unless it can do that, and i'm missing it)

Again thanks for the plugin - it will make my life easier.

Re: Global Cach├® plugin

Posted: Fri Sep 30, 2011 12:52 pm
by bjca
Yepp, that's how its done - the "code" field in the GUI require the stripped IR-code without the tree first fields: <command>,<connectoraddress>,<ID>.

I felt the syntax to be some known/native way of using GC-codes, where several other applications use them the same way...
Another improvement could also be to support other "general" IR-codes, but I have saved that for anybody that want to dig deeper in the code :D

/Bj├Ârn

Re: Global Cach├® plugin

Posted: Sat Jun 09, 2012 7:57 pm
by MEk72
Hello!

I have problems with my iTach WF2CC (relay) and the Global Cashe plug-in.

When I restart the computer or Event Ghost, does the plug-in not work. And I receive the following error message.

Error in Action: ÔÇ£Down_RelayCloseÔÇØ
Traceback (most recent call last) (1568):
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionBase.py", line 170, in CallWrapper return self(*args)
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionBase.py", line 86, in __call__ "Action has no __call__ method implemented."
NotImplementedError: Action has no __call__ method implemented.


To make it work I have to open each relay-status action and press the test button once. Then it works just fine until next restart. Hope you understand what i mean.

I am not a programmer so I do not know what is wrong and what to do.

Hope there's someone here who can help me out.

//Mattias

Re: Global Cach├® plugin

Posted: Thu Jan 10, 2013 1:24 am
by etc6849
Hi there. I use a bunch of global cache products (GC100, GCIRE, iTach WIFI2IR) with a free HA program called Premise.

I'm writing an EG plug-in for Premise, so you may want to look into using Premise for HA intensive tasks. I've posted the code for the EG plug-in here:
viewtopic.php?f=10&t=5189

I'll update that thread once I finalize the module that get's installed with Premise.