From: George F. <fa...@sh...> - 2008-12-24 05:27:41
|
Hi all, I'm slowly getting a grip on MH, there is a lot to it. One thing I'd like to do is read X10 events with the Insteon PLM. How does one go about referring to these events in perl code? I've checked the logs but I don't see anything happen when I press the on or off button on the x10 switch. Is this even possible? Basically I have a wireless X10 wall plate with 3 switches in it and I want MH to react when I press one of the switches. I'm pretty sure the PLM can read it. Cheers |
From: Rick S. <mis...@co...> - 2008-12-24 15:53:29
|
I've got one of those RF X10 wallplates, set next to the door. I was lazy and just set up the appropriate codes in items.mht like they were appliance modules: X10A, B1, switch1_1, X10A, B2, switch1_2, and then wrote some code: # Set and Unset Security mode if (state_now $switch1_2 eq 'on') { set $mode_garage 'armed'; speak (app => 'default', text => 'Garage armed.'); } elsif (state_now $switch1_2 eq 'off') { set $mode_garage 'unarmed'; speak (app => 'default', text => 'Garage disarmed.'); } Note that MH needs some way to receive the signal. In my case I'm using the W800. Does the PLM receive wireless codes or only codes on the (power) wire. Rick At 12:27 AM 12/24/2008, George Farris wrote: >Hi all, > >I'm slowly getting a grip on MH, there is a lot to it. One thing I'd >like to do is read X10 events with the Insteon PLM. How does one go >about referring to these events in perl code? I've checked the logs but >I don't see anything happen when I press the on or off button on the x10 >switch. > >Is this even possible? > >Basically I have a wireless X10 wall plate with 3 switches in it and I >want MH to react when I press one of the switches. I'm pretty sure the >PLM can read it. > >Cheers > > > > > > >------------------------------------------------------------------------------ >________________________________________________________ >To unsubscribe from this list, go to: >http://sourceforge.net/mail/?group_id=1365 |
From: Brian W. <bri...@78...> - 2008-12-24 18:39:51
|
Rick Steeves wrote: > I've got one of those RF X10 wallplates, set next to the door. I was > lazy and just set up the appropriate codes in items.mht like they > were appliance modules: > > X10A, B1, switch1_1, > X10A, B2, switch1_2, > > and then wrote some code: > > # Set and Unset Security mode > if (state_now $switch1_2 eq 'on') { > set $mode_garage 'armed'; > speak (app => 'default', text => 'Garage armed.'); > } elsif (state_now $switch1_2 eq 'off') { > set $mode_garage 'unarmed'; > speak (app => 'default', text => 'Garage disarmed.'); > } > > > Note that MH needs some way to receive the signal. In my case I'm > using the W800. Does the PLM receive wireless codes or only codes on > the (power) wire. > The PLM is a powerline only device. You do need something like the W800 to capture X10 RF. -- Brian |
From: George F. <fa...@sh...> - 2008-12-26 20:00:52
|
On Fri, 2008-12-26 at 01:20 -0500, Rick Steeves wrote: > Generally I don't think the basic X10 (wired) light switches send a > signal when you use the light switch. (at least mine don't). They > certainly don't send RF. > Yes you are correct, I was mistaken. I need to rephrase this: Here is what I have. \ / | | +---+ +------+ | o | rf link to x10 plugin module | x10 |__ | o | -------------------------------> | rf |__ | o | | rcvr | +---+ | | +------+ X10 Wireless plugged into wall Wall switch +-----+ | o | | | | | | | RS232 to CPU running MH | |---------------------------------> +-----+ Insteon PLM When I push a button on the rf wall plate it sends a signal to the x10 rf rcvr which in turn sends an X10 signal out on the power line. The Insteon PLM should then receive this signal (I've seen the led flash on the plm) and I'm looking for a way to access what it receives in MH. Thanks |
From: Rick S. <mis...@co...> - 2008-12-26 23:02:09
|
At 03:01 PM 12/26/2008, George Farris wrote: >When I push a button on the rf wall plate it sends a signal to the x10 >rf rcvr which in turn sends an X10 signal out on the power line. The >Insteon PLM should then receive this signal (I've seen the led flash on >the plm) and I'm looking for a way to access what it receives in MH. Do you care whether you get the signal post it hitting the PLM? Or do you just want to see the signal? To capture the signal as it leaves the RF plate, you can use something hooked to the PC that can read the RF. That would be the W800. To capture the signal between the rf receiver and the Insteon PLM (in other words as it shoots across the wire) I believe most people use the CM11 hooked to the PC, but that would defeat the point of your PLM probably. All that being said, if you want the Insteon PLM to report to the PC across RF232, you'll need someone else to help you :-), as I don't have insteon. FYI, If you haven't dealt with the phases on the powerline yet, keep in mind you're WAY more likely to have success with the data making it from the RF receiver on the powerline to anything else if they're both on the same phase. Hope that's helpful. Rick >Thanks |
From: George F. <fa...@sh...> - 2008-12-27 07:40:20
|
On Sat, 2008-12-27 at 00:19 -0500, Brian Warren wrote: > George Farris wrote: > > On Fri, 2008-12-26 at 01:20 -0500, Rick Steeves wrote: > >> Generally I don't think the basic X10 (wired) light switches send a > >> signal when you use the light switch. (at least mine don't). They > >> certainly don't send RF. > >> > > > > Yes you are correct, I was mistaken. I need to rephrase this: > > > > Here is what I have. \ / > > | > > | > > +---+ +------+ > > | o | rf link to x10 plugin module | x10 |__ > > | o | -------------------------------> | rf |__ > > | o | | rcvr | > > +---+ | | > > +------+ > > X10 Wireless plugged into wall > > Wall switch > > > > > > +-----+ > > | o | > > | | | | > > | | RS232 to CPU running MH > > | |---------------------------------> > > +-----+ > > > > Insteon PLM > > > > When I push a button on the rf wall plate it sends a signal to the x10 > > rf rcvr which in turn sends an X10 signal out on the power line. The > > Insteon PLM should then receive this signal (I've seen the led flash on > > the plm) and I'm looking for a way to access what it receives in MH. > > > > Thanks > > > > According to the wiki, the PLM supports 2-way X10. > Turn on insteon debugging by setting debug=insteon in mh.private.ini. > > Create your X10 device in items.mht with the plm object listed as the > controller. Then you should be able to use it like any other X10 interface. > > I no longer have any X10 devices, but if you still have problems, post > some debug logs taken while pressing the buttons. > But how do I refer to the x10 device coming in on the serial port of the PLM? In perl how do I refer to say x10 address A3, something like: if ( $x10_light eq on) { do something; } I need a way to tie the incoming PLM data to a variable in perl and be able to check if it is an 'ON' or and 'OFF" command. Cheers PS: I did figure out the setting debug=insteon works. |
From: Brian W. <bri...@78...> - 2008-12-27 14:21:37
|
George Farris wrote: > On Sat, 2008-12-27 at 00:19 -0500, Brian Warren wrote: >> George Farris wrote: >>> On Fri, 2008-12-26 at 01:20 -0500, Rick Steeves wrote: >>>> Generally I don't think the basic X10 (wired) light switches send a >>>> signal when you use the light switch. (at least mine don't). They >>>> certainly don't send RF. >>>> >>> Yes you are correct, I was mistaken. I need to rephrase this: >>> >>> Here is what I have. \ / >>> | >>> | >>> +---+ +------+ >>> | o | rf link to x10 plugin module | x10 |__ >>> | o | -------------------------------> | rf |__ >>> | o | | rcvr | >>> +---+ | | >>> +------+ >>> X10 Wireless plugged into wall >>> Wall switch >>> >>> >>> +-----+ >>> | o | >>> | | | | >>> | | RS232 to CPU running MH >>> | |---------------------------------> >>> +-----+ >>> >>> Insteon PLM >>> >>> When I push a button on the rf wall plate it sends a signal to the x10 >>> rf rcvr which in turn sends an X10 signal out on the power line. The >>> Insteon PLM should then receive this signal (I've seen the led flash on >>> the plm) and I'm looking for a way to access what it receives in MH. >>> >>> Thanks >>> >> According to the wiki, the PLM supports 2-way X10. >> Turn on insteon debugging by setting debug=insteon in mh.private.ini. >> >> Create your X10 device in items.mht with the plm object listed as the >> controller. Then you should be able to use it like any other X10 interface. >> >> I no longer have any X10 devices, but if you still have problems, post >> some debug logs taken while pressing the buttons. >> > > But how do I refer to the x10 device coming in on the serial port of the > PLM? In perl how do I refer to say x10 address A3, something like: > > if ( $x10_light eq on) { > do something; > } > > I need a way to tie the incoming PLM data to a variable in perl and be > able to check if it is an 'ON' or and 'OFF" command. > Did you define something in your *.mht file? X10A, B3, slimline_1, keypad, plm You should be able to check the state* of the item. if (my $state = $slimline_1->state_now) { #do stuff } If that doesn't seem to be working, go ahead and post the debug and we'll make sure the plm is seeing the data. -- Brian |
From: George F. <fa...@sh...> - 2008-12-26 05:34:34
|
On Wed, 2008-12-24 at 13:39 -0500, Brian Warren wrote: > The PLM is a powerline only device. You do need something like the W800 > to capture X10 RF. > Well I thought the PLM was able to pick up x10 commands from say a regular wall switch, is this not the case? If I turn a light on from a wall switch does MH not get status that it has turned on? If it does then it should read the RF command that is wirelessly linked to the x10 unit plugged into the wall and which in turn sends x10 commands on the power line. Cheers |
From: Rick S. <mis...@co...> - 2008-12-26 06:22:30
|
Generally I don't think the basic X10 (wired) light switches send a signal when you use the light switch. (at least mine don't). They certainly don't send RF. I use one of the RF (wireless) switches which send a signal to the W800, which in turn sends it to misterhouse to act upon. Examples would be the palm pad: http://www.x10wirelesshome.com/remotes/x10_palmpad_remote_hr12a.html or slimline switch http://kbase.x10.com/wiki/Slimline_Switch If you use a base X10 wired light switch and change the status of the light, Misterhouse doesn't know about it. I really don't understand "it should read the RF command that is wirelessly linked to the x10 unit plugged into the wall and which in turn sends x10 commands on the power line." Rick At 12:34 AM 12/26/2008, George Farris wrote: >On Wed, 2008-12-24 at 13:39 -0500, Brian Warren wrote: > > > The PLM is a powerline only device. You do need something like the W800 > > to capture X10 RF. > > > >Well I thought the PLM was able to pick up x10 commands from say a >regular wall switch, is this not the case? If I turn a light on from a >wall switch does MH not get status that it has turned on? > >If it does then it should read the RF command that is wirelessly linked >to the x10 unit plugged into the wall and which in turn sends x10 >commands on the power line. > >Cheers > > > > > >------------------------------------------------------------------------------ >________________________________________________________ >To unsubscribe from this list, go to: >http://sourceforge.net/mail/?group_id=1365 |
From: Joe G. <jg...@ns...> - 2008-12-26 14:41:35
|
> Generally I don't think the basic X10 (wired) light switches send a > signal when you use the light switch. (at least mine don't). They > certainly don't send RF. SmartHome's pre-Insteon X10 line did offer some two-way devices (1182i or 11821, for example, was a two-way 1000w dimmer in ivory), and there have been a variety of others, though I'm not finding my notes at the moment. The ability to send a signal is, obviously, an important method for implementing a 2-or-more-way switch setup, but as noted, this generally falls outside the realm of the basic X10 device. > I use one of the RF (wireless) switches which send a signal to the > W800, which in turn sends it to misterhouse to act upon. > Examples would be the palm pad: > http://www.x10wirelesshome.com/remotes/x10_palmpad_remote_hr12a.html > or slimline switch > http://kbase.x10.com/wiki/Slimline_Switch > > If you use a base X10 wired light switch and change the status of the > light, Misterhouse doesn't know about it. That's correct, but it wasn't what George had been talking about, I think. > I really don't understand "it should read the RF command that is > wirelessly linked to the x10 unit plugged into the wall and which in > turn sends x10 > commands on the power line." I parse it, in the context of George originally talking about using a wireless switch. The answer is "yes it should and it probably does." The PLM definitely receives X10 from our legacy devices, including both wired and also wireless via a wireless receiver that's plugged in somewhere in the house. I see the events come in when I turn on PLM debugging. I expect that MH can be made to do something with the data, but I haven't done so. ... JG -- Joe Greco - sol.net Network Services - Milwaukee, WI - http://www.sol.net "We call it the 'one bite at the apple' rule. Give me one chance [and] then I won't contact you again." - Direct Marketing Ass'n position on e-mail spam(CNN) With 24 million small businesses in the US alone, that's way too many apples. |
From: Rick S. <mis...@co...> - 2008-12-26 14:51:10
|
At 08:50 AM 12/26/2008, Joe Greco wrote: > > I really don't understand "it should read the RF command that is > > wirelessly linked to the x10 unit plugged into the wall and which in > > turn sends x10 > > commands on the power line." > >I parse it, in the context of George originally talking about using a >wireless switch. The answer is "yes it should and it probably does." > >The PLM definitely receives X10 from our legacy devices, including both >wired and also wireless via a wireless receiver that's plugged in somewhere >in the house. I see the events come in when I turn on PLM debugging. If you're looking for X10 to read RF and relay back to the powerline then would x10_rf_relay.pl do what you want? <http://mh/bin/browse.pl?/code/common/x10_rf_relay.pl>x10_rf_relay.pl Relays selected X10 RF (Radio Frequency) data out to your X10 powerline interface. To enable a MR26 or W800RF32, set mh.ini parameters MODEL_module=X10_MODEL and MODEL_port=COM#, where MODEL is either MR26 or W800 (for W800RF32) (available from <http://www.x10.com/products/x10_mr26a.htm>x10.com or <http://www.wgldesigns.com>wgldesigns.com). Optionally set mh.ini parm x10_relay_hc to a regex to limit which house codes to relay (e.g. [ap] to relay only house codes a and p). Defaults to relaying all house codes, which can slow down your X10 communications if you have a lot of RF sensors. For more info, see comments at the top and bottom of mh/lib/X10_MR26.pm and X10_W800.pm. <http://mh/bin/code_select.pl#>EDIT Config parms: <http://mh/bin/code_select.pl#>x10_errata, <http://mh/bin/code_select.pl#>x10_relay_hc Rick |
From: George F. <fa...@sh...> - 2008-12-26 20:04:46
|
On Fri, 2008-12-26 at 07:50 -0600, Joe Greco wrote: > I parse it, in the context of George originally talking about using a > wireless switch. The answer is "yes it should and it probably does." > > The PLM definitely receives X10 from our legacy devices, including both > wired and also wireless via a wireless receiver that's plugged in somewhere > in the house. I see the events come in when I turn on PLM debugging. > > I expect that MH can be made to do something with the data, but I haven't > done so. > > ... JG Yes exactly, so how did you turn on PLM debugging and do you have any idea how MH can access this data coming in from the PLM? George |
From: Brian W. <bri...@78...> - 2008-12-27 05:19:44
|
George Farris wrote: > On Fri, 2008-12-26 at 01:20 -0500, Rick Steeves wrote: >> Generally I don't think the basic X10 (wired) light switches send a >> signal when you use the light switch. (at least mine don't). They >> certainly don't send RF. >> > > Yes you are correct, I was mistaken. I need to rephrase this: > > Here is what I have. \ / > | > | > +---+ +------+ > | o | rf link to x10 plugin module | x10 |__ > | o | -------------------------------> | rf |__ > | o | | rcvr | > +---+ | | > +------+ > X10 Wireless plugged into wall > Wall switch > > > +-----+ > | o | > | | | | > | | RS232 to CPU running MH > | |---------------------------------> > +-----+ > > Insteon PLM > > When I push a button on the rf wall plate it sends a signal to the x10 > rf rcvr which in turn sends an X10 signal out on the power line. The > Insteon PLM should then receive this signal (I've seen the led flash on > the plm) and I'm looking for a way to access what it receives in MH. > > Thanks > According to the wiki, the PLM supports 2-way X10. Turn on insteon debugging by setting debug=insteon in mh.private.ini. Create your X10 device in items.mht with the plm object listed as the controller. Then you should be able to use it like any other X10 interface. I no longer have any X10 devices, but if you still have problems, post some debug logs taken while pressing the buttons. -- Brian |