Foxx Project Water Sensor on Amazon

I know I’m hoping maplins sell all their stock of cheap now lol
My water sensors arrived this morning which I’m surprised at with all the snow here :slight_smile:
Which device handler do you use for it I’ve not got round to installing it yet.

Steve just use the standard handler - it will find it when you join it to ST
The only thing I have done is change a few handlers so it says things like on/off instead of wet/dry depending what I use it for.

Cheers yeah set it up earlier no problems.
What other things can you think of to use them for ?
I like how they are AAA batteries should last a lot longer I’m guessing :slight_smile:
I’ve just looked on maplins and they have 1 to collect for a fiver lol
Can’t be bothered though it’s 30 min drive to my nearest.

Brilliant Find Cobra. Thanks for sharing. So basically if I cut the 2 wires off, I have a dry contact sensor right?.

I have a use case for a 24v level sensor to monitor salt level in a water softener I have. If I wire my sensor into a 24v relay I can use the dry output from the relay to switch the water sensor.

I’ll see what deals I can get online for them!

Would you mind sharing your changes for on/off DTH?

I don’t want mine to show up wet/dry, but going to use it for on/off.


This is how I use some of them
I just put a relay across the two wires
Two important things to note though…

If you use a N/C relay the batteries might last 3 days if you are lucky.
These are designed to be ‘dry’ most of the time and only occasionally show ‘wet’

With a N/O relay my batteries are lasting 10 months or so.

The second important thing is that you MUST use a dry switch or relay.
ANY kind of voltage connected to the wires will fry them instantly.


There are just a couple of ‘labels’ to change in the DTH
I’ll dig the details out in the morning for you



Look in the DTH for this section:

tiles {
		standardTile("water", "device.water", width: 2, height: 2) {
			state "wet", label: "wet", icon:"st.Weather.weather10", backgroundColor:"#FF0416" 
			state "dry", label: "dry", icon:"st.Weather.weather15", backgroundColor:"#29BA29"

Look for: label: “wet”, and label: “dry”,

Just change these to whatever you want to show in the ‘things’ page
If you change them, then save & publish it should show in the app
(You might need to refresh or close/reopen the app)


Ahhh you are just changing the labels, thought you might be changing its capabilities. I wanted to change mine into a momentary switch. I’ve hardly done any Groovey Programming, only modified a few slightly.

Wanting to pass it onto ActionTiles/WebCoRE as I’ve got mine wired upto a doorbell, so be ideal for using it as a momentary button.

Might have to do some digging into this one, thanks for a quick solution for now :slight_smile:



Thanks for the info. I’ve purchased 2 of these. 2 is still cheaper than 1 Aeotec Dry Contact Sensor so thanks again.

BR Paul.

You could add: capability.switch to the DTH but you would also have to add a couple of methods

Yeh, thats gone straight over my head.

I think I need to get stuck into coding with SmartThings and see what I can do…I’m ok with DOS Commands and Powershell…not so much Groovy lol

If you look at the device handler for Xiaomi buttons you could copy the code over for the button into this device handler.

Thanks again for the heads up with these sensors.

Have mine working great as a dry contact sensor with a 24v sensor and relay.

1 Like


I use most of mine in this way… don’t think I’ve got one working as a leak sensor… :slight_smile:

Out of interest, what are you using it to control? And which sensor and relay did you use?

I’ve got a few of the Foxx sensors and am looking for some projects to play with. A couple of ideas:

I have some existing indoor alarm sensors that are part of a now-dormant home alarm system - they are still connected and indicate when they detect movement. Here’s one:

I was wondering if I could somehow utilize as a motion sensor and have it available in ST by using an adapted Foxx moisture sensor.

Also, I have a tumble drier that sits inside a cupboard. The drier is pwoered via a smart plug (so I know when its on). Since its a condensing drier, it needs air flow and basically stops working if the cupboard door is closed. I can use a contact sensor to notify when that happens (or even stop the drier) but I quite like the idea of having some sort of ST controlled electromagnet (or alternative) that “pushes” the door open if the tumble drier is on and the door has been closed for (say) >20 seconds.

Where would be the best place to start asking specific questions about those ideas?

My background is software, so I’m just getting into the electrics side of things - installing a few Dimmer 2’s has given me the confidence to spread my experience a bit :slight_smile:

1 Like

For the motion sensor…
You would need to know what output it has…
Some have a n/c or n/o dry contact… This would work with the water sensor cables
Some have a voltage across the output… to use the water sensor with this you would need to use a relay to switch the two wires.

For your dryer, you would need something to ‘push’ the door open
This could be controlled with webcore or a custom app

Have you looked at the wiki for projects?
Maybe someone has already done it


1 Like

I’m using this particular application to detect if the salt in my water softener is low. It then reports back to ST.

I have designed a custom HMI for my house in codesys (PLC software) running on a raspberry pi. All the device data from SmartThings is used in my application based on the Open Dash API.

See the link below to my project post:

I can design a status on one of my screens for the water softener based on this dry contact and alarm on my HMI/announce over LANNouncer when the salt is low. Here’s 2 pics of the sensor installed.

I suspect the output of that motion sensor has a 12v output that reports back to the original alarm panel.

Like Cobra says, if you can confirm this, you could just wire this to the A1 , A2 terminals of a simple relay and wire the NO output to your moisture sensors.

Thanks - i’ll find some time to have a look behind the sensor with my recently acquired multimeter.

If i don’t respond back to this thread within the next week or so, it was 240V and I’ve killed myself :open_mouth: