New Member
Posts: 7
Registered: ‎10-17-2012

on/off button

Hi All

I have currently set up my Mport with a float switch and a 12vdc relay so when my swimming pool is low the relay kicks in and pumps water in pool until fill then relay kicks off, all is good I can see on my web interface when it is on/off but that s not good enough I want my float sensor to monitor and when low it tells me but the catch is I want the option (icon) to turn it on / off manually

so I need 1 button(icon) to enable or disable the relay and how would I connect the relay

Regards
Spyral
Veteran Member
Posts: 16,762
Registered: ‎06-23-2010
Kudos: 5292
Solutions: 78

Re: on/off button

That's not a problem.
Just setup a rule that sends you a text or email when the float detects low water.
Then you can log in and click the ON button next to the pump relay.
You can then either manually turn it off the same way, or have a rule that turns it off when the float reaches the desired level.
New Member
Posts: 7
Registered: ‎10-17-2012

Re: on/off button

Thankx for the quick response

This is where im getting stuck, how to make the on/off button and to wire the relay to turn on/off with this button
Veteran Member
Posts: 16,762
Registered: ‎06-23-2010
Kudos: 5292
Solutions: 78

Re: on/off button

Stand by.
Veteran Member
Posts: 16,762
Registered: ‎06-23-2010
Kudos: 5292
Solutions: 78

Re: on/off button

Oh sorry, now that I'm back on my laptop I see what you are saying.

You are monitoring when the float kicks on via the mPort, but you want independent control of the float vs the relay.

So, let's start here:

How do you have the float/relay currently hooked up to the mPort?
New Member
Posts: 7
Registered: ‎10-17-2012

Re: on/off button

ok the only way I could get it to work

on the terminal:

I/O sensor
O/A+ relay 12vdc

this was the only way to date to get the sensor to trigger the relay
and monitor the sensor

Im open for suggestions (love the dog food idea)
Veteran Member
Posts: 16,762
Registered: ‎06-23-2010
Kudos: 5292
Solutions: 78

Re: on/off button

OK.. hang on I'm getting confused.

What's currently connected to the mPort? The float sensor AND the relay? Or does the mPort only monitor the float sensor and has nothing to do with the relay currently.
New Member
Posts: 7
Registered: ‎10-17-2012

Re: on/off button

OK.. hang on I'm getting confused.

What's currently connected to the mPort? The float sensor AND the relay? Or does the mPort only monitor the float sensor and has nothing to do with the relay currently.


Sorry trial and error with this current setup

both the sensor and the relay are connected to the mport

the sensor is connected to the I and O on the termial block
then the relay gets it 12vdc pulse from the O and A+ on the same termial block
Veteran Member
Posts: 16,762
Registered: ‎06-23-2010
Kudos: 5292
Solutions: 78

Re: on/off button

So you're using the same terminal block for both the float sensor and the relay?

Good news is we can make this work then....

Curiosity has me asking -- how do you have this working currently though (as in, how are you even reading the value and turning the pump on?) Normally you can only have one device on a port without special configuration.
Veteran Member
Posts: 16,762
Registered: ‎06-23-2010
Kudos: 5292
Solutions: 78

Re: on/off button

Ok,
So you're going to have to connect one item to the terminal block, and one to the RJ45s.

Let's attach the sensor to the first RJ45.


So... run the sensor into pins 1 and 2 of the RJ45 and set it up in mFi controller as an on/off sensor (door sensor).

Then, connect the relay box to the terminal block on O and G as seen here:
wiki.ubnt.com/MFi-Custom_Sensors#Simple_External_Relay

You can now control the relay independent from the sensor.
New Member
Posts: 7
Registered: ‎10-17-2012

Re: on/off button

Ok,
So you're going to have to connect one item to the terminal block, and one to the RJ45s.

Let's attach the sensor to the first RJ45.


So... run the sensor into pins 1 and 2 of the RJ45 and set it up in mFi controller as an on/off sensor (door sensor).

Then, connect the relay box to the terminal block on O and G as seen here:
wiki.ubnt.com/MFi-Custom_Sensors#Simple_External_Relay

You can now control the relay independent from the sensor.


ok done the Rj45 to sensor working great
now the relay:
"" : {
"desc" : "",
"digital" : true,
"rj45_v1" : true,
"tblock_v1" : true,
"do_volt0" : 12,
"rep_input0" : 1,
"input_tag0" : "",
"default_tag" : "",
"unit0" : "closed unit/open unit",
"inversion0": true
}
ok 2 things

and if I use the above will it give the on/off button
Veteran Member
Posts: 16,762
Registered: ‎06-23-2010
Kudos: 5292
Solutions: 78

Re: on/off button

I honestly don't know what the above will give you.

Just start out simple. Make it an output of either 5, 12, or 24 volts (whatever the relay uses). You shouldn't need to build a custom file for just a relay.
New Member
Posts: 7
Registered: ‎10-17-2012

Re: on/off button

I honestly don't know what the above will give you.

Just start out simple. Make it an output of either 5, 12, or 24 volts (whatever the relay uses). You shouldn't need to build a custom file for just a relay.


Hi Thank you so much IOU a beer

well now my pool is working

thank you again keep me up to date with the dog food feeder
Veteran Member
Posts: 16,762
Registered: ‎06-23-2010
Kudos: 5292
Solutions: 78

Re: on/off button

Will do!

And you are welcome.