I’m using an Adafruit QT Py ESP32-C3 WiFi Dev Board, I’m trying to control a pwm fan with this board. I can install the yaml fine, the device shows up as online in esphome. However if I click view logs I get this error.
WARNING Can't connect to ESPHome API for v44.local: Error connecting to ('192.168.2.169', 6053): [Errno 111] Connect call failed ('192.168.2.169', 6053). If I try to connect the board to Home assistant in the integrations tab I get this error.
Can't connect to ESP. Please make sure your YAML file contains an 'api:' line.
Here is my yaml.
esphome: name: v44 platformio_options: board_build.f_flash: 40000000L board_build.flash_mode: dio board_build.flash_size: 4MB esp32: # At some point the actual board might be supported. # board: adafruit_qt_py_esp32-c3 board: esp32-c3-devkitm-1 framework: type: esp-idf variant: ESP32C3 # Enable logging logger: # Enable Home Assistant API api: encryption: key: "key" password: "153" port: "6053" ota: password: "password" wifi: ssid: !secret wifi_ssid password: !secret wifi_password # Enable fallback hotspot in case wifi connection fails ap: ssid: "V44 Fallback Hotspot" password: "password" output: # Wire this pin (4) into the PWM pin of your 12v fan # ledc is the name of the pwm output system on an esp32 - platform: ledc id: noctua_fan_speed pin: 4 # 25KHz is standard PC fan frequency, minimises buzzing frequency: "25000 Hz" # my fans stop working below 13% powerful. # also they're powerful and loud, cap their max speed to 80% min_power: 0% max_power: 100% # Good for debugging, you can manually set the fan speed. fan: - platform: speed output: noctua_fan_speed name: "Noctua Fan Speed" sensor: - platform: pulse_counter pin: 3 id: fan_rpm_counter name: "Fan RPM" update_interval: 2.5s filters: - multiply: 0.5 # 2 pulses per revolution