Oh yay - just got an email from our sump hole. That was pretty easy.

Using a little $7 Cdn zigbee sensor. I added a little foam collar around it and sat it in the sump-pump hole. I injected a little water in to test, and the automation worked the first try.

Device is probably not intended to be immersed in water, so the foamy should keep it on the surface. The moist environment will prob result in accelerated wear and corrosion though, so may not last long.

#HomeAssistant

@ottaross I have a Z-Wave one that supports an external sensor for sumps. You just have to figure out how to mount it at the appropriate level. 😃

It might be worth looking for something similar for a longer term solution. Currently I have sensors by the hot water tank and another by the laundry drain. Thankfully no sump in this house. 😃

@kaybee335 That sounds appealing. Yeah my little moisture sensor won't be a good for long term usage. I'd ultimately like to see both height of water in the sump, and more interestingly, the on/off cycle log of the pump. Would be great to have a view of its pattern on an annual basis.

@ottaross you should be able to connect the pump to a current/power sensing smart outlet to get what you need for the pump. I have a number of Sonoff S31 outlets programmed with #ESPHome (Tasmota alternative) for this.

I used an M5Stack Atom combined with a ToF ranging sensor (VL53L0X) in my rainbarrel a while ago to monitor levels. I found I needed a float (flat piece of styrofoam) in the water to read distance accurately.

@ottaross found a pic.

Image 1: ToF sensor in upper left, Atom and Temp/hum/etc. sensor in black arms under white deck. Made to 'hook' over edge of rain barrel.

Image 2: mounted on barrel

Image 3: another view mounted on barrel with styrofoam float in bottom of barrel.

Programmed with ESPHome.

@kaybee335 I've got a couple of current sensors on hand already that I'm lining up for pump sensing at some point. Would certainly be quicker to just have a dedicated sensing outlet though.

ESPHome - also on my radar. I've done a fair bit of ESP32 stuff, so shouldn't be too hard to add that to the ecosystem at some point.

Love the Lego rain barrel monitoring! A cool rig!

@ottaross you can integrate ESPHome into homeassistant and do all your development within HA if you choose.

Or you can develop independently on a separate computer. This has the advantage of usually being on a much faster platform than HA and also may be easier for initial serial flashing for cabling reasons.

I tend to start development using my laptop. Once the yaml is stable and seeing infrequent updates it goes over to HA to take advantage of easy OTA updates.

https://esphome.io/guides/getting_started_hassio.html

Getting Started with ESPHome and Home Assistant

Getting Started guide for installing ESPHome Device Builder as a Home Assistant add-on and creating a basic configuration.

ESPHome
@kaybee335 Missed this note yesterday - Thx for the link. Definitely need to play with that!

@ottaross good morning! Today is beautiful. It's much better to spend time outside than here! 😃

IMO (worth exactly what you paid for it), Tasmota is a great 'drop in' open firmware for commercial devices that would otherwise be closed/cloud.

ESPHome is better for 'building out' and creating your own devices or adding functionality to existing ones. The yaml is very similar in structure/model to homeassistant so should be familiar.

They are both great projects and having the choice is awesome.