Re: [mh] Weeder users?

H Plato <[email protected]> Sat, 26 Aug 2023 22:30:09 -0600
Newsgroups gmane.comp.misc.misterhouse.user
Message-ID <[email protected]>
Thanks Serge, I think my problem for outputs is that the weeder IO board I have outputs voltage, so I either need relays, or to pick up the weedtech relay board.

I noticed that their cases are sold out and not for sale anymore. Does anyone on the list have a CASE-SM that they don’t need and want to sell? I’ll have to find a DB9 serial cable and a WTSSR-M

> On Aug 22, 2023, at 6:36 PM, Serge Martel (smartel) <[email protected]> wrote:
> 
> I moved away from MH for a while now, so it's not so fresh in my memory, but I used to have a weeder board, it was very solid and reliable, I dived in my code file and found this, for my inputs, as you can see I chaged the default On, OFF to ferme and ouvert, or arme and desarme and it worked.
> 
> # Digital  items
> $portes_garage       = new  Serial_Item('AAH', 'ferme', 'weeder');        #A
> $portes_garage      -> add             ('AAL', 'ouvert', 'weeder');
> $portes_garage      -> add             ('ASA', 'init', 'weeder');
> $portes_garage      -> add             ('ARA', 'read', 'weeder');
> 
> 
> $alarme_status           = new  Serial_Item('ABH', 'desarme', 'weeder');        #B
> $alarme_status           -> add             ('ABL','arme', 'weeder');
> $alarme_status           -> add             ('ASB', 'init', 'weeder');
> $alarme_status           -> add             ('ARB', 'read', 'weeder');
> 
> 
> 
> and this for my outputs:
> 
> $AFX_Arm      = new Serial_Item('AHN', ON      , 'weeder');         #N
> $AFX_Arm     -> add     
> ('ALN', OFF     , 'weeder');
> $AFX_Arm     -> add     
> ('ARN', 'status', 'weeder');
> 
> 
> I did not reset every day but on every restart like so:
> 
> 
> $weeder_io_control=new Serial_Item('A!','reset','weeder');
> $start_timer = new Timer;
> 
> if ($Startup or (state_now $weeder_io_control eq 'reset')or $Reload ) {
> 
> net_mail_send to => '[email protected] <mailto:[email protected]>', text =>' MrHouse restarted';
>         print_log " MrHouse restarted";
> 
> set $start_timer 30;
> 
> 
> for my $resetboard2 (
> $portes_garage,
> $alarme_status,
> $mom_unlock_garage,
> $cabanon_status,
> $Alarme_AC_fail,
> $Alarme_Maison,
> $sump_pump_b,
> $bedroom_motion_b,
> $IR_frigo,
> $IR_garage,
> $IR_atelier,
> $IR_poteau) {
> set $resetboard2 'init';
> select(undef, undef, undef, 0.025);
> 
> 
> Hope it helps you, it has been a while I used it, and I am no programmer, so don't expect me to understand everything😊
> 
> Good luck!
> 
> From: H Plato <[email protected] <mailto:[email protected]>>
> Sent: August 22, 2023 2:35:33 PM
> To: misterhouse list
> Subject: [mh] Weeder users?
>  
> 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 <https://lists.sourceforge.net/lists/listinfo/misterhouse-users>

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