Automatic Bathroom Fan Controller Demo in Home Assistant
Vložit
- čas přidán 26. 08. 2024
- Wiring Diagram Link
www.canva.com/...
Parts List link
www.canva.com/...
Parts Links
D1 Mini ESP32: www.aliexpress...
BME280: www.aliexpress...
TTP223: www.amazon.com...
Single Channel Relay Module: www.amazon.com...
My Other Videos
BME280 Temp and Humidity Sensor Video: • BME280 Temperature and...
TTP223 Capacitive Touch Sensor Video: • TTP223 Capacitive Touc...
___ ☕ Buy Me A Coffee! ☕ __
Buy Me A Coffee: www.buymeacoff...
Code to get this working in ESPHome
i2c:
sda: 21
scl: 22
scan: true
id: bus_a
light:
- platform: binary
name: "Fan On/Off"
output: on_off
id: power
restore_mode: ALWAYS_OFF
output:
- platform: gpio
pin: 33
id: on_off
binary_sensor:
- platform: gpio
pin:
number: 32
mode:
input: true
pullup: true
name: "Fan Button"
device_class: power
on_press:
then:
- homeassistant.service:
service: script.BreadboardFanDemo
filters:
- delayed_on: 100ms
sensor:
- platform: bme280_i2c
temperature:
name: "WorkBench Temperature"
oversampling: 16x
filters:
- lambda: return x * (9.0/5.0) + 29.0;
unit_of_measurement: "°F"
humidity:
name: "WorkBench Humidity"
filters:
- lambda: return x + 6;
address: 0x76
update_interval: 5s
Just a update on this. If you use a BME280 sensor in esphome with the new ESPHome update. 2024.2.0 the code i used had a breaking change. I have updated the code so you can just copy this code i have in the video description now and it will work with the new update.
Very useful, thanks.
@@ItsMeThinkering No problem. Glad you liked the video
Thank you for the idea. Great
Your most welcome