Control X10 devices via php on another server

Using Vera, I am able to control X10 devices using LUUP scripting in Scenes to my Apache/PHP Linux home server. I use “luup.inet.wget” to call my PHP page that has GET variables which feeds commands to my X10 Firecracker device. Works way better than I expected. So here is the big question… I can call the scenes easy enough, but I would like to integrate the X10 devices into other scenes. It seems to me that LUUP is only available at the “Immediate” time slot level. Could I create a device that has ‘on’ and ‘off’ buttons and attach LUUP code to each event (on or off)?

Sorry for the newb question… I got my Veralite 3 days ago and I have hardly slept since. :slight_smile:

The simplest way to do this is to install the VirtualSwitch (VS) plugin from the app store)and create as many VS devices as you want. Now you can set scenes to trigger from the on and off events of the individual devices.

VS devices allow you to define two lines of text on the deice block to help identify what the switch represents.

[quote=“RexBeckett, post:2, topic:178145”]The simplest way to do this is to install the VirtualSwitch (VS) plugin from the app store)and create as many VS devices as you want. Now you can set scenes to trigger from the on and off events of the individual devices.

VS devices allow you to define two lines of text on the deice block to help identify what the switch represents.[/quote]

Thanks Rex! I don’t see any documentation for this add on… how would I tie luup code to the on and off events?

As Rex stated, you’ll need to create two scenes. In the trigger tab you’ll select the Virtual Switch device and select the action of a device is turned on and a device is turned off.

  • Garrett

Thanks, as I mentioned I am just starting out… I think I got it now.

Yep, that was what I needed. Thanks!