On Wed, Jul 01, 2009 at 11:34:15PM -0400, Brock Palen wrote:
> I have insteon lights in my bedroom, they work fine, and are
> controlled by a scene defined as:
>
> IPLL, PLM:10, bed_both_scene, all_scenes, PLM
> SCENE_MEMBER, bedroom_light1, bed_both_scene, 100%, 2s
> SCENE_MEMBER, bedroom_light2, bed_both_scene, 100%, 2s
>
> I also have an x10 wireless remote I would like to use to control it,
> I defined it as:
> X10SL, A3, x10_bedroom_light, All_Lights,
> PLM,
>
> I then made the following code:
> if( $state = $x10_bedroom_light->state_now()){
> $bed_both_scene->set($state);
> print_log "x10 said bedroom light $state";
> }
>
>
> When I hit 'ON' I get the following logged:
>
> 07/01/09 11:04:10 PM XA3: x10_bedroom_light manual
> 07/01/09 11:04:10 PM x10 said bedroom light manual
I'm not too sure why you're getting manual.
I have
X10SL, L4, mbr_lamp2_x10, All_X10_lights|All_X10, PLM,
and my code is
if ($mbr_lamp2_x10->state_now eq ON)
{
print_log "Got on for mbr_lamp2_x10, resending as insteon command";
$mbr_lamp2->set(ON);
}
elsif ($mbr_lamp2_x10->state_now eq OFF)
{
print_log "Got off for mbr_lamp2_x10, resending as insteon command";
$mbr_lamp2->set(OFF);
}
Maybe you want to try X10A instead of X10SL? (or X10I?)
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
.... what McDonalds is to gourmet cooking
Home page:
http://marc.merlins.org/
------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to:
http://sourceforge.net/mail/?group_id=1365