-
Notifications
You must be signed in to change notification settings - Fork 0
/
tagtuner-for-tagreader-light.yaml
56 lines (55 loc) · 1.38 KB
/
tagtuner-for-tagreader-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
# I was not able to use light with tagreader hardware and TagTuner firmware.
# My nodemcu is restarting every time I try to turn on this light.
# Please experiment on your own.
light:
- platform: neopixelbus
variant: WS2812
id: led1
pin: $ledpin
num_leds: 1
type: grb
restore_mode: ALWAYS_OFF
default_transition_length: 0s
flash_transition_length: 0s
effects:
- strobe:
name: blinkWhite
colors:
- state: true
brightness: 60%
red: 100%
green: 100%
blue: 100%
duration: 250ms
- state: false
duration: 50ms
- strobe:
name: blinkRed
colors:
- state: true
brightness: 100%
red: 100%
green: 0%
blue: 0%
duration: 250ms
- state: false
duration: 50ms
- strobe:
name: blinkGreen
colors:
- state: true
brightness: 100%
red: 0%
green: 100%
blue: 0%
duration: 250ms
- state: false
duration: 50ms
switch:
- platform: template
name: "LED enabled"
id: ledon
icon: mdi:alarm-light-outline
optimistic: true
restore_mode: RESTORE_DEFAULT_ON
entity_category: config