-
Notifications
You must be signed in to change notification settings - Fork 28
/
automations.yaml
45 lines (44 loc) · 1.07 KB
/
automations.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
- id: wled_speed
alias: wled_speed
trigger:
- entity_id: input_number.ledspeed
platform: state
condition: []
action:
- data_template:
topic: wled/all/api
payload: SX={{ states('input_number.ledspeed') | int }}
service: mqtt.publish
- id: wled_intensity
alias: wled_intensity
trigger:
- entity_id: input_number.ledintensity
platform: state
condition: []
action:
- data_template:
topic: wled/all/api
payload: IX={{ states('input_number.ledintensity') | int }}
service: mqtt.publish
- id: wled_palette
alias: WLED Palette
trigger:
- platform: state
entity_id: input_select.wled_palette_list
condition: []
action:
- service: mqtt.publish
data_template:
topic: wled/all/api
payload: "{{ states('input_select.wled_palette_list') }}"
- id: wled_presets
alias: WLED Presets
trigger:
- platform: state
entity_id: input_select.wled_presets
condition: []
action:
- service: mqtt.publish
data_template:
topic: wled/all/api
payload: "{{ states('input_select.wled_presets') }}"