-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathslave-esp32.yaml
More file actions
72 lines (61 loc) · 1.36 KB
/
slave-esp32.yaml
File metadata and controls
72 lines (61 loc) · 1.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
esphome:
name: esp32-temprature-1
friendly_name: ESP32-Temprature-1
platformio_options:
build_flags:
- -DREAD_SENSORS_TIMEOUT=5000
- -DRESPONSE_TIMEOUT=4000
# - -DFAKE_DEEP_SLEEP_TIME=1000
esp32:
board: esp32dev
framework:
type: arduino
external_components:
source:
type: git
url: https://gitlab.com/ripnetuk-public/espnow/ripnetuk-esphome-easynow.git
ref: main
refresh: 1min
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "REDACTED"
ota:
- platform: esphome
password: "REDACTED"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32-Temprature-1"
password: "uyufW6xlYQIw"
captive_portal:
i2c:
- sda: 21
scl: 22
scan: true
id: bus_a
sensor:
- platform: bmp3xx_i2c
i2c_id: bus_a
temperature:
id: "outside_temperature"
name: "Outside Temperature"
oversampling: 16x
pressure:
id: "outside_pressure"
name: "Outside Pressure"
address: 0x77
update_interval: 10s
proxy_transmitter:
espnow_channel: 11
receiver_mac_address: "DC:54:75:EB:D5:EC"
deep_sleep_length: 20s
sensors:
- sensor: outside_temperature
proxy_id: "now_temperature"
- sensor: outside_pressure
proxy_id: "now_pressure"