gharris999;405528 Wrote: > You *might* be able to do this with PeterW's PowerCenter plugin. It's > designed to work with X10 or Insteon devices via br or heyu. You might > be able to fool the plugin by pointing it to your own script in the > plugin settings rather than br or heyu. > > ... > > I think you could substitute your own script for br. You'd need to > parse the arguments that PeterW is passing in your script to determine > if this was a power on request or power off.
That's actually what I'm doing now on my own setup. My amp is now plugged into an Insteon appliance module that I control with an Insteon serial port modem (Smarthome 2412s). My local 'br' translates commands for a few specific X10 device codes into Insteon/plmtools commands, and passes others through to the regular 'br' executable. The firecracker module and Insteon controller even share the same serial port with no problems. It'd be cleaner, but require more effort, to hack PowerCenter/Plugin.pm to use the current Insteon support, from SuperDateTime's Greg Brown. That code translates commands into URLs which it requests asynchronously, so there's no adverse affect on SqueezeCenter (SqueezeCenter is unresponsive while PowerCenter executes commands; normally only a fraction of a second, and doesn't create any audible problems). More along the lines of Teddy's original request, and probably easiest to work with, is kdf's Execute Script plugin: http://code.google.com/p/kdfplugins/downloads/list Teddy, I'm slowly moving PowerCenter's backend to a more modular, object oriented approach that should make it fairly easy to support new protocols (beyond just X10 and Insteon), device classes (e.g., Dimmable lamps, Appliance modules) and controllers (local hardware, web-based interfaces, other APIs and network services). If you're interested in using your IR or Controller remotes to control other home automation devices, the next major version of PowerCenter might be worth a closer look. Out of curiosity -- what HA system are you using? What control protocol (x10/zwave/insteon/zigbee/etc.)? Any devices other than lamps and on/off type appliances? -- peterw http://www.tux.org/~peterw/ free plugins: http://www.tux.org/~peterw/#slim AllQuiet BlankSaver ContextMenu FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher SettingsManager SleepFade StatusFirst SyncOptions VolumeLock ------------------------------------------------------------------------ peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107 View this thread: http://forums.slimdevices.com/showthread.php?t=61225 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
