-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmcu-air-office-r.yaml
122 lines (112 loc) · 2.5 KB
/
mcu-air-office-r.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
substitutions:
device: air-office-r
name: Office R Air Quality Monitor
name_short: Office R
comment: "DEV"
esphome:
name: mcu-${device}
comment: ${comment}
esp32:
board: m5stack-atom
# board: m5stamp-pico
framework:
type: esp-idf
# version: 5.2.1
# platform_version: 6.6.0
external_components:
- source: components
packages:
common: !include common/common.yaml
time:
- platform: homeassistant
id: ha_time
timezone: Europe/Bratislava
i2c:
# - id: i2c0
sda: 32
scl: 33
scan: true #false
frequency: 100kHz
# - id: i2c1
# sda: 25
# scl: 22
# scan: true #false
uart:
id: particle_uart
tx_pin: 21
rx_pin: 22
baud_rate: 9600
# binary_sensor:
# - platform: gpio
# # name: ${name} Button
# pin:
# number: 39
# inverted: true
light:
- platform: esp32_rmt_led_strip
# name: "${name} LED"
id: neo
rgb_order: GRB
pin: 27
num_leds: 1
# rmt_channel: 0
chipset: ws2812
restore_mode: ALWAYS_OFF
- platform: esp32_rmt_led_strip
name: "${name} NEO"
id: neo_strip
rgb_order: GRB
pin: 25
num_leds: 7
# rmt_channel: 1
chipset: ws2812
restore_mode: ALWAYS_OFF
effects:
- random:
- random:
name: "My Slow Random Effect"
transition_length: 30s
update_interval: 30s
- random:
name: "My Fast Random Effect"
transition_length: 4s
update_interval: 5s
- strobe:
- strobe:
name: Strobe Effect With Custom Values
colors:
- state: True
brightness: 100%
red: 100%
green: 90%
blue: 0%
duration: 500ms
- state: False
duration: 250ms
- state: True
brightness: 100%
red: 0%
green: 100%
blue: 0%
duration: 500ms
- flicker:
- flicker:
name: Flicker Effect With Custom Values
alpha: 95%
intensity: 1.5%
- addressable_rainbow:
- addressable_rainbow:
name: Rainbow Effect With Custom Values
speed: 10
width: 50
- addressable_scan:
- addressable_scan:
name: Scan Effect With Custom Values
move_interval: 100ms
sensor:
# https://blissair.com/what-is-pm-2-5.htm
- platform: pm1006
uart_id: particle_uart
update_interval: 20s
pm_2_5:
name: "${name_short} Particulate Matter 2.5µm Concentration"