My PoE Attic switch is FAILing, ESPHome PWM fans to the rescue? DIY
HTML-код
- Опубликовано: 8 июн 2023
- This is my last ditch effort to cool down my attic PoE switch that runs my cameras.. of course I had to hook it all up to Home Assistant to monitor the temps and control the PWM fans!
The code for the ESP32:
text_sensor:
Send IP Address
- platform: wifi_info
ip_address:
name: Fanhub IP Address
Send Uptime in raw seconds
- platform: template
name: Fanhub Uptime
id: uptime_human
icon: mdi:clock-start
sensor:
- platform: wifi_signal
name: Fanhub WiFi Strength
update_interval: 30s
- platform: dht
pin: GPIO15
temperature:
name: "Temperature"
humidity:
name: "Humidity"
update_interval: 10s
- platform: pulse_counter
pin: GPIO13
name: Fanhub Fan Speed1
id: fan_pulse1
unit_of_measurement: 'RPM'
filters:
- multiply: 0.5
count_mode:
rising_edge: INCREMENT
falling_edge: DISABLE
update_interval: 3s
- platform: uptime
name: Fanhub Uptime
id: uptime_sensor
update_interval: 60s
on_raw_value:
then:
- text_sensor.template.publish:
id: uptime_human
Custom C++ code to generate the result
state: !lambda |-
int seconds = round(id(uptime_sensor).raw_state);
int days = seconds / (24 * 3600);
seconds = seconds % (24 * 3600);
int hours = seconds / 3600;
seconds = seconds % 3600;
int minutes = seconds / 60;
seconds = seconds % 60;
return (
(days ? to_string(days) + "d " : "") +
(hours ? to_string(hours) + "h " : "") +
(minutes ? to_string(minutes) + "m " : "") +
(to_string(seconds) + "s")
).c_str();
output:
- platform: ledc
pin: GPIO27
frequency: 10000 Hz
id: fanhub_pwm1
fan:
- platform: speed
output: fanhub_pwm1
name: "Fanhub Fan1"
🔥These links support my madness🔥
💲 NordVPN: www.bmbsucks.com
💲 Members-Only Punishment: bit.ly/bmbmembers
💯These are my other Socials💯
🔹Twitter: bit.ly/BMBTw
🔹Instagram: bit.ly/bmbinstagram
🔹Tik-Tok: bit.ly/bmbtock
🔹Discord: bit.ly/BMBDISCORD
✉️P.O. Box for Mail✉️
Byte My Bits
P.O. Box 77
Haysville, KS 67060 Наука
Welcome to the rabbit hole of ESPHome and DIY Sensors! One of us! One of us! One of US!
Send halp
loved your safety glasses
I love how Jason’s safety glasses are his eyelids.
it's the thought that counts...?
You could always just put the POE switch in the garage. Garage is still hot but not 140+ hot. Thats what I did. Bought a HD husky shelving unit, put a rack, printer, and the media server stuff all on it. I also dont have to crawl in the attic every time to change lines.
all this stuff is so janky, but I LOVE it :) Never stop doing these videos, they are hilarious.
it is NOT janky....he's just doing a POC to make sure it works....someday it won't and the next POC will be set up :-)
Your eye protection methods are world class :D
Nice, and impressive getting that to work first try without letting the magic smoke out of anything :D
My wife loved this video. Had we not spent years downsizing, she's convinced our basement would look just like yours! She's right! My "shop" these days is a 5x8 shed that contains a w/d AND a 100 gallon take of water. Luckily, my "doomsday prepper" space is small. But hey, all our stuff fits in the space we have. Our space is just a little smaller. I agree with some of the other comments - keep making these videos!😂
The chaos in this video is palpable. And I love it and I'm here for it.
I'm also glad I'm not the only person who does projects in this fashion
Just FYI, I'm pretty sure we'd all watch a BmB Home Cleanup episode. I'm sure it would be just as entertaining.
Oh some things should be left to the imagination 😂
I remember when you put that switch up there and I was going, "eeeeekkkkk that is not going to last!!" I dont know how hot it gets where you're at, but here in Phoenix, it will get to 210+ in the attic in the summer... and any equipment will just get radiation heat just pouring through the roof like a microwave! My new home I built in 2019 has a foil lined OSB roof sheething to help prevent radiation heat from coming through into the attic... lowers temps by about 30°, in a nearly 230° attic in the summer time its horrible.
I'm pretty sure I was around when you posted the video about putting that PoE switch in the attic. Man, time flies!
Well done on getting the ESP32 working as intended on the first try. In your shoes, I probably would've fried it lol. We definitely need to see part deux on this!
Would it make sense to add standard connectors to your wires, so if a fan goes out, it will be much faster to swap a fan, so you dont spend an hour in the attic?
Well…
Maybe.
But…
Fccccck…
Ok
No.
But yes.
😶
been planning on a switch in my roof for a while now and I love the idea of your cooling solution, would love to see part 2
I remember when you installed it in the attic. How time flies!
I'm super impressed, I'd never be able to do that haha. Give us a part 2!
Part 2 might be a completely revised version 😂
Love the eyelid safety glasses
Yoo! The main king
Jason, King of YOLOing!
Love the ESP32. Very capable little things. Once you flash it with a custom firmware you never have to update it again unless you need to change the code. That's a big advantage over the Raspberry Pi as you have to keep the OS updated. Would love to see part two of this video of getting it installed.
I did a project (Ventbot on hackaday) controlling PWM fans with an ESP32 running ESPHome. (I guess that's why the algorithms suggested this video to me.) A couple of problems you didn't run into, but might run into later.....
- Most PWM fans don't come to a full stop, even at 0% PWM. For your situation, I guess you will probably just unplug them when you want that. (I routed the power feed through a MOSFET and switched that off with an ESP32 pin when I wanted to turn the fans completely off.)
- I also ran the PWM control signal through a small signal transistor. That makes a more reliable input to the fan in case signal levels coming out of the ESP32 aren't exactly what it wants.
- I found reading the tachometer directly from the fan to an ESP32 pin to be unreliable. It was sometimes accurate, sometimes wildly wrong. The reference circuit for motherboards uses a voltage divider for signal conditioning. I found that works great. As an interim step, you might try to measure the voltages of the tach outputs of each of your fans. You might be endangering your ESP32.
RUclips removes any comments of mine that contain links. I guess it thinks it might be comment spam. Anyhow, you might be interested in looking at "Modified PWM and tach wiring". Nudge, nudge, wink, wink.😇
I saved the video to a list for the future.. ESPs are awesome and I will find uses for them lol
I would love to see a part 2 of this
Three years already...huh of course we want a part 2
I am all for this, but you made it so complicated! Why not just use POE to power the fans. Works well, I use it for all my ESP32's and 8266's as well. The more I can power by poe the better as its all on large UPS' as well. You can power lighting and all sorts of stuff off POE as well as other POE powered switches. 👍🤠 The other option is to pull the cables into the basement where people with basements put their network stuff to stay cool! 😁
I am creating a set of Universal boards...
Were I have an ESP chip on the board with various pinouts going out. On the board, I also have build in BMP280 temp sensor, 2 110v relays to control 110v devices, and other pin outs for fans and stuff and other needed sensors like that... and in the program interface, i have a webpage running on the ESP that also conencts to ESPHOME, and on the webpage, you select the PIN you are using, and name its function, and if you need a PWM signal for speed, you select that on the PWM pin, and blah blah blah... But all on a single board for random items like this for my HA... its just a small credit card sized board and connected to my HA and runs a webpage on it... so i get all the data from it and setup automations for it to run out via HA. and used the web interface to set the names and functions...
I am also creating a larger board for converting Wired home alarms, to rip thier controller off, and then wire up all the door and window sensors around the house into it. Then have those feed to HA so I have a door/window open/close sensor WIRED for every window and door in my house. Doing a small run of these boards too.
If you are interested in these boards, i'll send you a couple of each...
"You're going to have to bear with this tangled web of weird things I've been doing." Yep definitely a BmB video
Hilarious. I can't stop thinking why in the world would you put a switch in an attic ...
Well, we gotta see the end result now!
Was that a bud light you were drinking today?
What’s the temp/humidity sensor you’re using??
Hey! Would you make a guide how to host Lemmy server on a home server? UNRAID or so?
That was interesting. Can you go through the steps on how you got it at linked up.
Maybe but im 80% sure i did it in the worst way possible (tying 12v to 5v like I did)
Esphome is amazing
The face you make when you are using the nailer.
He wants to run Christmas lights in July.... ;P
0:42 LMG/LTT has apparently conditioned me in a way I didn't realize until now. My brain immediately switched off assuming this was an ultra cheesy transition to a sponsor spot. This is bad. I need to figure out the IRL undo cmd
There are industrial POE switches with an operating temperature of 140F.
2:58 I see anther thing to replace those bulbs do explode I have had one do that so switch it out forked one if you value your pocket book leds last 10 years or more
So.... Why not just poke the wires through the ceiling and mount the attic switch to the ceiling?
Safety squint!
Time to upgrade that halogen to an led big boi.
on a scale from 1 to 10 your F*ked squirrel Boy :D
14:55 always just shove everything into one hole.
Should have named it only fans
Or you could... I dunno... maybe STOP putting electronic devices in the attic where ambient temperatures regularly hit 150 to 160 degrees fahrenheit during the summer! 😂
Stop using safety squints and put on safety glasses. Easier to see what youre doing when youre eyes are open. 😅
You'd have better aim if you didn't close your eyes at the critical moment when you need them the most...
First
First, S**k it Nate
Fanhub…. Or Onlyfans?
There can be only one.. OnlyFanHub
I think we have a winner!