-
Notifications
You must be signed in to change notification settings - Fork 0
/
hasslight.yaml
78 lines (73 loc) · 1.65 KB
/
hasslight.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
# !!! REPLACE ALL THE "hasslight_xxxxxx" WITH YOUR DEVICE_ID !!!
light:
- platform: mqtt
schema: json
name: "HassLight Holiday"
state_topic: "home/hasslight_xxxxxx"
command_topic: "home/hasslight_xxxxxx/set"
availability_topic: "home/hasslight_xxxxxx/availability"
effect: true
effect_list:
- "Christmas"
- "Candy Cane"
- "Holly Jolly"
- "Valentine"
- "Lovey Day"
- "St Patty"
- "Easter"
- "USA"
- "Independence"
- "Go Blue"
- "Hail"
- "Touchdown"
- "Halloween"
- "Punkin"
- "Thanksgiving"
- "Turkey Day"
- "BPM"
- "Confetti"
- "Cyclon Rainbow"
- "Dots"
- "Fire"
- "Glitter"
- "Juggle"
- "Lightning"
- "Noise"
- "Police All"
- "Police One"
- "Rainbow"
- "Rainbow with Glitter"
- "Ripple"
- "Sinelon"
- "Solid"
- "Twinkle"
brightness: true
rgb: true
optimistic: false
qos: 0
input_number:
led_animation_speed:
name: LED Animation Speed
initial: 100
min: 1
max: 100
step: 10
automation:
- alias: "LED Animation Speed"
initial_state: True
hide_entity: False
trigger:
- platform: state
entity_id: input_number.led_animation_speed
action:
- service: mqtt.publish
data_template:
topic: "home/hasslight_xxxxxx/set"
payload: '{"transition":{{ trigger.to_state.state | int }}}'
group:
hasslight:
name: HassLight
entities:
- light.hasslight_holiday
- input_number.led_animation_speed
- automation.led_animation_speed