« Return to Thread: control insteon lights from x10 remotes

Re: control insteon lights from x10 remotes

by Brock Palen-3 :: Rate this Message:

Reply to Author | View in Thread

On Jul 2, 2009, at 8:55 AM, Gregg Liming wrote:

> 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";
>
> Try changing the above print_log statement to:
>
>   print_log "x10 said bedroom light $state and state_level " .
> $x10_bedroom_light->state_level;
>
> If state_level gives the correct corresponding value, then you'll have
> to further qualify your code above.

Ok this is strange,  I tried both X10A X10SL and X10I

Used the following code:

if ( $x10_bedroom_light->state_now()){
   print_log "x10 said bedroom light " . $x10_bedroom_light-
 >state_now();
   $bed_both_scene->set($x10_bedroom_light->state_now());

}


In call cases I got:
07/02/09 10:39:47 PM x10 said bedroom light manual


_but_  if I comment out
  $bed_both_scene->set($x10_bedroom_light->state_now());

I get

07/02/09 10:53:35 PM x10 said bedroom light off
07/02/09 10:53:41 PM x10 said bedroom light on


The right values,  thats really strange, why would including a line of  
code acting on the object (after the logging) affect the value seen?


>
>
>> }
>>
>>
>> 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
>>
>> And the lights turn on, but I can't turn them off,  why is the switch
>> being set to 'manual'  and not the actually ON and OFF codes being
>> sent?  If I remove the A3 device, and just watch the logs the PLM is
>> correctly seeing them as A3 ON and A3 OFF, but ignores this
>> information when I define a name to go with it.
>>
>> Thanks,
>>
>>
>> Brock Palen
>> brockp@...
>> www.mlds-networks.com
>> MLDS Owner Senior Tech.
>>
>>
>>
>> ------------------------------------------------------------------------------
>> ________________________________________________________
>> To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365
>>
>
>
> ------------------------------------------------------------------------------
> ________________________________________________________
> To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365
>


------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

 « Return to Thread: control insteon lights from x10 remotes