Тёмный

My PoE Attic switch is FAILing, ESPHome PWM fans to the rescue? DIY 

Byte My Bits
Подписаться 127 тыс.
Просмотров 15 тыс.
50% 1

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/bmbinst...
🔹Tik-Tok: bit.ly/bmbtock
🔹Discord: bit.ly/BMBDISCORD
✉️P.O. Box for Mail✉️
Byte My Bits
P.O. Box 77
Haysville, KS 67060

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 62   
@calebjpryor
@calebjpryor Год назад
Welcome to the rabbit hole of ESPHome and DIY Sensors! One of us! One of us! One of US!
@Bytemybits
@Bytemybits Год назад
Send halp
@TheRubernck21
@TheRubernck21 Год назад
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?
@Bytemybits
@Bytemybits Год назад
Well… Maybe. But… Fccccck… Ok No. But yes. 😶
@knappe3223
@knappe3223 Год назад
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.
@ConfidentGrips
@ConfidentGrips Год назад
loved your safety glasses
@michaelgleason4791
@michaelgleason4791 Год назад
"You're going to have to bear with this tangled web of weird things I've been doing." Yep definitely a BmB video
@smithleon
@smithleon Год назад
all this stuff is so janky, but I LOVE it :) Never stop doing these videos, they are hilarious.
@pjohnson21211
@pjohnson21211 Год назад
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 :-)
@dan_lev
@dan_lev Год назад
Just FYI, I'm pretty sure we'd all watch a BmB Home Cleanup episode. I'm sure it would be just as entertaining.
@Bytemybits
@Bytemybits Год назад
Oh some things should be left to the imagination 😂
@septenaryshrub2587
@septenaryshrub2587 Год назад
I love how Jason’s safety glasses are his eyelids.
@medditapp3267
@medditapp3267 5 месяцев назад
it's the thought that counts...?
@MikeHarris1984
@MikeHarris1984 Год назад
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.
@russgifford
@russgifford Год назад
Hilarious. I can't stop thinking why in the world would you put a switch in an attic ...
@oldcomputergeek
@oldcomputergeek Год назад
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!😂
@mattroon2808
@mattroon2808 Год назад
Fanhub…. Or Onlyfans?
@trakkasure
@trakkasure Год назад
There can be only one.. OnlyFanHub
@Bytemybits
@Bytemybits Год назад
I think we have a winner!
@MrAlekoy
@MrAlekoy Год назад
Nice, and impressive getting that to work first try without letting the magic smoke out of anything :D
@BenReese
@BenReese Год назад
So.... Why not just poke the wires through the ceiling and mount the attic switch to the ceiling?
@dragoon1269mn
@dragoon1269mn Год назад
Your eye protection methods are world class :D
@onlyzach1
@onlyzach1 Год назад
I'm super impressed, I'd never be able to do that haha. Give us a part 2!
@Bytemybits
@Bytemybits Год назад
Part 2 might be a completely revised version 😂
@Chris_In_Texas
@Chris_In_Texas Год назад
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! 😁
@th0m
@th0m Год назад
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
@BansheeBunny
@BansheeBunny Год назад
There are industrial POE switches with an operating temperature of 140F.
@defcry_again
@defcry_again Год назад
Hey! Would you make a guide how to host Lemmy server on a home server? UNRAID or so?
@byrd203
@byrd203 Год назад
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
@NOX-ID47
@NOX-ID47 Год назад
You'd have better aim if you didn't close your eyes at the critical moment when you need them the most...
@jamess1787
@jamess1787 Год назад
Stop using safety squints and put on safety glasses. Easier to see what youre doing when youre eyes are open. 😅
@digi3218
@digi3218 Год назад
I saved the video to a list for the future.. ESPs are awesome and I will find uses for them lol
@LonestarWargaming
@LonestarWargaming Год назад
What’s the temp/humidity sensor you’re using??
@WJCarpenter
@WJCarpenter Год назад
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.
@WJCarpenter
@WJCarpenter Год назад
RU-vid 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.😇
@Americancosworth
@Americancosworth Год назад
He wants to run Christmas lights in July.... ;P
@MikeHarris1984
@MikeHarris1984 Год назад
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...
@MikeHarris1984
@MikeHarris1984 Год назад
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...
@abowers
@abowers Год назад
The face you make when you are using the nailer.
@Domrockt
@Domrockt Год назад
on a scale from 1 to 10 your F*ked squirrel Boy :D
@jimholloway1785
@jimholloway1785 Год назад
Was that a bud light you were drinking today?
@michaelgleason4791
@michaelgleason4791 Год назад
14:55 always just shove everything into one hole.
@digi3218
@digi3218 Год назад
Should have named it only fans
@fanaticdavid
@fanaticdavid Год назад
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!
@Darkk6969
@Darkk6969 Год назад
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.
@james589
@james589 Год назад
Well, we gotta see the end result now!
@Firespyer
@Firespyer Год назад
Love the eyelid safety glasses
@Poncho42
@Poncho42 Год назад
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
@patteahan8704
@patteahan8704 Год назад
Safety squint!
@DJSammy69.
@DJSammy69. Год назад
Jason, King of YOLOing!
@triplerinse
@triplerinse Год назад
Esphome is amazing
@QRoberts
@QRoberts Год назад
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
@MadMike78
@MadMike78 Год назад
I remember when you installed it in the attic. How time flies!
@OBD01
@OBD01 Год назад
Three years already...huh of course we want a part 2
@johnathansmith1003
@johnathansmith1003 Год назад
Time to upgrade that halogen to an led big boi.
@TechySpeaking
@TechySpeaking Год назад
First
@Gekking
@Gekking Год назад
I would love to see a part 2 of this
@bluegizmo1983
@bluegizmo1983 Год назад
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! 😂
@jonathan.sullivan
@jonathan.sullivan Год назад
First, S**k it Nate
@H3LL_id_H3LL_id
@H3LL_id_H3LL_id Год назад
Yoo! The main king
@mysmtpservices4818
@mysmtpservices4818 Год назад
That was interesting. Can you go through the steps on how you got it at linked up.
@Bytemybits
@Bytemybits Год назад
Maybe but im 80% sure i did it in the worst way possible (tying 12v to 5v like I did)
Далее
My 48 Drives may have failed because of this..
20:03
Просмотров 11 тыс.
Fixing and re-racking the server rack servers
16:53
Просмотров 8 тыс.
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
Running power for PoE switch in ATTIC!
32:49
Просмотров 47 тыс.
Decoding A Program Sent From The Past
21:24
Просмотров 166 тыс.
Homemade Machine Turns Bioplastics Into Cooling Fabric
30:58
This should be illegal… Battery Repair Blocking
19:21
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45