X10 with ZM
X10 with ZM
Hi,
I just want to now which X10 back-end we have to use with ZM (Heyu, X10,...).
Thanks
Christophe
I just want to now which X10 back-end we have to use with ZM (Heyu, X10,...).
Thanks
Christophe
Re: X10 with ZM
Ok, it works, and ZM need no back-end to access the CMA12 interface !
Re: X10 with ZM
Hi Chris,
and I have the x10, but working with problems. Where you find the file #.pm (ActiveHome.pm, SerialPort.pm....) becouse my X10 is working with errors. Can you write in my e-mail, thank you.
virgin13@rambler.ru
Anatoliy.
and I have the x10, but working with problems. Where you find the file #.pm (ActiveHome.pm, SerialPort.pm....) becouse my X10 is working with errors. Can you write in my e-mail, thank you.
virgin13@rambler.ru
Anatoliy.
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Thanks for the help. My x10 system is working fine if i try to controll it from Winblows, so i know the hardware works. Where i run into problems is activating my camera (in record mode) when zm receives a code. I tried putting different values into the fields Activation string and input alarm string but whenever i restart zm it turns the cam on and no matter what signal i send it it will not turn off. ANy ideas ?zoneminder wrote:I have it working so if you have any specific questions I can probably answer them. You do need to install the use X10::ActiveHome module(s) and have an X10 interface (bidirectional for full functionality) to a serial port.
Phil,
tx
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Your best bet is to start playing with the zmx10.pl script directly. Before that though you need to check that you have ZM_OPT_X10 switched on and that you have set the house code and serial port correctly in the appropriate options also.
Shut down ZM entirely to simplify things first and then check that just typing
zmx10.pl
works. If it does then give it a -h option to see the usage instructions which should be something like
Unknown option: h
Usage: zmx10.pl -c <command>,--command=<command> [-u <unit code>,--unit-code=<unit code>]
Parameters are :-
-c <command>, --command=<command> - Command to issue, one of 'on','off','dim','bright','status','shutdown'
-u <unit code>, --unit-code=<unit code> - Unit code to act on required for all commands except 'status' (optional) and 'shutdown'
So the first thing to try is just,
zmx10.pl -c status
which might well not return anything interesting at this stage. To switch on something you would type,
zmx10.pl -c on -u 6
which would switch unit code 6 on. Now try the status command again and it should give you some more information than before. You may also get a notice about starting a daemon. This is because zmx10 has two components, a command line interface and a background daemon that listens on the serial port. So if you look at the zmx10.log file whilst sending X10 commands from elsewhere you should see them noticed and reported in the log. You may see errors like
Argument "OF" isn't numeric in numeric gt (>) at /usr/lib/perl5/site_perl/5.8.0/X10/ActiveHome.pm line 193, <CLIENT> line 1.
in the log, these can be ignored.
Have a play with that and see how you get on. When you have finished use the shutdown command to close the daemon down and if you have ben running as root make sure the zmx10.sock and zmx10.log files are either deleted or still writeable by your normal user otherwise the daemon won't start properly next time.
Phil,
Shut down ZM entirely to simplify things first and then check that just typing
zmx10.pl
works. If it does then give it a -h option to see the usage instructions which should be something like
Unknown option: h
Usage: zmx10.pl -c <command>,--command=<command> [-u <unit code>,--unit-code=<unit code>]
Parameters are :-
-c <command>, --command=<command> - Command to issue, one of 'on','off','dim','bright','status','shutdown'
-u <unit code>, --unit-code=<unit code> - Unit code to act on required for all commands except 'status' (optional) and 'shutdown'
So the first thing to try is just,
zmx10.pl -c status
which might well not return anything interesting at this stage. To switch on something you would type,
zmx10.pl -c on -u 6
which would switch unit code 6 on. Now try the status command again and it should give you some more information than before. You may also get a notice about starting a daemon. This is because zmx10 has two components, a command line interface and a background daemon that listens on the serial port. So if you look at the zmx10.log file whilst sending X10 commands from elsewhere you should see them noticed and reported in the log. You may see errors like
Argument "OF" isn't numeric in numeric gt (>) at /usr/lib/perl5/site_perl/5.8.0/X10/ActiveHome.pm line 193, <CLIENT> line 1.
in the log, these can be ignored.
Have a play with that and see how you get on. When you have finished use the shutdown command to close the daemon down and if you have ben running as root make sure the zmx10.sock and zmx10.log files are either deleted or still writeable by your normal user otherwise the daemon won't start properly next time.
Phil,
well trying gives me this:
Now where do i find ActiveHome.pm ? I guess this means i dont have x10 perl modules installed but i have little idea on how to do this....
Code: Select all
zmx10.pl
Code: Select all
Can't locate X10/ActiveHome.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/site_perl/5.8.3/i686-linux /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.3/i686-linux /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.3/i686-linux /usr/lib/perl5/5.8.3 /usr/local/lib/site_perl) at /usr/local/bin/zmx10.pl line 165.
BEGIN failed--compilation aborted at /usr/local/bin/zmx10.pl line 165.
OK, i googled and currently am doing this:
and now i can control x10 devices with zmx10.pl
I will try if zm works now later when i got more time,
THANKS
Al
Code: Select all
cpan
get X10
make X10
install X10
get Device::SerialPort
make Device::SerialPort
install Device::SerialPort
I will try if zm works now later when i got more time,
THANKS
Al
shakti wrote:OK, i googled and currently am doing this:
and now i can control x10 devices with zmx10.plCode: Select all
cpan get X10 make X10 install X10 get Device::SerialPort make Device::SerialPort install Device::SerialPort quit
I will try if zm works now later when i got more time,
THANKS
Al
OK, i googled and currently am doing this:
and now i can control x10 devices with zmx10.pl
I will try if zm works now later when i got more time,
THANKS
Al
Code: Select all
cpan
get X10
make X10
install X10
get Device::SerialPort
make Device::SerialPort
install Device::SerialPort
quit
I will try if zm works now later when i got more time,
THANKS
Al
It seems that the edit function in this forum does not work for me...it posts new reply instead...
Now that my zmx10.pl command works I face the next problem. Exept to the first activation signal zm does not respond. When i try to stop ZM Apache hangs... (it did not do this before). I found some relevant ( i think ) entries in zmdc.log and zmx10.log.
Thanks for helping,
Alex
and zmx10.log
Now that my zmx10.pl command works I face the next problem. Exept to the first activation signal zm does not respond. When i try to stop ZM Apache hangs... (it did not do this before). I found some relevant ( i think ) entries in zmdc.log and zmx10.log.
Thanks for helping,
Alex
Code: Select all
zmdc.log
'zmc -d 0' starting at 04/05/21 09:40:10, pid = 11207
'zmc -d 0' crashed at 04/05/21 09:40:10, exit status 255
'zmf -m 4' started at 04/05/21 09:40:10
'zmf -m 4' starting at 04/05/21 09:40:10, pid = 11210
'zmf -m 4' crashed at 04/05/21 09:40:10, exit status 255
'zmf -m 4' started at 04/05/21 09:40:10
'zmf -m 4' starting at 04/05/21 09:40:10, pid = 11213
'zmf -m 4' crashed at 04/05/21 09:40:10, exit status 255
'zma -m 4' started at 04/05/21 09:40:10
'zma -m 4' starting at 04/05/21 09:40:10, pid = 11216
'zma -m 4' crashed at 04/05/21 09:40:10, exit status 255
'zma -m 4' started at 04/05/21 09:40:10
'zma -m 4' starting at 04/05/21 09:40:10, pid = 11219
'zma -m 4' crashed at 04/05/21 09:40:10, exit status 255
'zmfilter.pl' started at 04/05/21 09:40:10
'zmfilter.pl' starting at 04/05/21 09:40:10, pid = 11222
'zmaudit.pl -d 900 -y' started at 04/05/21 09:40:11
'zmaudit.pl -d 900 -y' starting at 04/05/21 09:40:11, pid = 11226
'zmx10.pl -c start' started at 04/05/21 09:40:11
'zmx10.pl -c start' starting at 04/05/21 09:40:11, pid = 11231
'zmwatch.pl' started at 04/05/21 09:40:11
'zmwatch.pl' starting at 04/05/21 09:40:11, pid = 11235
'zmupdate.pl -c' started at 04/05/21 09:40:12
'zmupdate.pl -c' starting at 04/05/21 09:40:12, pid = 11240
Starting pending process, zma -m 4
'zma -m 4' started at 04/05/21 09:40:15
'zma -m 4' starting at 04/05/21 09:40:15, pid = 11255
Starting pending process, zmc -d 0
'zmc -d 0' started at 04/05/21 09:40:15
'zmc -d 0' starting at 04/05/21 09:40:15, pid = 11256
Starting pending process, zmf -m 4
'zmf -m 4' started at 04/05/21 09:40:15
'zmf -m 4' starting at 04/05/21 09:40:15, pid = 11257
'zma -m 4' crashed at 04/05/21 09:40:15, exit status 255
'zmc -d 0' crashed at 04/05/21 09:40:15, exit status 255
'zmf -m 4' crashed at 04/05/21 09:40:15, exit status 255
Starting pending process, zma -m 4
'zma -m 4' started at 04/05/21 09:40:25
'zma -m 4' starting at 04/05/21 09:40:25, pid = 11263
Starting pending process, zmc -d 0
'zmc -d 0' started at 04/05/21 09:40:25
'zmc -d 0' starting at 04/05/21 09:40:25, pid = 11264
Starting pending process, zmf -m 4
'zmf -m 4' started at 04/05/21 09:40:25
'zmf -m 4' starting at 04/05/21 09:40:25, pid = 11265
'zma -m 4' crashed at 04/05/21 09:40:25, exit status 255
'zmc -d 0' crashed at 04/05/21 09:40:25, exit status 255
Starting pending process, zma -m 4
'zma -m 4' started at 04/05/21 09:40:45
'zma -m 4' starting at 04/05/21 09:40:45, pid = 11275
Starting pending process, zmc -d 0
'zmc -d 0' started at 04/05/21 09:40:45
'zmc -d 0' starting at 04/05/21 09:40:45, pid = 11276
'zmf -m 4' crashed at 04/05/21 09:40:45, exit status 255
'zma -m 4' crashed at 04/05/21 09:40:45, exit status 255
Starting pending process, zmf -m 4
'zmf -m 4' started at 04/05/21 09:41:05
'zmf -m 4' starting at 04/05/21 09:41:05, pid = 11295
'zmc -d 0' crashed at 04/05/21 09:41:05, exit status 255
Starting pending process, zma -m 4
'zma -m 4' started at 04/05/21 09:41:25
'zma -m 4' starting at 04/05/21 09:41:25, pid = 11301
'zmf -m 4' crashed at 04/05/21 09:41:25, exit status 255
Starting pending process, zmc -d 0
'zmc -d 0' started at 04/05/21 09:41:45
'zmc -d 0' starting at 04/05/21 09:41:45, pid = 11307
'zma -m 4' crashed at 04/05/21 09:41:45, exit status 255
Starting pending process, zmf -m 4
'zmf -m 4' started at 04/05/21 09:42:05
'zmf -m 4' starting at 04/05/21 09:42:05, pid = 11324
'zmc -d 0' crashed at 04/05/21 09:42:05, exit status 255
'zma -m 4' started at 04/05/21 09:42:30
'zma -m 4' starting at 04/05/21 09:42:30, pid = 11334
'zmf -m 4' crashed at 04/05/21 09:42:30, exit status 255
'zmf -m 4' started at 04/05/21 09:42:30
'zmf -m 4' starting at 04/05/21 09:42:30, pid = 11338
'zma -m 4' crashed at 04/05/21 09:42:30, exit status 255
Starting pending process, zmc -d 0
'zmc -d 0' started at 04/05/21 09:43:25
'zmc -d 0' starting at 04/05/21 09:43:25, pid = 11374
'zmf -m 4' crashed at 04/05/21 09:43:25, exit status 255
Starting pending process, zma -m 4
'zma -m 4' started at 04/05/21 09:45:10
'zma -m 4' starting at 04/05/21 09:45:10, pid = 11478
'zmc -d 0' crashed at 04/05/21 09:45:10, exit status 255
Starting pending process, zmf -m 4
'zmf -m 4' started at 04/05/21 09:46:05
'zmf -m 4' starting at 04/05/21 09:46:05, pid = 11502
'zma -m 4' crashed at 04/05/21 09:46:05, exit status 255
Starting pending process, zmc -d 0
'zmc -d 0' started at 04/05/21 09:47:50
'zmc -d 0' starting at 04/05/21 09:47:50, pid = 11538
'zmf -m 4' crashed at 04/05/21 09:47:50, exit status 255
Command 'zma -m 4' removed from pending list at 04/05/21 09:48:27
Command 'zmf -m 4' removed from pending list at 04/05/21 09:48:27
'zmwatch.pl ' stopping at 04/05/21 09:50:47
'zmwatch.pl ' died at 04/05/21 09:50:47, signal 14
'zmx10.pl -c start' stopping at 04/05/21 09:50:47
'zmx10.pl -c start' died at 04/05/21 09:50:47, signal 14
'zmc -d 0' stopping at 04/05/21 09:50:47
Code: Select all
X10 server starting at 04/05/21 09:40:12
Sending 'gimme events' byte
Executing command '/usr/local/bin/zmdc.pl start zma -m 4'
Executing command '/usr/local/bin/zmdc.pl start zmf -m 4'
04/05/21 09:42:30 - A01 ON
Sending 'gimme events' byte
04/05/21 09:43:10 - A02 ON
Sending 'gimme events' byte
04/05/21 09:43:52 - A02 ON
Sending 'gimme events' byte
04/05/21 09:44:13 - A03 ON
Sending 'gimme events' byte
04/05/21 09:44:24 - A03 OFF
Sending 'gimme events' byte
04/05/21 09:44:42 - A02 OFF
Sending 'gimme events' byte
Executing command '/usr/local/bin/zmdc.pl stop zma -m 4'
Executing command '/usr/local/bin/zmdc.pl stop zmf -m 4'
04/05/21 09:48:27 - A01 OFF