DIY Under Sink Lights and Sensors

This post is an information how to use some devices in a non-standart way.

I like to automate everything what is possible. (At this time near everything is already automated. I am running out of ideas what the next project should be.) Anyway, next is a short description of Kitchen Under Sink Automations project. The idea is to present a bit unusual device usage. I have a Delta Fauset already integrated with HE (unfortunately this is cloud-based integration but better than nothing). This Delta Faucet integration is a part of Garbage Disposal automation. The whole idea of disposal automation is to run it only if water is flowing:

  • turn on water;
  • make sure water is running;
  • run disposal for the pre-defined time (6 sec does the job);
  • turn off disposal;
  • turn off water after a short delay (2 sec);

Since Delta API does not provide any feedback on a faucet status the original automation was based on timing assuming the commands to the faucet went through. Being experienced EE I did not like this (everything needs a feedback) and decided to add a water flow sensor. The easiest way was to add this fluid level sensor:

mounted in a very strategic place (right angle drain pipe from garbage disposal):


After very minor sensitivity adjustment sensor detects reliably even very small amount of water in the drain pipe. Feedback for water flow is achieved and automation adjusted accordingly.
The Control/Sensor device is a Shelly RGBW PM device:

https://www.amazon.com/Shelly-Bluetooth-Metering-Automation-Compatible/dp/B0CXN2B9RS/ref=sxin_25_pa_sp_search_thematic_sspa?content-id=amzn1.sym.95e4d6bd-d93f-4ee1-9766-ff64f54d2f71%3Aamzn1.sym.95e4d6bd-d93f-4ee1-9766-ff64f54d2f71&crid=X523TNNXTQVU&cv_ct_cx=Shelly%2BPlus%2BRGBW%2BPM&keywords=Shelly%2BPlus%2BRGBW%2BPM&pd_rd_i=B0D87H3FKJ&pd_rd_r=5bb04e7d-040a-40c1-bede-3f6b4fb88884&pd_rd_w=6jehI&pd_rd_wg=kcL6I&pf_rd_p=95e4d6bd-d93f-4ee1-9766-ff64f54d2f71&pf_rd_r=NHNG1V64KFH14M1B5DVY&qid=1742233359&sbo=RZvfv%2F%2FHxDF%2BO5021pAnSA%3D%3D&sprefix=shelly%2Bplus%2Brgbw%2Bpm%2Caps%2C180&sr=1-1-6024b2a3-78e4-4fed-8fed-e1613be3bcce-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9zZWFyY2hfdGhlbWF0aWM&th=1

Surprisingly this device could be configured as 4 completely individual PWM Dimmers, all 4 inputs could be detached and each input could be Digital or Analog.
So, here is how Shelly RGBW PM is used:

  • One PWM Dimmer output controls COB LED Strip for used as under sink light;
  • First Digital Input is used as a sensor for two serially connected magnetic reed sensors (these are used a an cabinet doors open/closed sensors);
  • Second Digital Input is used for water flow sensor. It has NPN Open Drain output which is directly compatible with the Digital Input;
  • Third Analog Input is used as water leak sensor. Water Sensing Cable:
    https://www.amazon.com/dp/B088XMDMFX?ref=ppx_yo2ov_dt_b_fed_asin_title&th=1
    is directly connected to the Analog Input. When cable is Dry the reported Analog Level is 0. But even a very small drop of water on a cable reports Analog Level from 10 to 95 (depend on how wet is cable). So, this is a very sensitive cable-based water leak sensor.

The RGBW PM device still has 3 unused PWM Outputs and 1 Input (Digital or Analog). I am thinking about adding 2 liner actuators for automatic opening/closing cabinets doors and a Button (or even MS) to control actuators.

1 Like

Interesting. This would annoy me, but I understand it might be helpful in your home.

Nice find on the water sensor.

I second the good find on the level sensor - I was looking for something like this back when... Looking for ideas to improve fish tank ATO (Auto Top Off) - :speech_balloon: Lounge - Hubitat and ended up using a magnetic float... ultimately I retired that setup because I'm using RedSea smart ATO now.