-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmcu-tv-light.yaml
63 lines (57 loc) · 1.2 KB
/
mcu-tv-light.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
substitutions:
device: tv-light
name: TV Light
comment: "Ground floor, Living room: TV Rack Light"
esphome:
name: mcu-${device}
comment: ${comment}
esp8266:
board: esp8285
packages:
common: !include common/common_esp8266.yaml
## H801 LED module
# Function Pin Channel
# R GPIO15 PWM1
# G GPIO13 PWM2
# B GPIO12 PWM3
# W1 GPIO14 PWM4
# W2 GPIO04 PWM5
# LED D1 R GPIO05
# LED D2 G GPIO01
light:
- platform: status_led
id: status_led_id
pin: 5
- platform: monochromatic
name: "${name}"
output: pwm_cold_white
effects:
- flicker:
name: Flicker
alpha: 95%
intensity: 1.5%
- strobe:
name: Slow Strobe
- strobe:
name: Fast Strobe
colors:
- state: true
duration: 100ms
- state: false
duration: 100ms
output:
- platform: esp8266_pwm
id: pwm_blue
pin: GPIO12
- platform: esp8266_pwm
id: pwm_red
pin: GPIO15
- platform: esp8266_pwm
id: pwm_green
pin: GPIO13
- platform: esp8266_pwm
id: pwm_cold_white
pin: GPIO14
- platform: esp8266_pwm
id: pwm_warm_white
pin: GPIO04