-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhumitemp.yaml
70 lines (58 loc) · 1.43 KB
/
humitemp.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
esp32:
board: esp32-c3-devkitm-1
framework:
type: esp-idf
version: recommended
esphome:
name: humitemp
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
ap:
ssid: "HumiFallBack"
password: "humitemp"
improv_serial:
# Recommended so you can publish an MQTT topic to have esphome stay awake to receive an OTA.
# See : https://esphome.io/components/deep_sleep.html
mqtt:
broker: 192.168.1.1
username: mqtt
password: mqttpassword
on_message:
- topic: esphome/ota_mode
payload: 'ON'
then:
- deep_sleep.prevent: deep_sleep_1
- topic: esphome/go_to_sleep
payload: 'ON'
then:
- deep_sleep.enter: deep_sleep_1
i2c:
sda: 3
scl: 4
scan: true
id: bus_a
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.
hardware_uart: USB_SERIAL_JTAG
# Enable Home Assistant API
api:
ota:
sensor:
- platform: sht3xd
temperature:
name: "humitemp Temperature"
humidity:
name: "humitemp Humidity"
address: 0x44
update_interval: 60s
# Customize as you wish
# Make sure to keep it asleep long enough to avoid heating up the ESP32
deep_sleep:
run_duration: 15s
sleep_duration: 5min
id: deep_sleep_1