forked from dz0ny/esphome-bthome
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathesp32_devkit_basic.yaml
More file actions
59 lines (48 loc) · 1.17 KB
/
Copy pathesp32_devkit_basic.yaml
File metadata and controls
59 lines (48 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# BTHome ESP32 DevKit Basic Example
# Broadcasts internal CPU temperature via BLE using BTHome v2 protocol
# Compatible with Home Assistant's BTHome integration
#
# Board: Generic ESP32 DevKit V1 (most common ESP32 development board)
# This example works out-of-the-box with no external sensors required
esphome:
name: bthome-esp32-devkit
friendly_name: BTHome ESP32 DevKit
esp32:
board: esp32dev
framework:
type: esp-idf
logger:
wifi:
enable_on_boot: false
ap: {}
power_save_mode: HIGH
external_components:
- source:
type: local
path: components
components: [ bthome ]
# Required for ESP32 BLE
esp32_ble:
id: ble
# Internal CPU temperature sensor (no external hardware needed)
sensor:
- platform: internal_temperature
name: "CPU Temperature"
id: cpu_temp
update_interval: 30s
# Uptime sensor to track device runtime
- platform: uptime
name: "Uptime"
id: uptime_sensor
update_interval: 60s
# BTHome configuration
bthome:
# Advertising interval (max 10240ms)
min_interval: 5s
max_interval: 10s
# TX power: -12, -9, -6, -3, 0, 3, 6, 9 dBm
tx_power: 0
# Sensor measurements to broadcast
sensors:
- type: temperature
id: cpu_temp