Supplies:
Linktap G2S: https://www.amazon.com/gp/product/B08YVS32GV/ref=ppx_yo_dt_b_asin_title_o05_s01?ie=UTF8&psc=1
Float switch: https://www.amazon.com/gp/product/B08B4JQHN9/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1
Aqara open/close switch: https://www.amazon.com/Aqara-MCCGQ11LM-Window-Sensor-White/dp/B07D37VDM3/ref=sr_1_1_sspa?crid=E4N127EJJYFY&keywords=aqara+door+sensor&qid=1659881487&sprefix=aqara+door%2Caps%2C123&sr=8-1-spons&psc=1
1/2 PVC: Any local hardware store
We have a water fountain at the back of our yard. I like the sound of flowing water, so I like it on. But found that in hot summer months due to evaporation and splash, water would get low within a couple hours and then we’d have to go out and refill it. Aint nobody got time for that when you got HA!
So I added a float switch that is tied to an aqara open/close sensor to tell HA when the waters low. Thanks to @parrel for the idea. See his original post here for a rainfall sensor, thats the same way I wired the float switch ☔ DIY Zigbee rain gauge. Then added a Linktap water valve and ran PVC pipe to it. Finally a Minoston outdoor plug.
So when water gets low based on float switch, linktap opens up and water flows thru PVC to fill fountain. Once float switch closes, linktap shuts off.
I have safeties in place to close the linktap if its on for more than 30 sec. And even if that linktap fails, I have another linktap upstream that can close as well.
Shot a little video showing the setup and the node red flows.