Page 1
Page 1
Started By
Message

Home Assistant and ESPHome are awesome - Smartifying my chest freezer

Posted on 8/19/21 at 12:38 pm
Posted by Korkstand
Member since Nov 2003
28996 posts
Posted on 8/19/21 at 12:38 pm
Problem
I had a chest freezer that went out a couple weeks ago, it was 5 years old. These things are very cheap, many less than $300, but of course the food loss was more than that. They hold temp pretty well without power or while broken, so I have no idea how long it was busted before we realized things were thawing out.

Freezer alarms are cheap and easy, but also basic, and I wanted something that I could tie into other systems. I also thought that I could detect earlier signs of failure than just monitoring temperature.


Solution
NodeMCU, a couple of sensors, a breadboard (for now), ESPHome, and Home Assistant. I'm not a pro with all this stuff, but I have fiddled with most of it enough that it was all pretty easy. I already had a current transformer on hand, but it outputs a current signal instead of voltage so I had to add a burden resistor. It's also 100amp, so if I were ordering new for this project I would have chosen a different one. However, even though the freezer only draws 1.5 amps, I'm getting pretty good resolution and consistent readings out of this CT.

ESPHome is really easy to use. It's not even programming really, you just write config files and ESPHome generates and flashes the code for you. You can even update it over the air, so once installed you don't have to keep hooking your device up to a computer to make changes. It also integrates really nicely with Home Assistant.


Results so far
I'm getting good readings on freezer temp and current draw. I don't know how accurate the temp probe is in this temp range, nor do I know how accurate the current readings are (I just calibrated it to the freezer nameplate data), but I'm not so much interested in absolute accuracy as I am in how these values change over time.

Temperature over time:



As you can maybe tell, it was working well for most of the night, but then I started fiddling this morning and my quick and dirty wiring came loose. Did a little bit more solid job (though still dirty) and readings are stable again.

Current draw:



You can clearly see when the unit was cooling and when it was not, as well as the big current spikes when the compressor first starts up. I have it taking readings every second, which is far more than I need, so I'll probably turn that down to every few seconds or a minute or something.

Anyway, it runs far more often than I was expecting, but I don't know if that's because it's mostly empty right now, or because I've been opening it a lot, or if my expectations were just wrong. It's running about 2/3 of the time, and at 1.5 amps that's nearly 3 kwh per day, which will cost about $10/month. I was hoping for half that. I will see how it goes as it fills up and I stop messing with it. My calibration could also be wrong and it may be drawing more or less than what is listed on the nameplate, so I will calibrate to a known load when I get a chance.

Basic dashboard card:




Going forward
I definitely need to clean up all the wiring and print an enclosure, but the point of all this was to make it useful. To do that, I will have to write some HA automations to let me know when these values start creeping out of line. My hope is that should this thing start to fail in a few years, I will be able to detect it well ahead of time to save the contents. I can't be sure just yet, but I would think that the runtimes would start creeping up days/weeks leading up to failure. I can also add a second temp probe to monitor the compressor temp, as well as a lid open/close sensor to alert when the kids leave it open after grabbing a popsicle.


Cost
NodeMCU $4
Current transformer $8
Temp probe $2.50
3.5mm stereo jack $0.75
Power adapter $10
Breadboard, misc wiring & components ~$1
3d printed enclosure (future) ~$1

Total BOM $27.25

Keep in mind these are Amazon retail prices, and the costs could easily be cut in half by ordering from overseas.



I'll be busy this afternoon, but maybe tomorrow or over the weekend I will post some photos, diagrams, and/or code if anyone is interested.
Posted by CAD703X
Liberty Island
Member since Jul 2008
86650 posts
Posted on 8/19/21 at 12:41 pm to


you win
Posted by guedeaux
Member since Jan 2008
13714 posts
Posted on 8/19/21 at 2:28 pm to
ESPHome is awesome, and the ESP8266/32 boards are fricking amazing.

I use ESPHhom for my media cabinet (LEDs, temp/humidity, and exhaust fans), solar-powered garden sensors, all analog LED lights (cabinet and landscape lighting), smart plugs (including washing machine notifications), and christmas decorations (for light shows via E1.31).

I have a few things with Tasmota since I can't figure out LEDi lights or single multicolor bulbs with ESPHome, and I use WLED for everything related to addressable LEDs.

I need to get to work on the LSU light show now that I have addressable LEDs all over and some bulbs with e1.31.

ETA:

quote:

I definitely need to clean up all the wiring and print an enclosure,


I just make sure everything is secure and throw them in project or junction boxes. Printing looks nice, but for me these boxes are in places that no one can see.
This post was edited on 8/19/21 at 2:30 pm
Posted by CarRamrod
Spurbury, VT
Member since Dec 2006
57941 posts
Posted on 8/19/21 at 3:48 pm to
yea but the learning curve to get started is steep. I have a multitude of wemos mins and node mcus running shite around me house.

quote:

NodeMCU, a couple of sensors, a breadboard (for now)
if you want to collaborate we can design a sheild for a d1 mini and a 3d printed case to make this as compact as possible.
This post was edited on 8/19/21 at 3:50 pm
Posted by CarRamrod
Spurbury, VT
Member since Dec 2006
57941 posts
Posted on 8/19/21 at 3:59 pm to
here is my DIY pool controller running on ESPHome

- 4 relays (NO) for pool pump for 4 different speeds.
- 2 relays at 24V for 2 valve actuators
- 1 relay for the pool heater
- 1 empty relay that will be for the pool lights at some point.
- 2 DS18B20 temp probe on the pool return and pool suction lines
- DHT20 temp and humidity sensor for ambient data.

i have an automation in Home Assistant when i turn flip the heater switch it turns the valve actuators to close the pool plumbing on to the hottub, and turns on the heatr with a thermostat to control the heat.




Notice the outside temp up in the 100s. it is in direct sunlight all morning.


I also followed quindor's video on making cheap bluetooth temp sensors. I have them all over my house.






and heed my advice. If you want to get into this. bulk order your parts on ebay/aliexpress from china and wait for the slow boat because you will be paying double to triple the amount on domestically. I believe i have about 50 different forms of the esp32s in nodemcu/mini format and esp8266 in nodemcu/mini format. and sensors out the wazoo.
This post was edited on 8/19/21 at 4:15 pm
Posted by hob
Member since Dec 2017
2281 posts
Posted on 8/19/21 at 9:16 pm to
swanky
Posted by guedeaux
Member since Jan 2008
13714 posts
Posted on 8/19/21 at 9:30 pm to
quote:

I also followed quindor's video on making cheap bluetooth temp sensors.


Link?
Posted by Korkstand
Member since Nov 2003
28996 posts
Posted on 8/19/21 at 9:36 pm to
Nice!
quote:

I also followed quindor's video on making cheap bluetooth temp sensors. I have them all over my house.
First I've heard of those. Guess I'll go ahead and order 4 or 50.
quote:

and heed my advice. If you want to get into this. bulk order your parts on ebay/aliexpress from china and wait for the slow boat because you will be paying double to triple the amount on domestically.
Yep. I'm always impatient when I want something, but I think I'll just start placing orders every week or so so that things will just keep coming in. It'll be like christmas all the time as I receive things that I ordered 2-3 months prior.
Posted by Korkstand
Member since Nov 2003
28996 posts
Posted on 8/19/21 at 9:36 pm to
Posted by jmon
Loisiana
Member since Oct 2010
9233 posts
Posted on 8/20/21 at 8:36 am to


Seriously though, one day I will dedicate time to this! Perhaps when I retire.
Posted by Korkstand
Member since Nov 2003
28996 posts
Posted on 8/20/21 at 9:08 am to
quote:

Seriously though, one day I will dedicate time to this! Perhaps when I retire.
I don't know how long until you retire but regardless you should probably start ordering parts now
Posted by CarRamrod
Spurbury, VT
Member since Dec 2006
57941 posts
Posted on 8/20/21 at 10:05 am to
quote:

also followed quindor's video on making cheap bluetooth temp sensors. I have them all over my house.
First I've heard of those. Guess I'll go ahead and order 4 or 50
they are great. they are bluetooth so the battery lasts well over a year, longer if you up the transmit time. the german guy they wrote the code to hack the device has a lot of customization in it. then you use an ESP32 and its bluetooth to listen for the cherp. i have 3 ESP32s around my house listening to the devices(these are also doing other things, they have relays on them controlling my garage door and gate). you can only have 6 devices per esp32. One thing to be aware of, right when you get it setup, HA might show 2 graphs, some in F and some in C(with a F number, 70s) HA will figure it out after a while and make them all F. I was pulling my hair out trying to figure out why but it is just a bug that gets fixes after a little while.
This post was edited on 8/20/21 at 10:07 am
Posted by dakarx
Member since Sep 2018
7827 posts
Posted on 8/20/21 at 11:02 am to
quote:

and heed my advice. If you want to get into this. bulk order your parts on ebay/aliexpress from china and wait for the slow boat because you will be paying double to triple the amount on domestically. I believe i have about 50 different forms of the esp32s in nodemcu/mini format and esp8266 in nodemcu/mini format. and sensors out the wazoo.



AMEN!!! (the slow rowboats are back to < 2 week delivery times again)

Good to see I'm not the only one "collecting" every micro controllers I run across.... because..... well...just because.

Posted by CarRamrod
Spurbury, VT
Member since Dec 2006
57941 posts
Posted on 8/20/21 at 11:41 am to
yea. im very good at starting a project and then having to get another part, then that project sitting on the shelf for months because that part cam in a few days later, and i was onto another project.

Now i have MOST everything i need for these little project that i can finish with everything i have. Books of resistors, capacitors, sensors, dongles, connectors, controllers.

This post was edited on 8/20/21 at 11:44 am
first pageprev pagePage 1 of 1Next pagelast page
refresh

Back to top
logoFollow TigerDroppings for LSU Football News
Follow us on X, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

FacebookXInstagram