Automatic Bathroom Fan Controller Demo in Home Assistant

Wiring Diagram Link
www.canva.com/design/DAF0fbP3...
Parts List link
www.canva.com/design/DAF1HGAw...
Parts Links
D1 Mini ESP32: www.aliexpress.us/item/225183...
BME280: www.aliexpress.us/item/325680...
TTP223: www.amazon.com/dp/B07K72N79J?...
Single Channel Relay Module: www.amazon.com/dp/B07BVXT1ZK?...
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.buymeacoffee.com/hatipsby...
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

Пікірлер: 3

  • @HATipsByLarry
    @HATipsByLarry4 ай бұрын

    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.

  • @indikaudayasaranga988
    @indikaudayasaranga9884 ай бұрын

    Thank you for the idea. Great

  • @HATipsByLarry

    @HATipsByLarry

    4 ай бұрын

    Your most welcome