-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgpio_sensor.yaml
94 lines (85 loc) · 1.75 KB
/
gpio_sensor.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
## 小米/hass 开关状态桥接器 用于双端同步状态, 可作为寄存器使用
esphome:
name: esp32c3-gpio-sensor
# name_add_mac_suffix: true
platformio_options:
board_build.mcu: esp32c3
board_build.variant: esp32c3
esp32:
variant: ESP32C3
board: airm2m_core_esp32c3
framework:
type: esp-idf
sdkconfig_options:
CONFIG_BT_BLE_50_FEATURES_SUPPORTED: y
CONFIG_BT_BLE_42_FEATURES_SUPPORTED: y
CONFIG_ESP_TASK_WDT_TIMEOUT_S: "10"
api:
web_server:
port: 80
ota:
- platform: esphome
password: 123456
captive_portal:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# output_power: 19.0dB
fast_connect: true
ap:
password: "12345678"
i2c:
id: bus_a
sda: GPIO04
scl: GPIO05
frequency: 200kHz
scan: true
sensor:
- platform: wifi_signal
name: "WiFi Signal Sensor"
update_interval: 120s
- platform: adc
pin: GPIO02
name: "adc01"
- platform: aht10
variant: AHT10
i2c_id: bus_a
temperature:
name: "AHT10 Temperature"
humidity:
name: "AHT10 Humidity"
update_interval: 90s
# bluetooth_proxy:
# active: true
# esp32_ble_tracker:
# scan_parameters:
# active: true
# # interval: 1300ms
# # window: 1300ms
# Example configuration entry
binary_sensor:
- platform: gpio
pin: GPIO00
name: "sensor01"
filters:
- delayed_on: 20ms
- platform: gpio
pin: GPIO01
name: "sensor02"
filters:
- delayed_on: 20ms
- platform: gpio
pin: GPIO18
name: "sensor03"
filters:
- delayed_on: 20ms
- platform: gpio
pin: GPIO19
name: "sensor04"
filters:
- delayed_on: 20ms
- platform: gpio
pin: GPIO06
name: "radar state"
filters:
- delayed_on: 20ms