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

Channel:
Subscribers:
128,000
Published on ● Video Link: https://www.youtube.com/watch?v=s7GZ-D6N8JU



Duration: 20:51
13,331 views
481


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: http://www.bmbsucks.com
💲 Members-Only Punishment: https://bit.ly/bmbmembers
💲Amazon Bookmark: https://amzn.to/2f8LWDt
(Save as bookmark to use if you buy anything)

💯These are my other Socials💯
🔹Twitter: https://bit.ly/BMBTw
🔹Instagram: https://bit.ly/bmbinstagram
🔹Tik-Tok: https://bit.ly/bmbtock
🔹Discord: http://bit.ly/BMBDISCORD

📷This is the gear I use🎥
💲Studio Camera: https://amzn.to/3itlHdT
💲Mobile Camera: https://amzn.to/3UjtHuX
💲Primary Mic: https://amzn.to/34qv2Hw
💲Secondary Mic: https://amzn.to/2qMipHW
💲Audio Recorder: https://amzn.to/3gOIfFn

✉️P.O. Box for Mail✉️
Byte My Bits
P.O. Box 77
Haysville, KS 67060




Other Videos By Byte My Bits


2023-08-09Tutorial - Multi-sensor setups for ESP32 & Home Assistant
2023-08-01Jason Byes Back EP. 75 - ESP Sensor Low Voltage, PoE Fans, Rabbit Holes
2023-07-31Finally going to finish my Home Assistant server..
2023-07-24Cheap and AMAZING smart rotary knob for Home Assistant
2023-07-17I built the perfect HVAC sensor, for CHEAP! Temps, Static Pressure, Air Quality, everything.
2023-07-07Tutorial - How to control a PWM fan with an ESP32 and Home Assistant
2023-07-01Jason Bytes Back Ep. 74 - Fried ESP32, Synology vs QNAP, Power Line Noise
2023-06-29ESPHome / HA controlled attic switch cooler v2.0. JUST got working :)
2023-06-25Synology makes Security Cameras now!? With AI?? BC500
2023-06-15Got a 15,000 Lumens LED Light to go camping.. 12v!
2023-06-09My PoE Attic switch is FAILing, ESPHome PWM fans to the rescue? DIY
2023-06-01Jason Bytes back Ep. 73 - A project vid or a JBB!? Mostly Home assistant questions..
2023-05-26Perfect Entry Touchscreen Home Assistant Controls!
2023-05-22I'm in WAY over my head.. I could use some help..
2023-05-15Home Assistant + ZigBee = HOLY BANANAS! - Smart Lawn Ed.
2023-05-07Zigbee hardware, Moisture Sensor, Batteries, Mustang Exhaust, Server build.. #MEGAVLOG
2023-05-01Jason Bytes Back Ep. 72 - Electric Bills, Home Assistant, sEnD HelP
2023-04-24My server customization disaster..
2023-04-17A slightly impractical wall mounted Home Assistant Dashboard.
2023-04-07Home Assistant intro on a 55" touch screen!
2023-04-01Jason Bytes Back Ep. 71 - A house fire, Unraid Podcast, HOT 3900K!



Tags:
ESPHome
ESP32
PWN
Fan
control
pc fans
home assistant
smart fans
diy cooling
smart cooling