init haos
@@ -0,0 +1,5 @@
|
||||
# Gitignore settings for ESPHome
|
||||
# This is an example and may include too much for your use-case.
|
||||
# You can modify this file to suit your needs.
|
||||
/.esphome/
|
||||
/secrets.yaml
|
||||
|
After Width: | Height: | Size: 96 KiB |
@@ -0,0 +1,82 @@
|
||||
esphome:
|
||||
name: esp32-c3-mini
|
||||
friendly_name: esp32-c3-mini
|
||||
|
||||
esp32:
|
||||
board: esp32-c3-devkitm-1
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
encryption:
|
||||
key: "A5RVepFuPVpUhQwqQfa8rGoRK4f2i5XUGX5YoJY4Tkw="
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: "ad893c624f32313071dc42a75e6a3c6c"
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Esp32-C3-Mini Fallback Hotspot"
|
||||
password: "0fPh87TAs9ZB"
|
||||
|
||||
captive_portal:
|
||||
|
||||
time:
|
||||
- platform: homeassistant
|
||||
id: ha_time
|
||||
|
||||
spi:
|
||||
id: spi_display
|
||||
clk_pin: 4 # 4 SCL 핀
|
||||
mosi_pin: 3 # 6 SDA 핀 (변경)
|
||||
|
||||
display:
|
||||
- platform: st7789v
|
||||
spi_id: spi_display
|
||||
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(0, 0, 0));
|
||||
|
||||
// 현재 시간 가져오기
|
||||
auto time = id(ha_time).now();
|
||||
|
||||
// 위: 월/일 표시
|
||||
it.printf(160, 60, id(my_font), Color(255, 255, 255), TextAlign::CENTER,
|
||||
"%02d-%02d", time.month, time.day_of_month);
|
||||
|
||||
// 아래: 시간:분 표시 (큰 글씨)
|
||||
it.printf(160, 180, id(time_font), Color(255, 255, 0), TextAlign::CENTER,
|
||||
"%02d:%02d", time.hour, time.minute);
|
||||
|
||||
|
||||
font:
|
||||
- file: "IBMPlexSansKR-Text.ttf"
|
||||
id: my_font
|
||||
size: 65
|
||||
glyphs: "0123456789:-"
|
||||
|
||||
- file: "IBMPlexSansKR-Text.ttf"
|
||||
id: time_font
|
||||
size: 100
|
||||
glyphs: "0123456789:"
|
||||
@@ -0,0 +1,32 @@
|
||||
esphome:
|
||||
name: esp32-c3-new
|
||||
friendly_name: esp32-c3-new
|
||||
|
||||
esp32:
|
||||
board: esp32-c3-devkitm-1
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
encryption:
|
||||
key: "SPT1m0efYy5N6qNHLgVzaevR4riF1RhsDBs2eSsz0xQ="
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: "65efb5d3993fb02e58c4a0c10996736b"
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Esp32-C3-New Fallback Hotspot"
|
||||
password: "LSYEW4M3ZYzA"
|
||||
|
||||
captive_portal:
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
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:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
encryption:
|
||||
key: "7/4BEBLQUAfCGxlodKoCdmqyXdoccriTOrSTiym/mRc="
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: "58a6f3533ea6a2e8b47a27b5db685b92"
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Esp32-C3-Super-Mini"
|
||||
password: "8vh1bCexlpWA"
|
||||
|
||||
captive_portal:
|
||||
|
||||
time:
|
||||
- platform: homeassistant
|
||||
id: ha_time
|
||||
|
||||
spi:
|
||||
clk_pin: 4 # 4 SCL 핀
|
||||
mosi_pin: 6 # 6 SDA 핀 (변경)
|
||||
|
||||
display:
|
||||
- platform: st7789v
|
||||
model: Custom
|
||||
width: 240
|
||||
height: 320
|
||||
offset_height: 0
|
||||
offset_width: 0
|
||||
dc_pin: 2
|
||||
reset_pin: 1
|
||||
cs_pin: 7
|
||||
# 7핀 모델에 CS 핀이 없다면 아래 줄은 삭제하세요.
|
||||
# 만약 CS 핀이 있다면 연결한 번호(예: 7)를 적으세요.
|
||||
|
||||
eightbitcolor: true
|
||||
rotation: 90
|
||||
update_interval: 60s
|
||||
|
||||
lambda: |-
|
||||
|
||||
// 이미지 출력 (좌표 10, 10에 출력)
|
||||
//it.image(0, 0, id(my_logo));
|
||||
|
||||
// 텍스트와 함께 출력
|
||||
//it.print(50, 250, id(my_font),Color(255, 255, 0), "박향기");
|
||||
|
||||
it.fill(Color(0, 0, 0)); // 배경 검은색
|
||||
|
||||
// 현재 시간 가져오기
|
||||
auto time = id(ha_time).now();
|
||||
|
||||
// 1. 큰 시계 (시:분)
|
||||
// %H: 24시간 형식, %M: 분
|
||||
it.printf(150, 170, id(time_font), Color(0, 255, 0), TextAlign::CENTER,
|
||||
"%02d:%02d", time.hour % 12, time.minute);
|
||||
|
||||
// 3. 날짜 표시 (상단)
|
||||
it.printf(150, 70, id(my_font), Color(255, 255, 255), TextAlign::CENTER,
|
||||
"%02d-%02d", time.month, time.day_of_month);
|
||||
|
||||
# 폰트 정의 (선택 사항)
|
||||
font:
|
||||
- file: "IBMPlexSansKR-Text.ttf"
|
||||
id: my_font
|
||||
size: 65
|
||||
glyphs: "0123456789:-"
|
||||
|
||||
- file: "IBMPlexSansKR-Text.ttf"
|
||||
id: time_font
|
||||
size: 80
|
||||
glyphs: "0123456789:-"
|
||||
# image:
|
||||
# - file: "zen.png"
|
||||
# id: my_logo
|
||||
# #resize: 50x50 # 원하는 크기로 조절
|
||||
# type: RGB # 컬러 디스플레이이므로 COLOR 설정esphome
|
||||
@@ -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: "안녕하세요."
|
||||
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
esphome:
|
||||
name: esp32-c4
|
||||
friendly_name: esp32 c4
|
||||
|
||||
esp32:
|
||||
board: esp32-c3-devkitm-1
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
encryption:
|
||||
key: "1UifR3Q1iLO7aLl5jhH15I3Uw4JgZYMk2NZxyymDE2A="
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: "2fd31a1109bbef30e6bf6205a6fd27b5"
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Esp32-C4 Fallback Hotspot"
|
||||
password: "B51ucB0WW7GJ"
|
||||
|
||||
captive_portal:
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
esphome:
|
||||
name: esp32-s3-wroom-1
|
||||
friendly_name: esp32-s3-wroom-1
|
||||
|
||||
esp32:
|
||||
board: esp32-s3-devkitc-1
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
encryption:
|
||||
key: "fEr9DATJh/rXWthYQqy8WpoSsGn2/q+vbfqPEdskKzw="
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: "24c521cd7af3f2ed700d86bd31a32369"
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Esp32-S3-Wroom-1"
|
||||
password: "PZEr1i2zf0WJ"
|
||||
|
||||
captive_portal:
|
||||
|
||||
bluetooth_proxy:
|
||||
active: true # 'true'로 설정하면 HA에서 이 기기를 통해 직접 제어도 가능해집니다.
|
||||
|
||||
# BLE 스캐너 활성화
|
||||
esp32_ble_tracker:
|
||||
scan_parameters:
|
||||
interval: 1.1s
|
||||
window: 1.1s
|
||||
active: true
|
||||
|
||||
binary_sensor:
|
||||
- platform: ble_presence
|
||||
# 여기에 안드로이드 앱에서 확인한 UUID를 입력합니다.
|
||||
# 주의: 모든 문자는 소문자로 입력해야 인식률이 높습니다.
|
||||
ibeacon_uuid: '1192c1e9-fffe-4d18-8e38-61290c9a1aa9'
|
||||
name: "K60-banggae"
|
||||
device_class: presence
|
||||
|
||||
# 4. 신호 강도 측정 (거리 추정용)
|
||||
sensor:
|
||||
- platform: ble_rssi
|
||||
ibeacon_uuid: '1192c1e9-fffe-4d18-8e38-61290c9a1aa9'
|
||||
name: "K60 BLE RSSI"
|
||||
@@ -0,0 +1,32 @@
|
||||
esphome:
|
||||
name: esp32-s3
|
||||
friendly_name: esp32-s3
|
||||
|
||||
esp32:
|
||||
board: esp32-c3-devkitm-1
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
encryption:
|
||||
key: "sElaiOdZ+V8gC1xgsjt7OPErGQPFNN7Uyn5veL72bJI="
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: "148210a5e1f4e70386995a843a6b5ffa"
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Esp32-S3 Fallback Hotspot"
|
||||
password: "FGU6MdbGKVCi"
|
||||
|
||||
captive_portal:
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
esphome:
|
||||
name: hhh
|
||||
friendly_name: hhh
|
||||
|
||||
esp32:
|
||||
board: esp32-s3-devkitc-1
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
encryption:
|
||||
key: "7XrCgjTKbZLQmmq8/sMQZlPOu0NO/r1C875KuEiFJDM="
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: "f53129afad51bedade065df68f6d7ad9"
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Hhh Fallback Hotspot"
|
||||
password: "wpjoQXJTZHFf"
|
||||
|
||||
captive_portal:
|
||||
|
||||
|
After Width: | Height: | Size: 14 KiB |
@@ -0,0 +1,75 @@
|
||||
esphome:
|
||||
name: esp32-c3-mini
|
||||
friendly_name: esp32-c3-mini
|
||||
|
||||
esp32:
|
||||
board: esp32-c3-devkitm-1
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
encryption:
|
||||
key: "pGG3hzp3QUGMG1gWkO6hjsAhhiCs8GyI4qOY5V12GPY="
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: "b36a083936b983a368c61e1706fbe467"
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Esp32-C3-Mini Fallback Hotspot"
|
||||
password: "oHqcIfdnKI2n"
|
||||
|
||||
captive_portal:
|
||||
|
||||
|
||||
spi:
|
||||
clk_pin: 4 # 4 SCL 핀
|
||||
mosi_pin: 3 # 6 SDA 핀 (변경)
|
||||
|
||||
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(0, 0, 0)); // 배경 검은색
|
||||
|
||||
// 이미지 출력 (좌표 10, 10에 출력)
|
||||
it.image(0, 0, id(my_logo));
|
||||
|
||||
// 텍스트와 함께 출력
|
||||
it.print(50, 250, id(my_font),Color(255, 255, 0), "박향기");
|
||||
|
||||
|
||||
font:
|
||||
- file: "IBMPlexSansKR-Text.ttf"
|
||||
id: my_font
|
||||
size: 65
|
||||
glyphs: "0123456789:-박향기"
|
||||
|
||||
|
||||
image:
|
||||
- file: "zen.png"
|
||||
id: my_logo
|
||||
#resize: 50x50 # 원하는 크기로 조절
|
||||
type: RGB # 컬러 디스플레이이므로 COLOR 설정esphome
|
||||
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 5.9 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 49 KiB |