Global Caché plugin

Do you have questions about writing plugins or scripts in Python? Meet the coders here.

Global Caché plugin

Postby bjca » Sun Sep 25, 2011 6:36 am

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.
Attachments
GlobalCache.zip
Global Caché Plugin
(46.1 KiB) Downloaded 150 times
bjca
 
Posts: 4
Joined: Sun Sep 25, 2011 6:07 am

Re: Global Caché plugin

Postby piert » Sun Sep 25, 2011 3:55 pm

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
piert
Experienced User
 
Posts: 116
Joined: Tue Jun 14, 2011 2:53 pm

Re: Global Caché plugin

Postby bruinlax » Thu Sep 29, 2011 6:43 pm

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.
bruinlax
 
Posts: 12
Joined: Thu Sep 29, 2011 4:31 pm

Re: Global Caché plugin

Postby bruinlax » Fri Sep 30, 2011 4:08 am

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.
bruinlax
 
Posts: 12
Joined: Thu Sep 29, 2011 4:31 pm

Re: Global Caché plugin

Postby bjca » Fri Sep 30, 2011 12:52 pm

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
bjca
 
Posts: 4
Joined: Sun Sep 25, 2011 6:07 am

Re: Global Caché plugin

Postby MEk72 » Sat Jun 09, 2012 7:57 pm

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
MEk72
 
Posts: 1
Joined: Sat Jun 09, 2012 7:50 pm

Re: Global Caché plugin

Postby etc6849 » Thu Jan 10, 2013 1:24 am

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.
etc6849
 
Posts: 19
Joined: Fri Dec 28, 2012 5:12 pm


Return to Coding Corner

Who is online

Users browsing this forum: No registered users and 0 guests

cron