From: Garry D. <gar...@sh...> - 2012-11-28 04:12:36
|
Thanks very much Jim. That's exactly what I was looking for. Garry -----Original Message----- From: Jim Duda [mailto:ji...@du...] Sent: Tuesday, Nov 27, 2012 6:46 PM To: The main list for the MisterHouse home automation program Subject: Re: [mh] Insteon IOLinc Definition in mht file for new misterhousegithub repository On 11/27/2012 08:04 PM, Garry Doucette wrote: > Hi Guys > > I was happily running the SVN Insteon branch and I just converted over > to MH main repository using GIT following Lieven's instructions. > > I'm happy to report that there were no real issues and I'm back up and > running. I hope I can help with some testing as time goes by. > > This leads me to a question I haven't posed already since I knew that > support in MH for some Insteon devices is limited. > > I recently added new ioLincs, a kepadlinc and magnetic sensors for > control of my garage doors and all is working very well. With the way > the ioLincs work with the keypadLinc and sensors when a garage door is > open the button light on the keypadLinc is lit and when closed the light is off. > > Is there any way that I can get MH to show me the state of my garage > doors (open or closed) either by monitoring the sensor in the ioLinc > or reflecting the state of the button in the keypadLinc? > I use this for my garage door, using the IO linc. This method will monitor the I/O linc, not the KeypadLinc. Yor probably just need the my $state = said $garage_door code snipet. insteon.mht: INSTEON_SWITCHLINC, 17.77.D2:01, garage_door #, iolincs, PLM,0007 # v1.1 iolinc User code: $g_GarageState = new Generic_Item; $v_garage = new Voice_Cmd("[open,shut] the garage door"); if (my $state = said $v_garage) { if ($state eq $g_GarageState->state( ) ) { speak "the garage door is already $state"; } else { set_with_timer $garage_door ON, 60, OFF; } } if (my $state = said $garage_door) { print_log "garage_door state: $state"; if ($state =~ /off/) { if ($g_GarageState->state( ) eq 'open') { speak (text=> "notice: the garage door just closed"); } $g_GarageState->set('shut'); } elsif ($state =~ /on/) { if ($g_GarageState->state( ) eq 'shut') { speak (text=> "notice: the garage door just opened"); } $g_GarageState->set('open'); } } Regards, Jim ---------------------------------------------------------------------------- -- Keep yourself connected to Go Parallel: INSIGHTS What's next for parallel hardware, programming and related areas? Interviews and blogs by thought leaders keep you ahead of the curve. http://goparallel.sourceforge.net ________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 |