-
Notifications
You must be signed in to change notification settings - Fork 0
/
washroom.yaml
68 lines (61 loc) · 1.34 KB
/
washroom.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
substitutions:
devicename: m5stick-atom-washroom
friendly_name: Washroom
esphome:
name: $devicename
packages:
base: !include common/base.yaml
# https://docs.m5stack.com/en/core/atom_lite
esp32:
board: m5stack-atom
framework:
type: arduino
i2c:
sda: 26
scl: 32
scan: true
# https://esphome.io/components/esp32_ble_beacon.html
esp32_ble_beacon:
type: iBeacon
uuid: 43271eec-ec0a-72ac-0500-ad0121ffd43e
major: 1 # Apartment
minor: 5 # Washroom
sensor:
# https://docs.m5stack.com/en/unit/co2
# https://esphome.io/components/sensor/scd4x.html
- platform: scd4x
address: 0x62
update_interval: 60s
co2:
id: co2
name: "${friendly_name} CO2"
temperature:
id: temperature
name: "${friendly_name} Temperature"
humidity:
id: humidity
name: "${friendly_name} Humidity"
binary_sensor:
# https://esphome.io/components/switch/gpio
- platform: gpio
pin:
number: 39
inverted: true
id: button
name: ${friendly_name} Button
on_press:
then:
- light.toggle: status_led
light:
# https://esphome.io/components/light/index.html
- platform: fastled_clockless
chipset: SK6812
pin: 27
num_leds: 1
rgb_order: GRB
id: status_led
name: ${friendly_name} LED
effects:
- random:
- flicker:
- addressable_rainbow: