From: MattBurgoon <mh...@te...> - 2009-04-08 14:19:57
|
Most of my code is geared towards motion activated anti-cat in my yard at the moment. I haven't had much time lately, new job, finishing beer sculpture, etc, but now that we're heading into spring and summer, I will be working on taking the code Gregg had forwarded me and doing the bit that will actually water the yard. In the meantime, I know there's a couple of examples in the MH tree that i've seen for some basic stuff. I'm hoping some time this weekend and will let everyone know how it goes. -Matt Mickey Argo-2 wrote: > > Matt, > > Do you have some sample code that you are using for your sprinklers? > > Mickey Argo > > -----Original Message----- > From: MattBurgoon [mailto:mh...@te...] > Sent: Sunday, February 08, 2009 7:45 PM > To: mis...@li... > Subject: Re: [mh] insteon ezrain & controlling via web UI > > > I do apologize for the late response. It's been a crappy few days. > > I'll run through a number of tests with the log so we can nail down which > bits are which. > > everything is off > 02/08/09 05:32:28 PM [Insteon_Device] > $sprinkler::set(sprinkler_control:02, ) > 02/08/09 05:32:29 PM [Insteon_PLM] Parsing serial data: > 02620174db0f440206 > 02/08/09 05:32:29 PM [Insteon_PLM] Parsing serial data: > 02500174db0eda68274401 > 02/08/09 05:32:29 PM [Insteon_PLM] Processing message for > $sprinkler > > 02/08/09 05:32:29 PM [Insteon_Device] received command/state > acknowledge from $sprinkler: sprinkler_control and data: 01 > > turn zone 00 on > 02/08/09 05:32:47 PM [Insteon_Device] > $sprinkler::set(sprinkler_valve_on:00, ) > 02/08/09 05:32:47 PM [Insteon_PLM] Parsing serial data: > 02620174db0f400006 > 02/08/09 05:32:48 PM [Insteon_PLM] Parsing serial data: > 02500174db0eda68274080 > 02/08/09 05:32:48 PM [Insteon_PLM] Processing message for > $sprinkler > > 02/08/09 05:32:48 PM [Insteon_Device] received command/state > acknowledge from $sprinkler: sprinkler_valve_on and data: 80 > > check status while 00 is still on > 02/08/09 05:33:21 PM [Insteon_Device] > $sprinkler::set(sprinkler_control:02, ) > 02/08/09 05:33:21 PM [Insteon_PLM] Parsing serial data: > 02620174db0f440206 > 02/08/09 05:33:22 PM [Insteon_PLM] Parsing serial data: > 02500174db0eda68274480 > 02/08/09 05:33:22 PM [Insteon_PLM] Processing message for > $sprinkler > > 02/08/09 05:33:22 PM [Insteon_Device] received command/state > acknowledge from $sprinkler: sprinkler_control and data: 80 > > turn zone 00 off > 02/08/09 05:34:05 PM [Insteon_Device] > $sprinkler::set(sprinkler_valve_off:00, ) > 02/08/09 05:34:05 PM [Insteon_PLM] Parsing serial data: > 02620174db0f410006 > 02/08/09 05:34:06 PM [Insteon_PLM] Parsing serial data: > 02500174db0eda68274100 > 02/08/09 05:34:06 PM [Insteon_PLM] Processing message for > $sprinkler > > 02/08/09 05:34:06 PM [Insteon_Device] received command/state > acknowledge from $sprinkler: sprinkler_valve_off and data: 00 > > check status again > 02/08/09 05:34:19 PM [Insteon_Device] > $sprinkler::set(sprinkler_control:02, ) > 02/08/09 05:34:19 PM [Insteon_PLM] Parsing serial data: > 02620174db0f4402 > 02/08/09 05:34:19 PM [Insteon_PLM] Prepending prior data fragment: > 02620174db0f4402 > 02/08/09 05:34:19 PM [Insteon_PLM] Parsing serial data: > 02620174db0f440206 > 02/08/09 05:34:20 PM [Insteon_PLM] Parsing serial data: > 02500174db0eda68 > 02/08/09 05:34:20 PM [Insteon_PLM] Prepending prior data fragment: > 02500174db0eda68 > 02/08/09 05:34:20 PM [Insteon_PLM] Parsing serial data: > 02500174db0eda68274400 > 02/08/09 05:34:20 PM [Insteon_PLM] Processing message for > $sprinkler > > 02/08/09 05:34:20 PM [Insteon_Device] received command/state > acknowledge from $sprinkler: sprinkler_control and data: 00 > > again, because I got extra stuff in that last batch > 02/08/09 05:34:31 PM [Insteon_Device] > $sprinkler::set(sprinkler_control:02, ) > 02/08/09 05:34:31 PM [Insteon_PLM] Parsing serial data: > 02620174db0f440206 > 02/08/09 05:34:31 PM [Insteon_PLM] Parsing serial data: > 02500174db0eda68274400 > 02/08/09 05:34:31 PM [Insteon_PLM] Processing message for > $sprinkler > > 02/08/09 05:34:31 PM [Insteon_Device] received command/state > acknowledge from $sprinkler: sprinkler_control and data: 00 > > turn zone 01 on > 02/08/09 05:35:02 PM [Insteon_Device] > $sprinkler::set(sprinkler_valve_on:01, ) > 02/08/09 05:35:03 PM [Insteon_PLM] Parsing serial data: > 02620174db0f400106 > 02/08/09 05:35:03 PM [Insteon_PLM] Parsing serial data: > 02500174db0eda68274081 > 02/08/09 05:35:03 PM [Insteon_PLM] Processing message for > $sprinkler > > 02/08/09 05:35:03 PM [Insteon_Device] received command/state > acknowledge from $sprinkler: sprinkler_valve_on and data: 81 > > check status with 01 on > 02/08/09 05:35:17 PM [Insteon_Device] > $sprinkler::set(sprinkler_control:02, ) > 02/08/09 05:35:17 PM [Insteon_PLM] Parsing serial data: > 02620174db0f4402 > 02/08/09 05:35:17 PM [Insteon_PLM] Prepending prior data fragment: > 02620174db0f4402 > 02/08/09 05:35:17 PM [Insteon_PLM] Parsing serial data: > 02620174db0f440206 > 02/08/09 05:35:18 PM [Insteon_PLM] Parsing serial data: > 02500174db0eda68234481 > 02/08/09 05:35:18 PM [Insteon_PLM] Processing message for > $sprinkler > > 02/08/09 05:35:18 PM [Insteon_Device] received command/state > acknowledge from $sprinkler: sprinkler_control and data: 81 > > turn zone 01 off > 02/08/09 05:35:40 PM [Insteon_Device] > $sprinkler::set(sprinkler_valve_off:01, ) > 02/08/09 05:35:40 PM [Insteon_PLM] Parsing serial data: > 02620174db0f410106 > 02/08/09 05:35:40 PM [Insteon_PLM] Parsing serial data: > 02500174db0eda68274101 > 02/08/09 05:35:40 PM [Insteon_PLM] Processing message for > $sprinkler > > 02/08/09 05:35:40 PM [Insteon_Device] received command/state > acknowledge from $sprinkler: sprinkler_valve_off and data: 01 > > check status again with everything off > 02/08/09 05:36:01 PM [Insteon_Device] > $sprinkler::set(sprinkler_control:02, ) > 02/08/09 05:36:01 PM [Insteon_PLM] Parsing serial data: > 02620174db0f440206 > 02/08/09 05:36:01 PM [Insteon_PLM] Parsing serial data: > 02500174db0eda68274401 > 02/08/09 05:36:01 PM [Insteon_PLM] Processing message for > $sprinkler > > 02/08/09 05:36:01 PM [Insteon_Device] received command/state > acknowledge from $sprinkler: sprinkler_control and data: 01 > > turn zone 02 on > 02/08/09 05:36:22 PM [Insteon_Device] > $sprinkler::set(sprinkler_valve_on:02, ) > 02/08/09 05:36:22 PM [Insteon_PLM] Parsing serial data: > 02620174db0f400206 > 02/08/09 05:36:22 PM [Insteon_PLM] Parsing serial data: > 02500174db0eda68234082 > 02/08/09 05:36:22 PM [Insteon_PLM] Processing message for > $sprinkler > > 02/08/09 05:36:22 PM [Insteon_Device] received command/state > acknowledge from $sprinkler: sprinkler_valve_on and data: 82 > > check status with 02 on > 02/08/09 05:36:34 PM [Insteon_Device] > $sprinkler::set(sprinkler_control:02, ) > 02/08/09 05:36:34 PM [Insteon_PLM] Parsing serial data: 02 > > 02/08/09 05:36:34 PM [Insteon_PLM] Prepending prior data fragment: > 02 > 02/08/09 05:36:34 PM [Insteon_PLM] Parsing serial data: > 02620174db0f440206 > 02/08/09 05:36:34 PM [Insteon_PLM] Parsing serial data: > 02500174db0eda68274482 > 02/08/09 05:36:34 PM [Insteon_PLM] Processing message for > $sprinkler > > 02/08/09 05:36:34 PM [Insteon_Device] received command/state > acknowledge from $sprinkler: sprinkler_control and data: 82 > > turn 02 off > 02/08/09 05:36:52 PM [Insteon_Device] > $sprinkler::set(sprinkler_valve_off:02, ) > 02/08/09 05:36:52 PM [Insteon_PLM] Parsing serial data: > 02620174db0f410206 > 02/08/09 05:36:53 PM [Insteon_PLM] Parsing serial data: > 02500174db0eda68274102 > 02/08/09 05:36:53 PM [Insteon_PLM] Processing message for > $sprinkler > > 02/08/09 05:36:53 PM [Insteon_Device] received command/state > acknowledge from $sprinkler: sprinkler_valve_off and data: 02 > > check status with zones off > 02/08/09 05:37:00 PM: Saving object states ... done > 02/08/09 05:37:05 PM [Insteon_Device] > $sprinkler::set(sprinkler_control:02, ) > 02/08/09 05:37:06 PM [Insteon_PLM] Parsing serial data: > 02620174db0f440206 > 02/08/09 05:37:06 PM [Insteon_PLM] Parsing serial data: > 02500174db0eda68274402 > 02/08/09 05:37:06 PM [Insteon_PLM] Processing message for > $sprinkler > > 02/08/09 05:37:06 PM [Insteon_Device] received command/state > acknowledge from $sprinkler: sprinkler_control and data: 02 > > > It looks like we don't need to get too crazy with checking bits, for the > first character in the octet is 8 for on, 0 for off, the second character > is > the already decoded for us zone (starting from 0) of the last zone acted > on > (so 07 will mean zone 7 was the last one turned on, but no zones are > currently getting juice.) > > I also saw your commend regarding the thermostat adaptor showing a way to > extend the insteon code, is the trunk updated with it? I'll go ahead and > update my tree and check out the code to help extend the ezflora device. > > The email that receives notifications is an alias to my personal email > account, so it's safe to use that. In the case of spam, that alias is > removed and whatever was using it updated with a new one. > > Cheers > > > > Gregg Liming wrote: >> >> MattBurgoon wrote: >> >>> when clicked on, the debug shows: >>> >>> 02/04/09 09:32:38 AM [Insteon_Device] >>> $sprinkler::set(sprinkler_control:02, >>> ) >>> 02/04/09 09:32:38 AM [Insteon_PLM] Parsing serial data: >>> 02620174db0f440206 >>> 02/04/09 09:32:38 AM [Insteon_PLM] Parsing serial data: >>> 02500174db0eda68274407 >>> _xlate_insteon_mh 0174db0eda68274407 >>> 02/04/09 09:32:38 AM [Insteon_PLM] Processing message for $sprinkler >>> 02/04/09 09:32:38 AM [Insteon_Device] received command/state >>> acknowledge from $sprinkler: sprinkler_control and data: 07 >> >> Can you confirm that the active valve was 8 and that it was off? I >> need to confirm bit ordering. If not, then can you set a known valve >> to on and then rerun the above? >> >> I definitely think that a separate Insteon_Ezflora.pm will be required >> in order for you to do what you want. I can begin coding up >> something, but will need you to test. Please send me a message >> off-list if I should send to an account other than what you are >> receiving your list messages. >> >> Gregg >> >> ---------------------------------------------------------------------- >> -------- Create and Deploy Rich Internet Apps outside the browser with >> Adobe(R)AIR(TM) >> software. With Adobe AIR, Ajax developers can use existing skills and >> code to build responsive, highly engaging applications that combine >> the power of local resources and data with the reach of the web. >> Download the Adobe AIR SDK and Ajax docs to start building >> applications today-http://p.sf.net/sfu/adobe-com >> ________________________________________________________ >> To unsubscribe from this list, go to: >> http://sourceforge.net/mail/?group_id=1365 >> >> >> > > -- > View this message in context: > http://www.nabble.com/insteon-ezrain---controlling-via-web-UI-tp21741630p219 > 05857.html > Sent from the Misterhouse - User mailing list archive at Nabble.com. > > > ---------------------------------------------------------------------------- > -- > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code > to > build responsive, highly engaging applications that combine the power of > local > resources and data with the reach of the web. Download the Adobe AIR SDK > and > Ajax docs to start building applications > today-http://p.sf.net/sfu/adobe-com > ________________________________________________________ > To unsubscribe from this list, go to: > http://sourceforge.net/mail/?group_id=1365 > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > ________________________________________________________ > To unsubscribe from this list, go to: > http://sourceforge.net/mail/?group_id=1365 > > > -- View this message in context: http://www.nabble.com/insteon-ezrain---controlling-via-web-UI-tp21741630p22951454.html Sent from the Misterhouse - User mailing list archive at Nabble.com. |