Author |
|
deckhardt Groupie
Joined: July 23 2006 Location: United States
Online Status: Offline Posts: 57
|
Posted: August 03 2010 at 11:14 | IP Logged
|
|
|
I've been looking at Asterisk implementation at
NerdVittles.com There would seem to be benefits in
integrating Powerhome and asterisk, but there is little
discussion on it.
Has anyone got any experience integrating the two?
thanks,
dave
|
Back to Top |
|
|
jgreco Newbie
Joined: December 22 2009
Online Status: Offline Posts: 18
|
Posted: August 06 2010 at 10:28 | IP Logged
|
|
|
I guess the question is: what sort of integration are you looking for? Are you looking for telephone-based control of your lighting, or announcement of incoming calls over your house intercom system? It was pretty simple to have Asterisk set up to talk to our hacked DirecTiVo's running ncidd; a shell script and a little logic was all it took, but that doesn't touch PH at all. The main problem with many integration projects is making up the correct glue.
|
Back to Top |
|
|
deckhardt Groupie
Joined: July 23 2006 Location: United States
Online Status: Offline Posts: 57
|
Posted: August 26 2010 at 13:13 | IP Logged
|
|
|
guess I was thinking some control of lights, playlists,
security etc. via phone
|
Back to Top |
|
|
jgreco Newbie
Joined: December 22 2009
Online Status: Offline Posts: 18
|
Posted: August 26 2010 at 14:27 | IP Logged
|
|
|
deckhardt wrote:
guess I was thinking some control of lights, playlists,
security etc. via phone
|
|
|
There are probably a bunch of ways to do those sorts of things. Anything that can be done via HTTP can probably be automated using a system() call in your Asterisk dialplan and wget with appropriate arguments, for example, though I seem to recall there are supposed to be more direct ways to twiddle with PH over the network. I'm currently avoiding getting dragged back into a quagmire of Insteon questions that I don't have time to find the answers to, and so I'm not going to try to work out a complete example for this either, but you
can have menu code in Asterisk that goes something like
exten => s,Background(menu-saying-press-1-for-all-lights-off-2-for-dr iveway-on-etc)
exten => 1,System("wget http://your-ph-box/url-to-boink-all-lights-on")
exten => 2,System("wget http://your-ph-box/url-to-boink-driveway-on")
Remember that wget may need arguments like username and password, and can do things like posting forms instead of retrieving via GET. Your best bet is to get into the web interface and find the action you want to do, and then examine what'll get submitted to the powerhome box, and then duplicate that. wget can be a powerful tool.
Obviously this could be a lot of work if you wanted to make a complicated setup, but then it seems like it's a lot of work even to do simple stuff sometimes. ;-)
|
Back to Top |
|
|