-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathl24-pueblo-leds-edu.yaml
97 lines (92 loc) · 2.31 KB
/
l24-pueblo-leds-edu.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
substitutions:
wifi_ip: 192.168.104.10
devicename: l24-pueblo-leds-edu
friendly_name: Pueblo leds Edu
delayed_off: "300ms"
led1_name: bed
led1_num_leds: "39"
led2_name: unused
led2_num_leds: "10"
packages:
#Include location specific settings
location: !include locations/pueblo.yaml
#Include common definitions for home (wifi, web server, etc)
settings: !include settings/common_esp32.yaml
#Include device definition
device: !include devices/pcb-led_rf/v1.yaml
light:
- platform: partition
id: led1_partition1
name: "left bed"
segments:
- id: led1
from: 34
to: 38
effects:
!include devices/includes/lights-effects/addressable_effects.yaml
- platform: partition
id: led1_partition2
name: "right bed"
segments:
- id: led1
from: 0
to: 4
effects:
!include devices/includes/lights-effects/addressable_effects.yaml
binary_sensor:
# Left pushbutton (ventana)
- platform: remote_receiver
name: "left_pushbotton left"
rc_switch_raw:
code: "111011000011111111010100"
protocol: 6
filters:
- delayed_off: ${delayed_off}
on_press:
then:
- light.toggle: led1_partition1
- platform: remote_receiver
name: "left_pushbotton center"
rc_switch_raw:
code: "111011000011111111011000"
protocol: 6
filters:
- delayed_off: ${delayed_off}
- platform: remote_receiver
name: "left_pushbotton right"
rc_switch_raw:
code: "111011000011111111010010"
protocol: 6
filters:
- delayed_off: ${delayed_off}
on_press:
then:
- light.toggle: led1
# Right pushbutton (armario)
- platform: remote_receiver
name: "right_pushbotton left"
rc_switch_raw:
code: "110100100000010100000100"
protocol: 6
filters:
- delayed_off: ${delayed_off}
on_press:
then:
- light.toggle: led1_partition2
- platform: remote_receiver
name: "right_pushbotton center"
rc_switch_raw:
code: "1101001000000101000"
protocol: 6
filters:
- delayed_off: ${delayed_off}
- platform: remote_receiver
name: "right_pushbotton right"
rc_switch_raw:
code: "110100100000010100000010"
protocol: 6
filters:
- delayed_off: ${delayed_off}
on_press:
then:
- light.toggle: led1