Jump to content

Recommended Posts

Posted (edited)

Humans !

 

I’ve got a dry contact float switch . Works as it should . Stuck my meter on it for continuity test - all good .

In Home assistant though ( via a Shelly uni ) it ‘latches ‘ I.e stays ‘on’ even when float physically reset .

Chat ( my new best mate ) warbles on about a pull up resistor . This correct ? . If correct how do I know what value to use ?

 

cheers peeps 

Edited by Pocster
Posted

If it's an active-high circuit. ie, when voltage is present home assistant reads 'on' then wouldn't a pull-down resistor be needed? ie, there is some stray signal pulling the signal up which you want to override.

 

Would have thought a 10k resistor would be a better starting point than 1M

  • Like 1
Posted
4 minutes ago, -rick- said:

If it's an active-high circuit. ie, when voltage is present home assistant reads 'on' then wouldn't a pull-down resistor be needed? ie, there is some stray signal pulling the signal up which you want to override.

 

Would have thought a 10k resistor would be a better starting point than 1M

But why is it needed ?

When the float is off - it’s fine .

Activate float , Shelly uni shows ‘closed’ on dry contact . Which is correct . Why doesn’t resetting the float ( open circuit again ) not cause Shelly uni to see that ? as it’s a dry contact .

Posted

Show us the circuit.

 

Or just experiment.  Start with 100K, measure the voltage it pulls up to when open.  If that is nowhere near what it is trying to pull up to, try a bit lower.

  • Like 1
Posted
9 minutes ago, Pocster said:

But why is it needed ?

When the float is off - it’s fine .

Activate float , Shelly uni shows ‘closed’ on dry contact . Which is correct . Why doesn’t resetting the float ( open circuit again ) not cause Shelly uni to see that ? as it’s a dry contact .

Have you got this switch connected via a relatively long wire? (Significantly more than the shelly was designed for - which I think is very short wires)

 

Wire is probably picking up  small current from somewhere thats not enough to change the shellys state but enough to hold the switch high once triggered (at least for a time - if you wait long enough it might reset).

 

If a resistor works then you can play with the wiring and see if you can fix it.

  • Like 1
Posted (edited)
15 minutes ago, -rick- said:

Have you got this switch connected via a relatively long wire? (Significantly more than the shelly was designed for - which I think is very short wires)

 

Wire is probably picking up  small current from somewhere thats not enough to change the shellys state but enough to hold the switch high once triggered (at least for a time - if you wait long enough it might reset).

 

If a resistor works then you can play with the wiring and see if you can fix it.

Nah . Wire on float is 20cm - but will need to be much longer in real use e.g 3meters .

Guess I need to wire it with ‘real world’ wire lengths aswell to test .

I could get around this with software I.e switch triggers , alarm goes off , then resets after a minute ; switch as latched on won’t trigger it again . So a manual reset required - probably a good idea after a critical flood event has occurred .

Edited by Pocster
Posted

Alternatively the switch might just leak a bit of current even though its off. Measure the resistance of the switch in both on and off states with nothing else connected.

  • Like 1
Posted (edited)
23 hours ago, Pocster said:

In Home assistant though ( via a Shelly uni )

 

If the float switch is essentially just an un powered switch with two wires I believe it should be connected to pin 7 (or 8 ) and VCC (pin 1)... 

 

Screenshot_20250815-154618_AdobeAcrobat.thumb.jpg.0d0c835ad6129182c023cb425db4280f.jpg

Edited by Temp
  • Like 1
Posted
16 minutes ago, Temp said:

 

If the float switch is essentially just an un powered switch with two wires I believe it should be connected to pin 7 (or 8 ) and VCC (pin 1)... 

 

Screenshot_20250815-154618_AdobeAcrobat.thumb.jpg.0d0c835ad6129182c023cb425db4280f.jpg

Hmmmmm

Not pin 7/8 and gnd ?

Posted (edited)
37 minutes ago, Pocster said:

Hmmmmm

Not pin 7/8 and gnd ?

 

Not if you follow that diagram. One side of the switch is shown connected to pin 1 L. (Sorry I called it VCC earlier.)

 

However that assumes the float switch is literally just that, a switch. It may not work if the float switch is a powered device.

 

Sorry for editing this post a lot. I'm waiting for a train and hate typing on my phone.

Edited by Temp
Posted (edited)
15 minutes ago, Temp said:

 

Not if you follow that diagram. One side of the switch is shown connected to pin 1 L. (Sorry I called it VCC earlier.)

 

However that assumes the float switch is literally just that, a switch. It may not work if the float switch is a powered.

Yeah it is just an open or closed circuit ( the switch ) . Been fiddling and am indeed using pin 9 and pin 7 gnd and I think it works .

 

Just noticed your diagram is different . Also just noticed I have the Shelly uni plus - so that could be the confusion 

Edited by Pocster
Posted
23 hours ago, Alan Ambrose said:

maybe a pull-down resistor. 2.2K ohms is standard for a few interfaces. Not critical - at 3.3V that's 1.1 mA.

Pull up / pull down will depend on the internals of the shelly. I haven't looked but I would expect some sort of opto isolation on the input for safety so could be leaky either way a dry contact will be active in someway or other on the inside!

  • Like 1
Posted
On 15/08/2025 at 16:50, Pocster said:

Yeah it is just an open or closed circuit ( the switch ) . Been fiddling and am indeed using pin 9 and pin 7 gnd and I think it works .

 

Just noticed your diagram is different . Also just noticed I have the Shelly uni plus - so that could be the confusion 

 

Yes the "plus" is different. I found this circuit for the plus which shows switch between 9 or 10 and GND pin 7. No pull up resistor shown.

 

Screenshot_20250816-202224_Chrome.thumb.jpg.b46ca921edeb035b4f203eee6817e142.jpg

Posted

Google AI said..

 
Quote

 

The Shelly Uni Plus does not require an external pull-up resistor for its digital inputs as it has a built-in pull-up resistor, according to the Shelly community. The digital inputs are "active low", meaning they are pulled high by the internal resistor and pulled low when activated by a small current (typically 36μA) flowing from the input pin to ground, according to the Shelly forum. 
 
Explanation:
  • .
    The Shelly Uni Plus has an internal pull-up resistor on its digital input pins. This means that when no external signal is connected, the input pin is automatically pulled high (to a voltage level that indicates a logical "1").
  • .
    The digital inputs are designed to be "active low," meaning a signal is considered active (or triggered) when it is pulled low (to ground).
  • .
    Because of the built-in pull-up, you don't need to add an external resistor to pull the input high. You can directly connect your sensor or switch between the input pin and ground.

 

  •  
  • Like 1
Posted (edited)

When you say the float is "ON"... Is its internal switch closed (conducting) or open circuit?  If ON corresponds to open circuit then there is another possibility...

 

Switch and relay contacts can have a MINIMUM switching current for reliable operation. Switches designed for mains voltage or currents in Amps don't always switch currents of uA reliably. It's to do with the materials the contacts are made of and any plating like gold or silver.

 

This could only be the cause if ON corresponds to open circuit. 

Edited by Temp

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...