substitutions: duct_fan_pin: GPIO13 duct_fan_id: duct_fan_id duct_fan_name: Rack 2 Duct Fan Speed # duct_fan_channel: "0" duct_fan_pwmfreq: 5000Hz wall_fan_pwr_pin: GPIO21 wall_fan_pwr_name: Rack 2 Wall Fan Power wall_fan_spd_pin: GPIO22 wall_fan_spd_id: wall_fan_spd_id # wall_fan_spd_channel: "2" wall_fan_spd_pwmfreq: 25000Hz wall_fan_spd_name: Rack 2 Wall Fan Speed wall_fan_tach_pin: GPIO23 wall_fan_tach_id: wall_fan_tach_id wall_fan_tach_name: Rack 2 Wall Fan Tach dallas_pin: GPIO32 dallas_name_1: Rack 2 Temp Hot dallas_name_2: Rack 2 Temp Cold esphome: name: rack_2 platform: ESP32 board: esp32doit-devkit-v1 wifi: ssid: "kungle-ot" password: "ThingsWelcomeToKungle" manual_ip: static_ip: 192.168.37.76 gateway: 192.168.37.1 subnet: 255.255.255.0 # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Server 2 Fallback Hotspot" password: "kRzC55vFjigT" captive_portal: switch: - platform: gpio pin: ${wall_fan_pwr_pin} name: ${wall_fan_pwr_name} output: - platform: ledc pin: ${duct_fan_pin} id: ${duct_fan_id} channel: 0 frequency: ${duct_fan_pwmfreq} - platform: ledc pin: ${wall_fan_spd_pin} id: ${wall_fan_spd_id} channel: 2 frequency: ${wall_fan_spd_pwmfreq} fan: - platform: speed output: ${duct_fan_id} name: ${duct_fan_name} # speed: # low: 0.2 # medium: 0.6 # high: 1.0 - platform: speed output: ${wall_fan_spd_id} name: ${wall_fan_spd_name} # speed: # low: 0.0 # medium: 0.8 # high: 1.0 sensor: - platform: pulse_counter pin: number: ${wall_fan_tach_pin} mode: INPUT_PULLUP unit_of_measurement: 'RPM' name: ${wall_fan_tach_name} update_interval: 10s filters: - multiply: 0.5 - platform: dallas address: 0x1D01143296570128 name: ${dallas_name_1} - platform: dallas address: 0x1D02131D6063AA28 name: ${dallas_name_2} dallas: - pin: number: ${dallas_pin} mode: INPUT_PULLUP update_interval: 10s # Enable logging logger: level: DEBUG # Enable Home Assistant API api: ota: