55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
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" |