I love ESPHome. The declarative language makes it fun and easy to do so many little tasks like this. Used with Home Assistant it makes it easy to create graphs of everything. Do I NEED to know how much water my tree consumes? No, but I like seeing it anyway!<p>When controlling physical systems I try to limit the damage they can do with simple interlocks. For instance, the relay I added to control my central heat is in series with a conventional thermostat which is set for a few degrees above pleasant.<p>Likewise, you can splice a float switch in line with the pump's power cable, positioned so it will cut off power if the water level nears the top of the tree stand. This will prevent the flood when the software decides to rebel against you.
A number of years ago I set up a siphon tube running into our Christmas tree stand from a nearby bucket. The bucket had a false—gift wrapped box over it to hide it. Through some empirical testing I found the right water height for the stand and marked it with tape.<p>I wanted to make an electronic solution, but I think this fared better than whatever code I could write.
Also made one for this year. My particular challenge is that we need a heavy-duty tree stand to account for feline perturbations. This means the water capacity is pitiful (0.5 litres, perhaps). Also there's not a lot of room for float switches.<p>My design has an optical water level sensor and a cheap peristaltic pump, plus an ESP8266 for sanity ("if on for more than 5 mins, sound the alarm").<p>Sensor: <a href="https://a.aliexpress.com/_mtzF1L6" rel="nofollow noreferrer">https://a.aliexpress.com/_mtzF1L6</a>
Pump: <a href="https://a.aliexpress.com/_mrGsfVO" rel="nofollow noreferrer">https://a.aliexpress.com/_mrGsfVO</a>
It's a cool project. If you don't need a ton of capacity what I did in the past is used a bucket and just some rubber tubing. Once you pull the water through, it will auto-siphon to be the same level as the bucket. Lasted me a week while I was in san diego! :)
I bought one of these off Amazon a few years ago, called the HoHoHoH20.<p><a href="https://www.amazon.com/HoHoHoH2o-Automatic-Christmas-Watering-Refillable/dp/B07ZWF6NQ7" rel="nofollow noreferrer">https://www.amazon.com/HoHoHoH2o-Automatic-Christmas-Waterin...</a>
I built something like this but found that the electric arduino water sensor quickly became corroded after a week and a half and ended up replacing it with a float switch.
I love this. Great work!<p>I’ve thought about doing the same thing for years. But in my experience, those cheap capacitive sensors fail quickly. Might be worse when the water gets all sappy or filled with needles.<p>What sort of fail safe do you have for when the sensor becomes inaccurate?
Love the project! One thing that would give me the Krepps is to have a 10 liter water bucket next to a mains power outlet. Just thinking about all kinds of ways Murphy could be right here.<p>Edit: I’m from
Europe so for me that feels twice as dangerous. (Don’t know if double the voltage means double the danger though)
A lazier version for the rest of us would be measuring how much time it takes to replenish the water once a day, and then turn on the pump for that amount of time each day.<p>You can do this with a IFTTT routine and a smart plug.
The tech is interesting, but what I like even more is that it may increase the chances of survival of the tree if the root ball hasn't been cut!<p>I hope there will be an effort to collect and replant Christmas trees, as the cultural practice of cutting down tree and letting them die slowly in front of us (just for our seasonal enjoyment!) strikes me as barbaric.