-
Notifications
You must be signed in to change notification settings - Fork 1
/
esphome.yaml
43 lines (34 loc) · 831 Bytes
/
esphome.yaml
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
esp32:
board: esp32-c3-devkitm-1
framework:
type: esp-idf
version: recommended
esphome:
name: pressure-sensor
platformio_options:
board_build.flash_mode: dio # If you don't specify this using esp-idf framework, the device will boot-loop.
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
captive_portal:
# Enable logging
logger:
# Use the ESP32-C3-MINI's native USB port for serial logging. Comment this out if you want to use the pin header.
# Seems buggy.
hardware_uart: USB_SERIAL_JTAG
# Enable Home Assistant API
api:
ota:
i2c:
sda: 6
scl: 7
scan: true
id: bus_a
sensor:
- platform: xgzp68xx
k_value: 8192 # 8192 for +/- 0.5kPa sensor
temperature:
name: "press Temperature"
pressure:
name: "press diff pressure"
update_interval: 5s