X10 Community Forum

🖥️ActiveHome Pro => SDK => Topic started by: BitsNBytes on August 16, 2009, 12:59:43 AM

Title: CM15a Wireless Lamp Switch
Post by: BitsNBytes on August 16, 2009, 12:59:43 AM
Is there a way the CM15a can send a wireless message to an X10 lamp switch? I see an X10 wireless lamp switch but it has a "stick-anywhere-panel" that sends the wireless message. I would like to send the wireless messages though software using (hopefully) the CM15a or similar device (which also needs to work with Active Eye). Is this possible?
Title: Re: CM15a Wireless Lamp Switch
Post by: Brian H on August 16, 2009, 06:37:33 AM
The X10 Lamp Modules and Switches do not receive an RF signal. They only receive X10 signals on the power line.
The Stick-A-Switch is an RF device, as you expected, but it transmits to an X10 Tranceiver. That converts the RF command to a Power line signal. The TM751 and RR501 are Transceiver. Your CM15A can also receive the RF signal from a Motion Sensor or Stick-A-Switch and send the signal over the power line to a lamp module or switch. Along with any other power line signal module like an Appliance Module.
Title: Re: CM15a Wireless Lamp Switch
Post by: BitsNBytes on August 16, 2009, 10:10:23 AM
Thanks Brian,

So if I am understanding this correct the CM15a can send a wired mode signal  over my house wiring to the lamp switch, turning it on and off. All i have to do is figure out the protocol which must be through the SendAction (varAction, varParm, varReseved1, varReseved2) API function.

If so that would be sweet...
Title: Re: CM15a Wireless Lamp Switch
Post by: Videonut on August 16, 2009, 05:17:01 PM
ActiveHomeObj.SendAction("sendplc", "C2 on")
this would turn on c2 if that was the house/unit code for the light module.
you can also
ActiveHomeObj.SendAction("sendplc", "C2 dim 10") to reduce level 10% at a time. If I use this from off then it brightens to 100 then drops 10% each call
or
ActiveHomeObj.SendAction("sendplc", "C2 bright 10") to increase level 10% at a time although I get different reactions to this
10 is the percentage change so you substitute any number for the 10.
You can also use a string variable and concatinate a string to send eg.
        Dim amount As String = "10"
        Dim unit As String = "B2 Dim"
        ActiveHomeObj.SendAction("sendplc", unit & " " & amount)
Hope this helps.
Title: Re: CM15a Wireless Lamp Switch
Post by: BitsNBytes on August 16, 2009, 06:53:43 PM
Perfect...! tks...