-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathconfiguration.yaml
146 lines (140 loc) · 4.19 KB
/
configuration.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
134
135
136
137
138
139
140
141
142
143
144
145
146
# https://www.home-assistant.io/integrations/default_config/
default_config:
# https://www.home-assistant.io/integrations/logger/
logger:
default: info
logs:
custom_components.magic_areas: debug
# Example configuration.yaml entry
input_boolean:
lr_main_light:
name: LR Main Light
lr_task_light:
name: LR Task Light
lr_sleep_light:
name: LR Sleep Light
lr_accent_light:
name: LR Accent Light
fake_fan_for_climate:
name: Fake Fan for Climate
fake_door:
name: Fake Door
fake_motion:
name: Fake Motion
fake_cover:
name: Fake Cover
sleep_mode:
name: Sleep Mode
input_number:
lr_temp_c:
name: "Living Room Fake Temperature C"
min: 0
max: 50
lr_temp:
name: "Living Room Fake Temperature"
min: 34
max: 100
lr_ilum:
name: "Living Room Fake Illuminance"
min: 0
max: 1000
cover:
- platform: template
covers:
fake_cover:
device_class: shade
friendly_name: "Fake Shade"
value_template: "{{ is_state('input_boolean.fake_cover','on') }}"
unique_id: cover_fake_cover
open_cover:
service: input_boolean.turn_on
data:
entity_id: input_boolean.fake_cover
close_cover:
service: input_boolean.turn_off
data:
entity_id: input_boolean.fake_cover
template:
- binary_sensor:
- name: "LR Fake Door"
device_class: 'door'
unique_id: binary_sensor_lr_door
state: "{{ is_state('input_boolean.fake_door','on') }}"
- name: "LR Fake Motion"
device_class: 'motion'
unique_id: binary_sensor_lr_motion
state: "{{ is_state('input_boolean.fake_motion','on') }}"
- sensor:
- name: "LR Fake temperature C"
device_class: 'temperature'
state: "{{ states('input_number.lr_temp_c')|int(0) }}"
unique_id: sensor_lr_temp_c
unit_of_measurement: '°C'
- name: "LR Fake temperature"
device_class: 'temperature'
state: "{{ states('input_number.lr_temp')|int(0) }}"
unique_id: sensor_lr_temp
unit_of_measurement: '°F'
- name: "LR Fake illuminance"
device_class: 'illuminance'
state: "{{ states('input_number.lr_ilum')|int(0) }}"
unique_id: sensor_lr_ilum
unit_of_measurement: 'lx'
climate:
- platform: generic_thermostat
name: Fake Climate
heater: input_boolean.fake_fan_for_climate
ac_mode: true
target_sensor: sensor.lr_temperature
unique_id: climate_fake
light:
- platform: template
lights:
lr_main_light:
friendly_name: "LR Main Light"
value_template: "{{ is_state('input_boolean.lr_main_light', 'on') }}"
unique_id: lr_main_light
turn_on:
service: input_boolean.turn_on
data:
entity_id: input_boolean.lr_main_light
turn_off:
service: input_boolean.turn_off
data:
entity_id: input_boolean.lr_main_light
lr_task_light:
friendly_name: "LR Task Light"
value_template: "{{ is_state('input_boolean.lr_task_light', 'on') }}"
unique_id: lr_task_light
turn_on:
service: input_boolean.turn_on
data:
entity_id: input_boolean.lr_task_light
turn_off:
service: input_boolean.turn_off
data:
entity_id: input_boolean.lr_task_light
lr_sleep_light:
friendly_name: "LR Sleep Light"
value_template: "{{ is_state('input_boolean.lr_sleep_light', 'on') }}"
unique_id: lr_sleep_light
turn_on:
service: input_boolean.turn_on
data:
entity_id: input_boolean.lr_sleep_light
turn_off:
service: input_boolean.turn_off
data:
entity_id: input_boolean.lr_sleep_light
lr_accent_light:
friendly_name: "LR Accent Light"
value_template: "{{ is_state('input_boolean.lr_accent_light', 'on') }}"
unique_id: lr_accent_light
turn_on:
service: input_boolean.turn_on
data:
entity_id: input_boolean.lr_accent_light
turn_off:
service: input_boolean.turn_off
data:
entity_id: input_boolean.lr_accent_light