forked from mad-ady/home-assistant-customizations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ir-ac-automations.yaml
51 lines (49 loc) · 1.36 KB
/
ir-ac-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
#The automations should go under your automations.yaml file in Home Assistant
- action:
- alias: LG AC MQTT Set Temperature
data:
payload_template: '{{ states.input_slider.lg_ac_temperature.state }}'
qos: 0
retain: true
topic: ha/lg_ac/temperature/set
service: mqtt.publish
alias: LG AC Set IR temperature
id: '1499081218012'
trigger:
- entity_id: input_slider.lg_ac_temperature
platform: state
- action:
- alias: LG AC MQTT Set Fan
data:
payload_template: '{{ states.input_select.lg_ac_fan_mode.state }}'
qos: 0
retain: true
topic: ha/lg_ac/fan/set
service: mqtt.publish
alias: LG AC Set IR Fan
id: '1499152161'
trigger:
- entity_id: input_select.lg_ac_fan_mode
platform: state
- action:
- alias: LG AC Set temperature slider
service: input_slider.select_value
data_template:
entity_id: input_slider.lg_ac_temperature
value: '{{trigger.payload}}'
alias: LG AC Read temperature via MQTT
id: '1499423002'
trigger:
- platform: mqtt
topic: "ha/lg_ac/temperature/get"
- action:
- alias: LG AC Set fan combo box
service: input_select.select_option
data_template:
entity_id: input_select.lg_ac_fan_mode
option: '{{trigger.payload}}'
alias: LG AC Read temperature via MQTT
id: '1499423003'
trigger:
- platform: mqtt
topic: "ha/lg_ac/fan/get"