-
Notifications
You must be signed in to change notification settings - Fork 0
/
ac.yaml
45 lines (45 loc) · 921 Bytes
/
ac.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
packet:
- >
{% set room=trigger.topic.split('/')[0] %}
{% set temperature=states.climate[room].attributes.temperature | round %}
{% set swing=states.climate[room].attributes.swing_mode %}
{% set fan=states.climate[room].attributes.fan_mode %}
{{
{"high": {
18: {
"on": "JgDWA...==",
"off": "JgDWA...=="
}
},
"medium": {
18: {
"on": "JgDWA...==",
"off": "JgDWA...=="
}
},
"low": {
18: {
"on": "JgDWA...==",
"off": "JgDWA...=="
}
},
"high": {
19: {
"on": "JgDWA...==",
"off": "JgDWA...=="
}
},
"medium": {
19: {
"on": "JgDWA...==",
"off": "JgDWA...=="
}
},
"low": {
19: {
"on": "JgDWA...==",
"off": "JgDWA...=="
}
}
}[fan][temperature][swing]
}}