LinuxMCE Forums

General => Users => Topic started by: purps on January 27, 2012, 11:46:51 pm

Title: Switch an old valve amp on and off as required
Post by: purps on January 27, 2012, 11:46:51 pm
I was looking at some old valve amps with the aim of using them with LMCE. I was thinking use it with a z-wave plug adapter like this http://www.uk-automation.co.uk/products/Z-Wave-Appliance-plug-by-Everspring.html

My question, is what would be the best way to set up LMCE to turn it on and off? Obviously I want it to come on when it's needed (TV, audio, videos), but switch off after a period of time when not in use. Is this feasible?

Cheers,
Matt.
Title: Re: Switch an old valve amp on and off as required
Post by: tschak909 on January 28, 2012, 06:40:48 am
additional code would need to be added to the media plugin to handle "Power" pipes.
Title: Re: Switch an old valve amp on and off as required
Post by: purps on January 28, 2012, 10:04:35 am
Ah. Bother. OK thanks.

Cheers,
Matt.
Title: Re: Switch an old valve amp on and off as required
Post by: posde on January 28, 2012, 12:30:52 pm
<TSCHAK_IGNORE_THIS>
Another option would be a duct tape solution: Create a device template for the amp. Power On would execute a commandline messagesend to the Zwave device for power on, and power off in the device template would be the same for a commandline messagesend to the Zwave device for power off. Don't ask me about the ruby syntax in a GSD for commandline execution, but I am sure the wiki has something like that.
</TSCHAK_IGNORE_THIS>
Title: Re: Switch an old valve amp on and off as required
Post by: JoakimL on January 28, 2012, 12:47:23 pm
I've got a manual solution for my valve amp. I use a Tellstick controller, but the solution will work for any power controller.
Add a wall outlet device (#1897) and connect it to your power controller. Add any adresses/config needed and test that it works from the web admin.
Then add two scenarios - in my case it goes under Climate for unknown reasons - one for power on and one for power off. Regen orbiter and - viola, now there's two buttons on your orbiter to power on and off.

But posde's solution looks interesting, I'll investigate it.

/Joakim
Title: Re: Switch an old valve amp on and off as required
Post by: posde on January 28, 2012, 01:10:08 pm
Just looked at the wiki. This might be helpful, and a bit less "duct tapey":

http://wiki.linuxmce.org/index.php/How_to_add_your_own_GSD_device#Sending_an_event

Title: Re: Switch an old valve amp on and off as required
Post by: purps on January 29, 2012, 04:02:13 pm
Thanks chaps, some great ideas there.

Joakim, I was hoping I would at least be able to do it like that, so that's good to know.

I will look into the more automated solution (either/both the duct tape method and the proper method) in slower time (house move in a few weeks, still got two workshops to pack up!!)

Cheers,
Matt.