-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbedrgb.yaml
123 lines (107 loc) · 2.28 KB
/
bedrgb.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
123
esphome:
name: bedrgb
esp8266:
board: nodemcuv2
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: !secret encryption_key
ota:
- platform: esphome
password: !secret ota_pwd
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_pwd
manual_ip:
static_ip: 10.0.16.17
gateway: 10.0.16.1
subnet: 255.255.255.0
captive_portal:
sensor:
- platform: wifi_signal
name: "BedRGB WiFi Strength"
update_interval: 480s
binary_sensor:
- platform: status
name: "BedRGB Status"
# Example configuration entry
light:
- platform: rgb
name: "Head of Bed RGB"
red: headred
green: headgreen
blue: headblue
restore_mode: RESTORE_DEFAULT_OFF
effects:
- pulse:
- pulse:
name: "Fast Pulse"
transition_length: 0.5s
update_interval: 0.5s
min_brightness: 0%
max_brightness: 100%
- pulse:
name: "Slow Pulse"
# transition_length: 1s # defaults to 1s
update_interval: 2s
- random:
- random:
name: "Fast Random"
transition_length: 1s
update_interval: 2s
- flicker:
- platform: rgb
name: "Foot of Bed RGB"
red: foodred
green: footgreen
blue: footblue
restore_mode: RESTORE_DEFAULT_OFF
effects:
- pulse:
- pulse:
name: "Fast Pulse"
transition_length: 0.5s
update_interval: 0.5s
min_brightness: 0%
max_brightness: 100%
- pulse:
name: "Slow Pulse"
# transition_length: 1s # defaults to 1s
update_interval: 2s
- random:
- random:
name: "Fast Random"
transition_length: 1s
update_interval: 2s
- flicker:
output:
- platform: esp8266_pwm
id: headred
pin: D3
inverted: true
- platform: esp8266_pwm
id: headgreen
pin: D4
inverted: true
max_power: 30%
- platform: esp8266_pwm
id: headblue
pin: D5
inverted: true
max_power: 20%
- platform: esp8266_pwm
id: foodred
pin: D0
inverted: true
- platform: esp8266_pwm
id: footgreen
pin: D1
inverted: true
max_power: 30%
- platform: esp8266_pwm
id: footblue
pin: D2
inverted: true
max_power: 20%