-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclimate.yaml
136 lines (116 loc) · 3.86 KB
/
climate.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
input_number:
auto_off_timer:
name: A/C Auto Off
initial: 90
min: 30
max: 300
step: 30
mode: box
#### Kogan heater toggle high and low
#######################################################################################
input_boolean:
heater_toggle_mode:
switch:
- platform: template
switches:
heater_mode:
value_template: >-
{% if is_state('input_boolean.heater_toggle_mode','on') %} On {%
else %} Off {% endif %}
friendly_name: Heater (High/Low)
icon_template: |-
{% if is_state('input_boolean.heater_toggle_mode','on') %}
mdi:thermometer-chevron-up
{% else %}
mdi:thermometer-chevron-down
{% endif %}
turn_on:
- service: scene.turn_on
data:
entity_id: scene.jude_s_heater_high
- service: input_boolean.turn_on
data:
entity_id: input_boolean.heater_toggle_mode
turn_off:
- service: scene.turn_on
data:
entity_id: scene.jude_s_heater_low
- service: input_boolean.turn_off
data:
entity_id: input_boolean.heater_toggle_mode
#### A/C AUTOMATION SENSORS ###########################################################
#### Source: https://community.home-assistant.io/t/a-c-automation/110159
#######################################################################################
sensor:
- platform: template
sensors:
living_temp:
friendly_name: "Living Temperature"
unit_of_measurement: "°C"
device_class: temperature
value_template: "{{ state_attr('climate.living', 'current_temperature') }}"
bed_1_temp:
friendly_name: "Bed 1 Temperature"
unit_of_measurement: "°C"
device_class: temperature
value_template: "{{ state_attr('climate.bed_1', 'current_temperature') }}"
bed_2_temp:
friendly_name: "Bed 2 Temperature"
unit_of_measurement: "°C"
device_class: temperature
value_template: "{{ state_attr('climate.bed_2', 'current_temperature') }}"
bed_3_temp:
friendly_name: "Bed 3 Temperature"
unit_of_measurement: "°C"
device_class: temperature
value_template: "{{ state_attr('climate.bed_3', 'current_temperature') }}"
in_duct_temp:
friendly_name: "Supply Temperature"
unit_of_measurement: "degrees"
value_template: "{{ state_attr('climate.izone_controller', 'supply_temperature') }}"
new_lambton_temp:
friendly_name: "BOM Temperature"
unit_of_measurement: "degrees"
value_template: "{{ state_attr('weather.new_lambton', 'temperature') }}"
#### A/C TEMP RANGE ###################################################################
#### Source: https://community.home-assistant.io/t/a-c-automation/110159
#######################################################################################
## ON - bad zone temp ##
binary_sensor:
- platform: threshold
name: living_temp_threshold_on
entity_id: sensor.living_temp
lower: 16
upper: 24
hysteresis: 0.0
- platform: threshold
entity_id: sensor.bed_1_temp
lower: 16
upper: 24
hysteresis: 0.0
name: bed_1_temp_threshold_on
- platform: threshold
entity_id: sensor.bed_2_temp
lower: 16
upper: 24
hysteresis: 0.0
name: bed_2_temp_threshold_on
## OFF - good zone temp ##
- platform: threshold
entity_id: sensor.living_temp
lower: 19
upper: 22.5
hysteresis: 0.0
name: living_temp_threshold_off
- platform: threshold
entity_id: sensor.bed_1_temp
lower: 19.5
upper: 22.5
hysteresis: 0.0
name: bed_1_temp_threshold_off
- platform: threshold
entity_id: sensor.bed_2_temp
lower: 20
upper: 22.5
hysteresis: 0.0
name: bed_2_temp_threshold_off