Page 1 of 1

X10 issue with zmx10.pl

Posted: Tue Nov 24, 2009 9:41 am
by digitalm
Hi,

I have zoneminder working well and I am really impressed with it so far. I am trying to the X10 automation working. I already have a X10 system which works fine normally using HeyU to control it ( http://www.heyu.org/ ) I have setup the inferface and enabled X10 in the X10 tab in the Options Page. I have been testing it with the perl script, however when I issue the command :

zmx10.pl -c on -u 3

Argument "ON" isn't numeric in numeric gt (>) at /usr/local/share/perl/5.10.0/X10/ActiveHome.pm line 193, <CLIENT> line 1.
A03 on, ok

and the light does not come on.

Any Ideas?

thanks
Toby

Posted: Tue Nov 24, 2009 12:33 pm
by digitalm
Update:

I am no longer getting the error message (think restarting ZM sorted it)

however the light does not seem to turn on, it does work correctly if I use HeyU, I have looked in the logs and cannot seem to find any failures, are there any other logs I should check?

zmx10.log
------------
24/11/09 09:37:58.368625 zmx10[16839].INF [X10 server starting]
24/11/09 09:38:10.440628 zmx10[16839].INF [Got event - A03 ON]
24/11/09 09:38:48.220212 zmx10[16839].INF [Got event - A03 ON]
24/11/09 09:39:38.480157 zmx10[16839].INF [Got event - A03 ON]
24/11/09 09:41:02.796007 zmx10[16839].INF [Got event - A03 ON]
24/11/09 09:41:34.444024 zmx10[16839].INF [Got event - A03 OFF]
24/11/09 09:41:57.840325 zmx10[16839].INF [Got event - A03 ON]
24/11/09 09:44:41.128182 zmx10[16839].INF [Got event - A03 ON]
24/11/09 12:27:56.364029 zmx10[16839].INF [Got event - A03 ON]
24/11/09 12:28:56.067959 zmx10[16839].INF [Got event - A03 OFF]
24/11/09 12:29:20.724057 zmx10[16839].INF [Got event - A03 ON]
24/11/09 12:30:30.201366 zmx10[16839].INF [Got event - A03 ON]
24/11/09 12:31:45.272192 zmx10[16839].INF [Got event - A03 ON]
24/11/09 12:33:38.060467 zmx10[16839].INF [Got event - A03 ON]
24/11/09 12:35:54.924146 zmx10[16839].INF [Got event - A03 ON]

messages
-----------

Nov 24 12:37:36 video-server zmdc[19726]: INF [Starting pending process, zmx10.pl -c start]
Nov 24 12:37:36 video-server zmdc[19726]: INF ['zmx10.pl -c start' starting at 09/11/24 12:37:36, pid = 19813]
Nov 24 12:37:36 video-server zmdc[19813]: INF ['zmx10.pl -c start' started at 09/11/24 12:37:36]
Nov 24 12:37:36 video-server zmx10[19813]: INF [X10 server starting]

Posted: Tue Dec 08, 2009 1:00 pm
by digitalm
Update, in case anyone else has this problem.

This was not working because of the heyu relay demon was also running - which obvoiusly was stopping the x10 script from connecting to the serial port.

x10 control is now working well, although I do still get the

Argument "ON" isn't numeric in numeric gt (>) at /usr/local/share/perl/5.10.0/X10/ActiveHome.pm line 193, <CLIENT> line 1.
A03 on, ok

error which is trange

Posted: Sat Nov 06, 2010 4:52 pm
by dvarapala
I, too, have an existing X10 system based on heyu. It would be convenient if ZM could interface to the heyu daemons rather than trying to go directly to the CM11A via a serial port - then perhaps everything could peacefully coexist (and it might even simplify the code on the ZM side).

I'm going to be looking into this myself, but before I accidentally reinvent the wheel I wanted to post this shout out to any developers who are already working on/completed something similar. I did see this post http://www.zoneminder.com/forums/viewtopic.php?t=700 but since it's been 7 years with no follow-ups I'm going to assume that effort didn't get very far. :D

Update: It turns out to be pretty simple. Heyu has the ability to execute a command script in response to an X10 event, so I wrote a one-liner that uses netcat to connect to the TCP port that zmtrigger.pl is listening on and transmit an appropriate trigger string. This lets my X10 motion sensing flood lights serve as external triggers for ZoneMinder monitors. :D