From: Kieran A. <ka...@op...> - 2001-10-13 20:03:03
|
List, I just installed an appliance mudule as described below: $PondLights = new X10_Appliance('P2'); $v_PondLights = new Voice_Cmd('Pond Lighting [ON,OFF]'); if ($state = said $v_PondLights) { set $PondLights $state ; speak("rooms=all Pond Lighting is now ${state}."); } When I run the appropriate pond lighting command on or off from the mh web page, I get... 10/13/2001 03:30:47 PM Running: Pond Lighting ON normal: Pond Lighting is now ON. 10/13/2001 03:30:51 PM Running: Pond Lighting OFF normal: Pond Lighting is now OFF. However, if I use the powerhouse controller and press the P2 button on and off, I get these messages logged to the console: 10/13/2001 03:24:01 PM XP2PJ: PondLights on 10/13/2001 03:24:08 PM XP2PK: PondLights off So, mh is seeing the XP2PK command on the power line. I'd like to use the "P" commands to run some other devices on other codes. How might I code a command that says if I push the P3 ON button, (eg: mh sees that the command XP3PJ was transmitted) it would either turn my floodlights in the front of the house on (Defined as B5) or run the voice command "set $FrontFloodLight ON" and also say "The Floodlights were turned on by the remote controller."? Thanks, Kieran |