Why can't you use a macro with x10? I use one for garage door. When the door opens it turns on somes lights including a string of color LEDs. So when switch is toggled it will trigger a macro and that will control what ever you want. You, of course, will need some sort of a controller like CM15A. I use appliance module to control LEDs. This setup has been working for few years and I still, rarely though, get a email from X10 server when the door opens or shuts.
Or did I miss some thing?