-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathlaundry-led-strip.yaml
53 lines (47 loc) · 992 Bytes
/
laundry-led-strip.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
---
substitutions:
name: laundry-led-strip
friendly_name: "Laundry LED Strip"
packages:
common: !include modules/common-8266.yaml
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: true
name: "Button"
disabled_by_default: true
on_multi_click:
- timing:
- ON for at most 1s
- OFF for at least 0.2s
then:
- light.toggle: light1
- timing:
- ON for at least 4s
then:
- button.press: restart_button
output:
- platform: esp8266_pwm
id: red_output
pin: GPIO4
- platform: esp8266_pwm
id: green_output
pin: GPIO12
- platform: esp8266_pwm
id: blue_output
pin: GPIO14
light:
- platform: monochromatic
name: "1"
id: light1
output: red_output
- platform: monochromatic
name: "2"
id: light2
output: green_output
- platform: monochromatic
name: "3"
id: light3
output: blue_output