-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
171 lines (154 loc) · 5.9 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
# Core components and setup
homeassistant:
name: Home
latitude: 47.7396
longitude: -122.3426
elevation: 129
unit_system: imperial
time_zone: America/Los_Angeles
customize:
binary_sensor.littlewindow: { friendly_name: Little Window }
binary_sensor.diningwindow: { friendly_name: Dining Window }
binary_sensor.primarymotion: { friendly_name: Motion }
binary_sensor.livingroomwindow: { friendly_name: Living Room Window }
binary_sensor.officewindow: { friendly_name: Office Window }
binary_sensor.backdoor: { friendly_name: Back Door }
binary_sensor.bedroomslider: { friendly_name: Bedroom Slider }
binary_sensor.garagedoor: { friendly_name: Garage Door }
binary_sensor.patioslider: { friendly_name: Patio Slider }
binary_sensor.frontdoor: { friendly_name: Front Door }
climate.thermostat_heating_1_9_1: { friendly_name: Thermostat }
climate.thermostat_cooling_1_9_2: { hidden: true }
climate.thermostat_heating_econ_9_11: { hidden: true }
climate.thermostat_cooling_econ_9_12: { hidden: true }
group.all_automations: { emulated_hue: false }
group.all_locks: { emulated_hue: false }
group.all_scripts: { emulated_hue: false }
group.all_switches: { emulated_hue: false }
lock.backdoorlock_locked_17_0: { friendly_name: Backdoor Lock }
lock.frontdoorlock_locked_16_0: { friendly_name: Frontdoor Lock }
sensor.frontdoorlock_alarm_type_16_0: { hidden: true }
sensor.frontdoorlock_alarm_level_16_1: { hidden: true }
sensor.backdoorlock_alarm_type_17_0: { hidden: true }
sensor.backdoorlock_alarm_level_17_1: { hidden: true }
switch.alarm: { friendly_name: Alarm, emulated_hue: false }
switch.bedroomlight_switch_10_0: { friendly_name: Bedroom Light }
switch.doorbell: { hidden: true, emulated_hue: false }
switch.drivewaylight_switch_12_0: { friendly_name: Driveway Light }
switch.fan_switch_21_0: { friendly_name: House Fan }
switch.frontdoorlight_switch_3_0: { friendly_name: Frontdoor Light }
switch.garagedoor: { friendly_name: Garage Door }
switch.garagelight_switch_11_0: { friendly_name: Garage Light }
switch.hotwaterswitch_switch_20_0: { friendly_name: Hot Water }
switch.livingroomlight_switch_2_0: { friendly_name: Livingroom Light }
switch.thermostat_switch_9_0: { hidden: true, emulated_hue: false }
switch.warning: { hidden: true, emulated_hue: false }
logger:
default: info
logs:
homeassistant.core: warning
homeassistant.components.http: warning
homeassistant.components.sensor.command_line: warning
custom_components: debug
custom_components.bwio: info
group:
outdoorlights:
name: Outdoor Lights
entities:
- switch.drivewaylight_switch_12_0
- switch.frontdoorlight_switch_3_0
http: !include http.yaml
automation: !include automation.yaml
alarm_control_panel: !include alarm.yaml
recorder: { purge_days: 14 }
frontend:
history:
logbook:
sun:
emulated_hue:
type: alexa
expose_by_default: true
# ZWave setup
zwave:
usb_path: /dev/zwave
config_path: /home/pi/.homeassistant/ozwconfig
polling_interval: 60000
customize:
sensor.thermostat_temperature_9_1: { polling_intensity: 1 }
climate.thermostat_heating_1_9_1: { polling_intensity: 1 }
# My custom zwave lock interface bits
usercode:
locklogger:
panel_custom:
- name: locks
sidebar_title: ZWave Locks
sidebar_icon: mdi:lock
- name: alarm
sidebar_title: Alarm
sidebar_icon: mdi:security-home
config:
alarmid: alarm_control_panel.house
# Generic sensors I like to keep an eye on for now
sensor:
- platform: systemmonitor
resources:
- { type: memory_use_percent }
- { type: processor_use }
- platform: command_line
name: CPU Temp
command: "cat /sys/class/thermal/thermal_zone0/temp"
unit_of_measurement: "°C"
value_template: '{{ value | multiply(0.001) }}'
# This is all of the I/O from my custom board
bwio:
port: /dev/bwio
binary_sensor:
- platform: bwio
pins:
0: [ littlewindow, opening ]
1: [ diningwindow, opening ]
2: [ pin2, opening ] # unknown signal, always ok, where is it?
3: [ primarymotion, motion ]
# 4: disconnected wire in the wall of the bedroom
5: [ doorbell, sound ]
# 6: no input present
# 7: isn't connected, used as ground
8: [ livingroomwindow, opening ]
9: [ officewindow, opening ]
10: [ backdoor, opening ]
11: [ bedroomslider, opening ]
12: [ garagedoor, opening ]
13: [ patioslider, opening ]
14: [ frontdoor, opening ]
# 15 isn't connected, used as ground
- platform: amcrestserver
cameras:
192.168.2.3: driveway
192.168.2.4: frontyard
switch:
- platform: bwio
pins:
11: garagedoor
15: alarm
- platform: command_line
switches:
warning:
command_on: "/home/pi/sounds/playloop /home/pi/sounds/warning.wav &"
command_off: "killall playloop aplay"
doorbell:
command_on: "/home/pi/sounds/playloop /home/pi/sounds/bell.wav &"
command_off: "killall playloop aplay"
- platform: gitm
alarm: alarm_control_panel.house
bedroom: switch.bedroomlight_switch_10_0
downstairs: switch.livingroomlight_switch_2_0
wakeup: '08:00'
tvtime: '17:00'
bedtime: '23:00'
camera:
- platform: local_file
file_path: /var/video/driveway/lastsnap.jpg
name: Driveway Camera
- platform: local_file
file_path: /var/video/frontyard/lastsnap.jpg
name: FrontYard Camera