-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
233 lines (211 loc) · 6.01 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
homeassistant:
name: Home
latitude: !secret home_latitude
longitude: !secret home_longitude
elevation: !secret home_elevation
unit_system: imperial
time_zone: !secret time_zone
auth_mfa_modules:
- type: totp
auth_providers:
- type: homeassistant
packages: !include_dir_named packages
internal_url: !secret ha_base_url
external_url: !secret ha_base_url
system_health:
updater:
reporting: false
include_used_components: false
hacs:
token: !secret hacs_token
recorder:
db_url: !secret db_url
auto_purge: true
purge_keep_days: 10
include:
domains:
- sensor
- binary_sensor
- switch
- light
- media_player
history:
#utility_meter:
# daily_energy:
# source: sensor.home_power_watts
# cycle: daily
# monthly_energy:
# source: sensor.home_power_watts
# cycle: monthly
sensor:
# - platform: mqtt
# state_topic: emon/home/V1
# name: Home Power Voltage 1
# unit_of_measurement: "V"
# - platform: mqtt
# state_topic: emon/home/V2
# name: Home Power Voltage 2
# unit_of_measurement: "V"
# - platform: mqtt
# state_topic: emon/home/PF
# name: Home Power Factor
# - platform: mqtt
# state_topic: emon/home/freq
# unit_of_measurement: "hz"
# name: Home Power Frequency
# - platform: mqtt
# state_topic: emon/home/temp
# name: Home Power Temperature
# device_class: temperature
# unit_of_measurement: "°C"
# - platform: mqtt
# state_topic: emon/home/rssi
# name: Home Power RSSI
# device_class: signal_strength
# unit_of_measurement: "dBm"
- platform: mqtt
state_topic: emon/home/W
name: Home Power Watts
device_class: power
unit_of_measurement: "W"
- platform: template
sensors:
basement_smoke_alarm_status:
friendly_name: 'Downstairs Smoke Alarm Status'
value_template: >-
{% if is_state("sensor.basement_smoke_co_alarm_alarm_level", "255") and is_state("sensor.basement_smoke_co_alarm_alarm_type", "1") %}
smoke
{% elif is_state("sensor.basement_smoke_co_alarm_alarm_level", "255") and is_state("sensor.basement_smoke_co_alarm_alarm_type", "2") %}
carbon monoxide
{% else %}
idle
{% endif %}
icon_template: >-
{% if is_state("sensor.basement_smoke_co_alarm_alarm_level", "255") and is_state("sensor.basement_smoke_co_alarm_alarm_type", "1") %}
mdi:fire
{% elif is_state("sensor.basement_smoke_co_alarm_alarm_level", "255") and is_state("sensor.basement_smoke_co_alarm_alarm_type", "2") %}
mdi:cloud-outline
{% else %}
mdi:smoke-detector
{% endif %}
http:
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
- 192.168.3.10
frontend:
lovelace:
mobile_app:
device_tracker:
person:
map:
config:
logger:
default: info
# logs:
# homeassistant.components.ozw: debug
sun:
#roku:
# - host: 10.52.110.13
wake_on_lan:
panasonic_viera:
- host: 10.52.110.10
name: "Basement TV"
turn_on_action:
- service: wake_on_lan.send_magic_packet
data:
broadcast_address: 10.52.110.255
mac: 8c:c1:21:60:64:f0
script:
media_start:
sequence:
- service: light.turn_on
data:
entity_id: light.basement
transition: 1
brightness: 150
- service: media_player.turn_on
data:
entity_id: media_player.basement_tv
- delay: '00:00:05'
- service: media_player.select_source
data:
entity_id: media_player.basement_receiver_main
source: 'hdmi2' # roku
- delay: '00:00:20'
- service: light.turn_on
data:
entity_id: light.basement
transition: 10
brightness: 3
media_pause:
alias: Media Pause
sequence:
- service: light.turn_on
data:
entity_id: light.basement
transition: 2
brightness: 255
zwave_inovelli_led_color:
alias: Change LED color on Inovelli Switch
sequence:
- service: ozw.set_config_parameter
data_template:
node_id: '{{ nodeid }}'
parameter: 16
value: >
{% if color is number and color >= 0 and color <= 255 %}
{% set hx = color %}
{% elif color == "red" %}
{% set hx = 1 %}
{% elif color == "orange" %}
{% set hx = 21 %}
{% elif color == "green" %}
{% set hx = 85 %}
{% elif color == "blue" %}
{% set hx = 170 %}
{% elif color == "pink" %}
{% set hx = 234 %}
{% elif color == "yellow" %}
{% set hx = 42 %}
{% else %}
{% set hx = 127 %}
{% endif %}
{% if level is number and level >= 0 and level <= 10 %}
{% set lx = level %}
{% else %}
{% set lx = 10 %}
{% endif %}
{% if duration is number %}
{% if duration >= 0 and duration <= 255 %}
{% set dx = duration %}
{% else %}
{% set dx = 10 %}
{% endif %}
{% elif duration == "on" %}
{% set dx = 255 %}
{% else %}
{% set dx = 10 %}
{% endif %}
{% if effect is number and effect >= 0 and effect <= 4 %}
{% set ex = effect %}
{% elif effect == "off" %}
{% set ex = 0 %}
{% elif effect == "solid" %}
{% set ex = 1 %}
{% elif effect == "fast_blink" %}
{% set ex = 2 %}
{% elif effect == "strobe" %}
{% set ex = 2 %}
{% elif effect == "slow_blink" %}
{% set ex = 3 %}
{% else %}
{% set ex = 4 %}
{% endif %}
{{( (hx) + (lx * (2**8)) + (dx * (2**16)) + (ex * (2**24))) | int}}
input_boolean:
vacation:
name: Vacation Mode
initial: off
icon: mdi:bed
automation: !include automations.yaml