
pcb.png
27.9 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
esphome:
name: sensor-pyramide
friendly_name: Sensor Pyramide
esp8266:
board: nodemcuv2
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Sensor-Pyramide"
password: "fnlIp2hjHmrL"
captive_portal:
# Enable logging
logger:
api:
encryption:
key: !secret ESPHOME_ENCRYPTION_KEY
ota:
platform: esphome
password: !secret ota_password
sensor:
- platform: dht
pin: GPIO12
temperature:
name: "Wohnzimmer Temperatur"
unit_of_measurement: "°C"
humidity:
name: "Wohnzimmer Luftfeuchtigkeit"
unit_of_measurement: "g/m3"
update_interval: 60s
- platform: adc
pin: A0
name: Wohnzimmer Gas
binary_sensor:
- platform: gpio
pin: GPIO5
name: Wohnzimmer Bewegung
device_class: motion
- platform: gpio
pin: GPIO4
name: Wohnzimmer Licht
device_class: light
filters:
- invert:
- platform: gpio
pin: GPIO14
name: Wohnzimmer Ton
device_class: sound
filters:
- invert:
- delayed_off: 2s
switch:
- platform: gpio
pin: GPIO0
name: Wohnzimmer Buzzer
- platform: gpio
pin: 2
name: internal_led1
restore_mode: ALWAYS_ON
internal: true
- platform: gpio
pin: 16
name: internal_led1
restore_mode: ALWAYS_ON
internal: true
light:
- platform: neopixelbus
type: GRB
variant: WS2812
pin: GPIO13
num_leds: 12
name: "Wohnzimmer Pyramide LED"
id: pyramide_led
default_transition_length: 2s