-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathesphome.yaml
54 lines (43 loc) · 1.14 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
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
## Below is needed if you are using a DS18B20 temperature sensor. Otherwise, you can remove
# How to find your sensor ID
# https://esphome.io/components/one_wire#one-wire
- platform: dallas_temp
address: 0x9f00000e4a42eb28 # You ned to put your sensor ID in here
name: "mysensor"
one_wire:
- platform: gpio
pin: GPIO10