-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathautomations.yaml
54 lines (50 loc) · 1.26 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
45
46
47
48
49
50
51
52
53
54
# Light state control
- alias: mqtt_light_state
trigger:
- platform: mqtt
topic: 'home/light/+/state/set'
action:
- service: script.mqtt_light_state
data:
topic: "{{ trigger.topic }}"
payload: "{{ trigger.payload }}"
# Light brightness control
- alias: mqtt_light_brightness
trigger:
- platform: mqtt
topic: 'home/light/+/brightness/set'
action:
- service: script.mqtt_light_brightness
data:
topic: "{{ trigger.topic }}"
payload: "{{ trigger.payload }}"
# Light colour temperature control
- alias: mqtt_light_ct
trigger:
- platform: mqtt
topic: 'home/light/+/color_temp/set'
action:
- service: script.mqtt_light_ct
data:
topic: "{{ trigger.topic }}"
payload: "{{ trigger.payload }}"
# Switch state control
- alias: mqtt_switch_state
trigger:
- platform: mqtt
topic: 'home/switch/+/state/set'
action:
- service: script.mqtt_switch_state
data:
topic: "{{ trigger.topic }}"
payload: "{{ trigger.payload }}"
# Cover position control
- alias: mqtt_cover_position
trigger:
- platform: mqtt
topic: 'home/cover/+/current_position/set'
action:
- service: script.mqtt_cover_position
data:
topic: "{{ trigger.topic }}"
payload: "{{ trigger.payload }}"