esphome: name: esphome-web-7a791b friendly_name: Abluft # set fan speed to 1% on ESP boot on_boot: - priority: 200.0 then: - output.set_level: id: console_fan_speed level: 1% # i use a Wemos D1R2 board with 12V power input esp8266: board: esp01_1m # Enable logging logger: # Enable Home Assistant API api: encryption: key: "6AH6uKmb1Mk2SWltQ0POEoHMeHaI0xXuZzLrRxdholI=" ota: wifi: ssid: !secret wifi_ssid password: !secret wifi_password # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Esphome-Web-7A791B" password: "k9fgENCRAtut" captive_portal: # Fan Abluft GPIO12 und GPIO13 #################################################### output: - platform: esp8266_pwm id: console_fan_speed pin: GPIO12 #### GPIO 12 # 25KHz is standard PC fan frequency, minimises buzzing frequency: "25000 Hz" # currently i use a "Be Quiet Silent Wings 4" fan. it goes in off state < 20% # This fan is very quiet! better tha Corsair min_power: 19% max_power: 100% # show the fan speed as a entity in HA fan: - platform: speed output: console_fan_speed name: "Fan Speed" sensor: # Fan Pulse Counter - platform: pulse_counter pin: number: GPIO13 ### GPIO 13 mode: INPUT_PULLUP unit_of_measurement: 'RPM' update_interval: 5s id: fan_speed name: Fan Speed accuracy_decimals: 0 filters: - multiply: 0.5 # Depending on how many pulses the fan sends per round - should be 0.5 or 1 - try... # I add a DHT climate sensor to my Wemos D1R2 board for temperature and humidity # DHT11 climate sensor - platform: dht pin: GPIO5 ### GPIO 5 temperature: name: "Abluft Temperature" humidity: name: "Abluft Humidity" update_interval: 60s # WiFi Signalstärke - platform: wifi_signal name: "WiFi Signal Sensor" update_interval: 60s