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!
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.
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.
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.
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").
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 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 also built something along these lines about three years ago and use it every year. I started off with a stainless steel hall effect float switch and it's lasted so far, on its fourth year. I don't have a pump for my water, I use my RO system as a source and a solenoid as a valve. I do use a peristaltic pump to meter out Christmas tree preservative according to the readings from a flow meter on the water side though. It's worked wonderfully, even when changing tree stands.
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.
What sort of fail safe do you have for when the sensor becomes inaccurate?
No fail-safe besides the limit of only running the pump for 10 seconds at a time. I will continue to keep an eye on the data being pumped to Home Assistant and look to add a condition if/when the sensor fails.
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.
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.
You can do this with a IFTTT routine and a smart plug.
An issue with that is that the tree will (at least based on my experience) soak up a variable about of water while it is set up. And in general, it will decrease as time goes on (as the tree dies more and more). If you set up the routine based on the first few days, you will likely end up overflowing.
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!
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.
The trees are planted and farmed specifically to be Christmas trees. If nobody bought them, they wouldn’t be planted in the first place, so the act of cutting down then disposing of a Christmas tree has no net impact to the overall tree population (barring the small amount of Clark Griswolds out there who get their tree from a forest somewhere rather than a Christmas tree farm).
because you can't program a siphon? a siphon isn't going to give you any data that you can then plot on a graph (if that's your kink). also, what kind of Show HN post would a siphon make? You'd just get a bunch of uninspired questions like this.
invalidator|2 years ago
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.
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.
KennyBlanken|2 years ago
johnz|2 years ago
My familiarity with float switches is limited to boats. Any you would recommend for this application?
sircastor|2 years ago
I wanted to make an electronic solution, but I think this fared better than whatever code I could write.
lrasinen|2 years ago
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").
Sensor: https://a.aliexpress.com/_mtzF1L6 Pump: https://a.aliexpress.com/_mrGsfVO
winrid|2 years ago
buildsjets|2 years ago
https://www.amazon.com/HoHoHoH2o-Automatic-Christmas-Waterin...
johnz|2 years ago
33a|2 years ago
gothroach|2 years ago
johnz|2 years ago
ge96|2 years ago
LeafItAlone|2 years ago
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.
What sort of fail safe do you have for when the sensor becomes inaccurate?
johnz|2 years ago
No fail-safe besides the limit of only running the pump for 10 seconds at a time. I will continue to keep an eye on the data being pumped to Home Assistant and look to add a condition if/when the sensor fails.
larusso|2 years ago
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)
ianlevesque|2 years ago
Havoc|2 years ago
moonleay|2 years ago
29athrowaway|2 years ago
You can do this with a IFTTT routine and a smart plug.
LeafItAlone|2 years ago
csdvrx|2 years ago
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.
sgerenser|2 years ago
ge96|2 years ago
snthd|2 years ago
dylan604|2 years ago
kbar13|2 years ago
wferrell|2 years ago
johnz|2 years ago