1
0
ansible-home-assistant/esphome/esp32-rack-control.yaml

55 lines
817 B
YAML
Raw Normal View History

2024-08-20 22:33:52 +00:00
esphome:
name: eps32-rack-control
friendly_name: eps32-rack-control
esp32:
board: esp32-c3-devkitm-1
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key:
ota:
- platform: esphome
password:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Eps32-Rack-Control"
password:
captive_portal:
output:
- platform: ledc
id: pwm_1
pin: 2
frequency: "25000 Hz"
fan:
- platform: speed
output: pwm_1
name: "Fan"
id: fan_1
sensor:
- platform: dht
pin: 20
temperature:
name: Rack temperature
id: rack_temp
humidity:
name: Rack humidity
id: rack_hum
update_interval: 60s