init haos
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
esphome:
|
||||
name: esp32-c3-super-mini
|
||||
friendly_name: esp32-c3-super-mini
|
||||
|
||||
esp32:
|
||||
board: esp32-c3-devkitm-1
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
level: WARN # DEBUG → WARN로 변경하여 중요 메시지만 표시
|
||||
logs:
|
||||
wifi: WARN # wifi 관련 로그는 WARN 레벨로 설정하여 중요 메시지만 표시
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
encryption:
|
||||
key: "7/4BEBLQUAfCGxlodKoCdmqyXdoccriTOrSTiym/mRc="
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
#safe_mode: false # 안전 모드 대기 없이 즉시 업데이트 시작
|
||||
password: "58a6f3533ea6a2e8b47a27b5db685b92"
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
fast_connect: true
|
||||
enable_btm: false
|
||||
enable_rrm: false
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Esp32-C3-Super-Mini"
|
||||
password: "8vh1bCexlpWA"
|
||||
|
||||
captive_portal:
|
||||
|
||||
spi:
|
||||
clk_pin: 4 # 4 SCL 핀
|
||||
mosi_pin: 3 # 6 SDA 핀 (변경)
|
||||
|
||||
sensor:
|
||||
- platform: homeassistant
|
||||
entity_id: sensor.today_low_temp
|
||||
id: today_low_temp
|
||||
- platform: homeassistant
|
||||
entity_id: sensor.today_high_temp
|
||||
id: today_high_temp
|
||||
|
||||
text_sensor:
|
||||
- platform: homeassistant
|
||||
entity_id: weather.forecast_jib
|
||||
id: weather_state
|
||||
|
||||
display:
|
||||
- platform: st7789v
|
||||
model: Custom
|
||||
width: 240
|
||||
height: 320
|
||||
offset_height: 0
|
||||
offset_width: 0
|
||||
dc_pin: 2
|
||||
reset_pin: 1
|
||||
cs_pin: 0
|
||||
eightbitcolor: true
|
||||
rotation: 90
|
||||
update_interval: 10s
|
||||
|
||||
lambda: |-
|
||||
it.fill(Color::BLACK);
|
||||
it.print(120, 160, id(my_font), Color::WHITE, "안녕하세요.");
|
||||
|
||||
font:
|
||||
- file: "IBMPlexSansKR-Text.ttf"
|
||||
id: my_font
|
||||
size: 65
|
||||
glyphs: "안녕하세요."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user