[mh] Weeder users?

H Plato <[email protected]> Tue, 22 Aug 2023 12:35:33 -0600
Newsgroups gmane.comp.misc.misterhouse.user
Message-ID <[email protected]>
I use Insteon IOlincs to sense and control my garage doors. They are also a bit unreliable, I had to disconnect one of the contacts from the opener as it was opening at night, and the sensors are missing about 1 in 10 open/close events.

I’ve run parallel wires to the magnetic open/close sensors to my weeder, and that seems to be more robust. However, it was a real challenge getting a few issues ironed out.

Looking at the code samples, it recommends initializing the weeder ports every night. This worked well for a single Serial_Item object, however when I added more, those objects were stuck at init. It seems like sending all the inits in one loop causes problems. I’ve been able to successfully reset all the ports using set_with_timer:

if ($New_Day) {
	    set_with_timer $front_doorbell_button 'init',1;
	    set_with_timer $back_doorbell_button 'init', 2;
	    set_with_timer $garage_door_S1 'init', 3;
	    set_with_timer $garage_door_S2 'init', 4; 
	    set_with_timer $garage_door_S3 'init', 5;
	    set_with_timer $garage_door_S4 'init', 6;
}

So, here are my issues. I’m hoping that someone with some weeder experience might be able to help spot something I’m doing wrong

1. I have $garage_door_S1 and $garage_door_S3 states set to open and close, however when the init happens, for whatever reason they come back as on and off. I used to have them on and off, but recently changed the code to be open and closed. I can’t see anywhere else in the code, or in Serial_Item.pm where something would be set to ON or OFF.

$garage_door_S1 = new Serial_Item( 'AEH', 'open', 'weeder' );
$garage_door_S1->add( 'AEL', 'closed',     'weeder' );
$garage_door_S1->add( 'ARE', 'read',  'weeder' );
$garage_door_S1->add( 'ASE', 'init',  'weeder' );

$garage_door_S3 = new Serial_Item( 'AGH', 'open', 'weeder' );
$garage_door_S3->add( 'AGL', 'closed',     'weeder' );
$garage_door_S3->add( 'ARG', 'read',  'weeder' );
$garage_door_S3->add( 'ASG', 'init',  'weeder' );

If I press the read button on the web interface nothing happens. However if the door opens or closes, it gets set to the proper state. I could put in a line that if the state is on then turn it to open, but that seems like a kludge and I might not have something properly configured.

2. I want to wire the contacts of my opener to the weeder so I can send it a control signal. I could do this with the IOlinc to close a contact. I _think) it would be setting the port to low for a second, but would be great to hear if someone has done this:

$garage_door_S2 = new Serial_Item( 'AIH', ‘inactive', 'weeder' );
$garage_door_S2->add( 'AIL', ‘active',     'weeder' );
$garage_door_S2->add( 'ALI1000', ’toggle',     'weeder' );
$garage_door_S2->add( 'ARI', 'read',  'weeder' );

3. I use a proxy for my W800 for wireless motion sensors. It’s been pretty good. Could having the weeder serial and insteon serial in the same instance be adding to the problems? Would another proxy instance be a better solution?




________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users