From: Jacob S. <ke...@gm...> - 2008-08-02 02:27:29
|
Yep, that was it! set(ON) and set(OFF) worked. When I finish programming the Go Crazy button, I'll make a YouTube video of it in action or something and show you what it does. -Jacob On Fri, Aug 1, 2008 at 5:25 PM, Gregg Liming <gr...@li...> wrote: > Jacob Strandlien wrote: > > Key 06 is the one I want tied to the shell script. It's a > > custom-etched key that simply says 'Go Crazy'. > > Now, I'm very inspired. Mine are far more lame. > > There are several things I want the script to do when the Go Crazy key > > is pressed, but I decided to start with something simple to make sure > > I could get it to do anything. So I put a few lines into my > > insteon.pl file to simply make the Go Crazy button activate and > > deactivate my garage light scene (which is simply a light tied to a > > key, just like my kitchen scene). It looks like this: > > > > if(state_now $go_crazy_key eq ON){ > > $mh_scene_garage->set("ON"); > > } > > set(ON) or set("on") or set('on'); not set("ON") > > > if(state_now $go_crazy_key eq OFF){ > > $mh_scene_garage->set("OFF"); > > } > ditto > > And the go_crazy_key entry in insteon.mht looks like this: > > > > IPLL, myPLM:16, surrogate_go_crazy_key, surrogates, myPLM > > SCENE_MEMBER, go_crazy_key, surrogate_go_crazy_key, surrogate > > > > The place I'm getting stuck is turning off the garage scene from the > > Go Crazy key. When I activate the Go Crazy key, the garage scene > > turns on appropriately. However, when I deactivate the Go Crazy Key, > > the garage scene remains on. mh.log seems to indicate that > > deactivating the Go Crazy key attempts to turn the garage scene on, > > rather than off, which doesn't make any sense to me. What could be > > causing this? > > Try proper casing; if that doesn't work, then I'll dive deeper. If it > does work, I'll try to find the missing lcase conversion. > > Gregg > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ________________________________________________________ > To unsubscribe from this list, go to: > http://sourceforge.net/mail/?group_id=1365 > > |