-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexample-idf.yaml
More file actions
97 lines (87 loc) · 2.36 KB
/
Copy pathexample-idf.yaml
File metadata and controls
97 lines (87 loc) · 2.36 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
substitutions:
# Set the transmitter id of your Dexcom device here
transmitter_id: 8YD26N
use_alternative_bt_channel: "False"
esphome:
name: "dexcom-example-idf"
external_components:
- source: github://Fabian-Schmidt/esphome-dexcom
# refresh: always
# - source:
# type: local
# path: components
esp32:
board: esp32dev
framework:
type: esp-idf
logger:
# level: VERBOSE
# level: DEBUG
level: INFO
deep_sleep:
esp32_ble_tracker:
scan_parameters:
interval: 10ms
window: 10ms
active: false
dexcom_ble_client:
id: dexcom_ble_client_id
transmitter_id: ${transmitter_id}
use_alternative_bt_channel: ${use_alternative_bt_channel}
on_disconnect:
- deep_sleep.enter:
# Every 5 minutes Dexcom sensor wakes up.
# Pre wake up connect to WiFi, API, MQTT etc.
sleep_duration: 4.5min
sensor:
- platform: dexcom_ble_client
type: GLUCOSE_IN_MG_DL
name: Glucose in mg/dl
# expire_after: 10.5min # if using mqtt recommendation to set `expire_after` option.
- platform: dexcom_ble_client
type: GLUCOSE_IN_MMOL_L
name: Glucose in mmol/l
- platform: dexcom_ble_client
type: GLUCOSE_TREND
name: Glucose trend
- platform: dexcom_ble_client
type: GLUCOSE_PREDICT_IN_MG_DL
name: Glucose predict in mg/dl
- platform: dexcom_ble_client
type: GLUCOSE_PREDICT_IN_MMOL_L
name: Glucose predict in mmol/l
- platform: dexcom_ble_client
type: SENSOR_AGE
name: Sensor age
- platform: dexcom_ble_client
type: SENSOR_SESSION_AGE
name: Sensor session age
- platform: dexcom_ble_client
type: SENSOR_REMAINING_LIFETIME
name: Sensor remaining lifetime
- platform: dexcom_ble_client
type: SENSOR_SESSION_REMAINING_LIFETIME
name: Sensor session remaining lifetime
text_sensor:
- platform: dexcom_ble_client
type: STATUS
name: Status
- platform: dexcom_ble_client
type: CALIBRATION_STATE
name: Calibration state
binary_sensor:
- platform: dexcom_ble_client
type: SENSOR_LOW_BATTERY
name: Sensor low battery
- platform: dexcom_ble_client
type: SENSOR_OKAY
name: Sensor okay
- platform: dexcom_ble_client
type: SENSOR_FAILED
name: Sensor failed
- platform: dexcom_ble_client
type: SENSOR_STOPPED
name: Sensor stopped
- platform: dexcom_ble_client
type: SENSOR_TRANSITIONAL
name: Sensor transitional