-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathch1-002_esphome-az32002.yaml
61 lines (50 loc) · 1.09 KB
/
ch1-002_esphome-az32002.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
esphome:
name: esphome-az32002
friendly_name: esphome-az32002
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "7H7Z1sguuw7MJ0/cDt9nKOEbwzpxaYEOBi0HeDTu5ec="
ota:
password: "4e304262a9942cf9000770920945e11f"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esphome-Az32002 Fallback Hotspot"
password: "B3VZeT6AoXEm"
captive_portal:
sensor:
- platform: dht
pin: GPIO 26
temperature:
name: "Temperature Sensor 2Room "
humidity:
name: "Humidity Sensor 2Room "
update_interval: 60s
binary_sensor:
- platform: gpio
pin: GPIO25
id: taster
on_press:
then:
- switch.toggle: my_led
- delay: 500ms
- switch.toggle: my_led
- delay: 500ms
- switch.toggle: my_led
- delay: 500ms
- switch.toggle: my_led
- delay: 500ms
switch:
- platform: gpio
pin: GPIO27
id: my_led
name: LED27 am GPIO