For example for my DeviceCamera i have set "Trigger" option to X10 and
under X10 Tab the follow option:
- X10 Activation String => "4" (Number of X10 Unit code to active Camera)
- X10 Input Alarm String => "" (Blank not used)
- X10 Output Alarm String => "2+10" (when the camera go on alarm put in on the X10 unit 2 for 10 seconds)
Ok...is very simple..

But my Idea is to use my KeyChain to Active and Deactive my camera detection, like normal alarm system... So i put on "X10 Activation String" => "4" ... I can able to see from log file the Signal received but nothing happend...As i read in other post there are lot of people ask Why????
So check the zmx10.pl script to under what happend when the Activation string come...The script catch the command from X10 KeyChain in good way!! But..nothing...Ok from the script:
---------
zmx10.pl
---------
if ( $class eq "active" )
{
Debug( "StringaInputAttivazione\n" );
if ( $instruction eq "start" )
{
Debug( "Attivazione Monitor\n" );
zmMonitorEnable( $task->{monitor} );
if ( $task->{limit} )
{
addPendingTask( $task );
}
}
elsif( $instruction eq "stop" )
{
Debug( "Disattivazione Monitor\n" );
zmMonitorDisable( $task->{monitor} );
}
}
------
So...from this script the function that put the Camera in Deactive mode is zmMonitorEnable/zmMonitorDisable... ok i go in SharedMem.pm to vie what kind of function is and how it work...
------------------
sub zmMonitorEnable( $ )
{
my $monitor = shift;
my $action = zmShmRead( $monitor, "shared_data:action" );
$action |= ACTION_SUSPEND;
zmShmWrite( $monitor, { "shared_data:action" => $action } );
}
sub zmMonitorDisable( $ )
{
my $monitor = shift;
my $action = zmShmRead( $monitor, "shared_data:action" );
$action |= ACTION_RESUME;
zmShmWrite( $monitor, { "shared_data:action" => $action } );
}
----------------------
As i can understand they seems like a Suspend/Resume function but inverted

------------
sub zmMonitorSuspend( $ )
{
my $monitor = shift;
my $action = zmShmRead( $monitor, "shared_data:action" );
$action |= ACTION_SUSPEND;
zmShmWrite( $monitor, { "shared_data:action" => $action } );
}
sub zmMonitorResume( $ )
{
my $monitor = shift;
my $action = zmShmRead( $monitor, "shared_data:action" );
$action |= ACTION_RESUME;
zmShmWrite( $monitor, { "shared_data:action" => $action } );
}
---------
As i can understand there is something very strange...but im not developer...so i can missunderstand... Is i use zmMonitorSuspend/Resume function the Activation function of X10 device works...but i can Supend only for some seconds the function dont stop...How can i do???
Many thanks!!!