Page 1 of 5

X10 CM15A

Posted: Sat Dec 29, 2007 9:37 pm
by DeanONH
I have written a plugin for the X10 CM15A. It generates events and actions. I have tested the PLC receive events & transmit actions, but not the RF functionality since I don't have any RF sensors or modules.

It requires the comtypes package. It is available at: http://sourceforge.net/projects/comtypes/

It requires a ActiveHome Pro CM15A Computer Interface. It is available at:
http://www.activehomepro.com/activehome-pro.html

It requires the X10 ActiveHome Pro SDK. It is available at:
http://www.x10.com/activehomepro/sdk/

Attached is the plugin zip file.

Dean

Re: X10 CM15A

Posted: Sun Dec 30, 2007 4:52 pm
by Bitmonster
Very nice. Interestingly this SDK interface also works with the X10 RF remote receivers (like the ATI Remote Wonder). I have implemented some changes that will be released together with the next beta (in the new year I guess). The biggest change is, that I have transferred the code to use win32com instead of comtypes, so this dependency is removed (actually I have also included comtypes in the installer for the next release, but to my findings win32com is faster than comtypes).

I'm currently not sure if this plugin should actually be a eg.RawReceiverPlugin. For my RF remotes it would be better to don't use repeat suppression. Do you get repeated events for your PLC devices?

Re: X10 CM15A

Posted: Sun Dec 30, 2007 6:59 pm
by DeanONH
I had need to add the CM15A to EG.

I don't get repeated PLC events, everything seems to work fine.

I am a Python newbie so I appreciate any improvements you feel are appropriate.

I look forward to seeing the changes you made.

Thanks for EG, it is working out very well for me,

Dean

Re: X10 CM15A

Posted: Fri Jan 04, 2008 9:10 am
by stisev
Good lord. Is this an actual plugin for the CM15A module?! So, we'd be able to control the CM15A directly from EG WITHOUT having to install the Activehome software?

Sorry for being so slow, but I've recently discovered the CM15A and was thinking about getting it. If I can control it all with EG, i'll be even more interested. :mrgreen:

Re: X10 CM15A

Posted: Fri Jan 04, 2008 11:08 am
by DeanONH
Yes, it is a plugin that generates EG events from and sends EG actions to X10 modules via the CM15A.

In addition to the CM15A interface, the CM15A SDK is required. I have ActiveHome installed on my PC and am not sure whether the SDK requires it. I don't use ActiveHome at all and use EG exclusively for my X10 interface.

I have tested the PLC capabilities, and have implemented RF events & actions, but since I have no RF modules, it is untested. I would be interested to hear from anyone who has tried RF events & actions.

Enjoy,

Dean

Re: X10 CM15A

Posted: Mon Jan 21, 2008 8:49 am
by specter333
Hi, I posted inquiries about the CM15A just today in the feature request then I look here and it's already done. But, When I try to install Comtypes I get the error no python install in the registry. Do I have to install something for python then comtypes and then the plugin? Thanks

Re: X10 CM15A

Posted: Tue Mar 04, 2008 11:32 am
by Bitmonster
This plugin is now included in the latest beta version.

Re: X10 CM15A (Receive: OK, Sending: Not)

Posted: Fri Jun 06, 2008 8:25 am
by Haxster
With Dean's cool X10 CM15A plugin, I can't seem to transmit X10 signals thru my CM15A. Transmissions show up in the EG log as if they were being sent, but they don't actually go out to the power line. Same problem when I use the test button in the action screen. I'm able to monitor the X10 PLC activity and can verify that nothing's being sent.

Both the SDK and AHP (Active Home Pro) are installed and I'm using the latest EG Beta. With AHP, I can successfully transmit X10 signals from the PC. So the CM15A appears fully functional.

I can see "received" X10 signals sent by other X10 transmitters in the EG log. I'm just not able to send signals out.

Any suggestions?

Re: X10 CM15A

Posted: Fri Jun 20, 2008 8:07 pm
by CollinR
Damn I bought a CM15a just for this plugin and it's DOA.

Bought it used from a forum member (elsewhere). :oops:

Re: X10 CM15A

Posted: Sun Sep 21, 2008 5:42 am
by specter333
I'm having a small problem with this plugin. Actually I'm pretty sure it's not the plugin buy my computer. I just downloaded the latest beta version and have XP pro SP3.

The plugin doesn't start when I start the computer, it gets this error,

Code: Select all

Stack trace (most recent call last) (1431):
  File "threading.pyc", line 462, in __bootstrap
  File "threading.pyc", line 486, in __bootstrap_inner
  File "threading.pyc", line 446, in run
  File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 168, in __MainLoop
  File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 189, in __DoOneEvent
  File "C:\Program Files\EventGhost\eg\Singletons\ActionThread.py", line 74, in HandleAction
  File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 72, in __call__
  File "C:\Program Files\EventGhost\eg\Singletons\ActionThread.py", line 46, in StartSession
  File "C:\Program Files\EventGhost\eg\Init.py", line 336, in RunProgram
  File "C:\Program Files\EventGhost\eg\Classes\PluginItem.py", line 103, in Execute
  File "C:\Program Files\EventGhost\eg\Classes\PluginInfo.py", line 299, in Start
  File "C:\Program Files\EventGhost\plugins\CM15A\__init__.py", line 148, in __start__
  File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 136, in Start
  File "C:\Program Files\EventGhost\eg\Classes\ThreadWorker.py", line 311, in CallWait
Error starting plugin: X10 CM15A
Device not found!
When I manually restart the plugin it works fine. My guess is EG starts before the CM15 loads. Does this sound reasonable and is there a way to fix it? Thanks for you help... again. Rich

Re: X10 CM15A

Posted: Sun Sep 21, 2008 6:17 am
by CollinR
I have similar issues with my setup, I had to make a batch file to launch everything in the timing. Can't recall exactly what the deal was but I know it was between sage and hal and again hal and eventghost. Sage service basically has to start first which is nice being a service and all. Then EventGhost in itself has several delays in it's startup macros. In the middle comes speedfan for sage display HAL comes up and after a 30 second delay the sagetv interface is up.

Re: X10 CM15A

Posted: Sun Sep 21, 2008 7:29 am
by specter333
I don't know how to make a batch file but I guess I could write a little script and put it in the start up folder that would start EG after a pause. Thanks Collin.

Re: X10 CM15A

Posted: Wed Oct 29, 2008 3:57 pm
by CollinR
Actually it's even easier then I thought, in your autostartup you can add a "wait some time" event before the CM15a plugin loads.

I hadn't realized that before and i now recall the issue was x10nets.exe hogging all the com ports (x10 remote) and not letting HAL (Home Automated Living) access the CM11a properly. Adding a delay in the EventGhost startup has taken the place of the batch file as until the plugin (x10 remote) is loaded EG will not start x10nets.exe.

Re: X10 CM15A

Posted: Sun Nov 16, 2008 7:53 pm
by jmcclure22
Hey,
I am having the same problem as Haxster above. I can control my devices via activehome as well as ahcmd.exe found in the sdk. I was wondering if anyone has any ideas. I am running WinXPsp2 and EG 0.3.6.1485.

I just have no idea where to go from here. I guess I could just run command line from EG, but I would like to use the plug in since it exists and has a slightly easier interface.

Thanks for any thoughts,

Jon

CM15 Pro

Posted: Tue Dec 02, 2008 6:32 am
by atz6975
Hi,

I was wondering what was the difference between CM15A and CM15Pro. Is the pro also supported by this pluggin? I believe it should be but maybe someone could confirm?


Edit: I misread post1, it should work.

Thank you