« Return to Thread: Misterhouse Xap and Zoneminder 1.24

set-by loop with Occupancy/Light objects and PLM

by Brad Bosch :: Rate this Message:

Reply to Author | View in Thread

Greetings,

I am getting many "set_by loop detected" errors in my logs like the
following when motion or occupancy changes trigger a light to turn on
or off.  I am testing with the tip of the svn trunk.

05/26/09 11:06:01 PM BUG! set_by loop detected with these objects: $hall_lightx10, $light_hall

I believe the file fragments I have included below show that I am
using the abstract Item objects in a fairly straight forward way as
documented in the various library module perl code comments.

Things seem to be working mostly as desired other than these errors
being output to the log.  Are these messages considered normal when
using the occupancy, light, and motion item objects?  I have not yet
attempted to trace down the loop.  Does it matter that I am using a
PLM as my powerline interface?  (I noticed that it seems to be a bit
more specific in identifying the initiating object when light devices
change state than the documentation seems to imply; ie, Serial is not
used as the set_by object).

Thanks for whatever light anyone can shed on this.

--Brad


print.log fragment:
----------------------------------------------------------------------
05/26/09 11:06:01 PM W800: STATE D9 XD9DJ (on)
05/26/09 11:06:01 PM XD9DJ: hall_motion motion
05/26/09 11:06:01 PM Motion_Item($motion_hall)::set(motion, X10_Sensor=HASH(0xd660b50)): $hall_motion was set by rf
05/26/09 11:06:01 PM Ignore Check: $motion_hall
05/26/09 11:06:01 PM Log check: $motion_hall [1 2 3 4 6 7 16]
05/26/09 11:06:01 PM Presence Check: $motion_hall
05/26/09 11:06:01 PM Object $motion_bath has common edge: 2
05/26/09 11:06:01 PM Object $motion_bath no door edge restriction active
05/26/09 11:06:01 PM Connecting room $motion_bath count decremented (1 total)
05/26/09 11:06:01 PM Clearing used flag for $motion_hall (presence)
05/26/09 11:06:01 PM Adding 1 to room $motion_hall
05/26/09 11:06:01 PM count_people: counting object $motion_gar (10 21 22): 1 (count=0)
05/26/09 11:06:01 PM count_people: counting object $motion_hall (1 2 3 4 6 7 16): 1 (count=1)
05/26/09 11:06:01 PM $light_hall::set(20%, $presence_hall) -> $hall_lightx10
05/26/09 11:06:01 PM BUG! set_by loop detected with these objects: $hall_lightx10, $light_hall
05/26/09 11:06:01 PM BUG! set_by loop detected with these objects: $hall_lightx10, $light_hall
05/26/09 11:06:01 PM BUG! set_by loop detected with these objects: $hall_lightx10, $light_hall
05/26/09 11:06:01 PM BUG! set_by loop detected with these objects: $light_hall, $hall_lightx10
05/26/09 11:06:01 PM W800: flushing incomplete data:
05/26/09 11:06:01 PM W800: flushing incomplete data:
05/26/09 11:06:01 PM BUG! set_by loop detected with these objects: $Hall, $light_hall, $hall_lightx10
05/26/09 11:06:02 PM BUG! set_by loop detected with these objects: $Hall, $light_hall, $hall_lightx10
05/26/09 11:06:02 PM BUG! set_by loop detected with these objects: $Hall, $light_hall, $hall_lightx10


.mht file fragment:
----------------------------------------------------------------------
X10MS, D9,  hall_motion,     Sensors_X10|All_X10,              Motion
MOTION,    hall_motion,     motion_hall, Hall(1;2)

X10I,  A12, hall_lightx10,    All_X10_lights|All_X10,         PLM, # Hall
LIGHT,    hall_lightx10,    light_hall, Hall(7;1)

PRESENCE, motion_hall,om, presence_hall, Hall(7;2)


.pl file fragment
----------------------------------------------------------------------
if ( time_between "22:00", "06:40" ) {
  $light_hall->set_on_state('20%');
}
# noloop=start
$om->set_edges($motion_hall, 1,2,3,4,6,7,16);
$om->ignore_time($motion_hall, 2);

$light_hall->add($presence_hall, $photocell_drvw, $photocell_entr, $photocell_deck);
$light_hall->delay_off($min_delay_off);
$presence_hall->occupancy_expire(60);


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

 « Return to Thread: Misterhouse Xap and Zoneminder 1.24