-
Notifications
You must be signed in to change notification settings - Fork 0
/
sensors.yaml
executable file
·202 lines (186 loc) · 6.39 KB
/
sensors.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
- platform: yr
name: "Weather"
monitored_conditions:
- cloudiness
- humidity
- precipitation
- pressure
- symbol
- temperature
- windDirection
- windSpeed
- platform: moon
- platform: time_date
display_options:
- 'time'
- 'date'
#- platform: command_line
# name: SSL Cert Expiry
# unit_of_measurement: days
# scan_interval: 21600
# command: !secret ssl_cert_expire_cmd
- platform: command_line
name: Current PS4 App
command: ps4-waker search | grep -w "running-app-name" | cut -c 24- | rev | cut -c 3- | rev | sed 's/[!@#\$%^&*(®)™]//g'
scan_interval: 30
#- platform: command_line
# name: Living Room Motion
# command: !secret liv_rm_motion_alm
# scan_interval: 2
- platform: command_line
name: Den Motion
command: !secret den_motion_alm
scan_interval: 2
- platform: command_line
name: Garage Motion
command: !secret garage_motion_alm
scan_interval: 2
#- platform: command_line
# name: Living Room Sound
# command: !secret liv_rm_sound_alm
# scan_interval: 2
- platform: command_line
name: Den Sound
command: !secret den_sound_alm
scan_interval: 2
- platform: command_line
name: Garage Sound
command: !secret garage_sound_alm
scan_interval: 2
- platform: speedtest
monitored_conditions:
- ping
- upload
- download
hour:
- 7
- 15
- 23
minute: 0
- platform: systemmonitor
resources:
- type: disk_use_percent
arg: /
- type: memory_use_percent
- type: last_boot
- type: ipv4_address
arg: wlan0
- type: processor_use
- platform: qnap
host: 192.168.1.100
username: !secret qnap_user
password: !secret qnap_pw
monitored_conditions:
- status
- cpu_usage
- memory_percent_used
- volume_percentage_used
- platform: mqtt
state_topic: "/Garage/Temp/Temperature"
name: "Garage Temp"
unit_of_measurement: "°F"
qos: 1
- platform: template
sensors:
atmospheric_press:
friendly_name: 'Atmospheric Pressure'
value_template: '{{ ((states.sensor.weather_pressure.state | float) / 33.864) | round(1) }}'
unit_of_measurement: 'inHg'
garage_temperature:
friendly_name: 'Garage Temperature'
value_template: '{{ (states.sensor.garage_temp.state | float) | round(1) }}'
unit_of_measurement: '°F'
garage_status:
friendly_name: 'Garage Status'
value_template: '{{ states.cover.garage.state }}'
garage_status_abbr:
friendly_name: 'Garage'
value_template: '{% if is_state("sensor.garage_status", "closed") %} CL {% else %} OP {% endif %}'
phone_batt:
friendly_name: 'Phone Battery'
value_template: '{{ states.device_tracker.pixelxl_pixelxl.attributes.battery }}'
unit_of_measurement: '%'
nas_uptime:
friendly_name: 'NAS Run Time'
value_template: '{{ states.sensor.nasf34bde_status.attributes.Uptime }}'
living_rm_motion_out:
friendly_name: 'Living Rm Motion'
value_template: >-
{% if is_state("sensor.living_room_motion", "0") %}
Disabled
{% elif is_state("sensor.living_room_motion", "1") %}
No Motion Detected
{% elif is_state("sensor.living_room_motion", "2") %}
Motion Alarm!
{% endif %}
den_motion_out:
friendly_name: 'Den Motion'
value_template: >-
{% if is_state("sensor.den_motion", "0") %}
Disabled
{% elif is_state("sensor.den_motion", "1") %}
No Motion Detected
{% elif is_state("sensor.den_motion", "2") %}
Motion Alarm!
{% endif %}
garage_motion_out:
friendly_name: 'Garage Motion'
value_template: >-
{% if is_state("sensor.garage_motion", "0") %}
Disabled
{% elif is_state("sensor.garage_motion", "1") %}
No Motion Detected
{% elif is_state("sensor.garage_motion", "2") %}
Motion Alarm!
{% endif %}
living_rm_sound_out:
friendly_name: 'Living Rm Sound'
value_template: >-
{% if is_state("sensor.living_room_sound", "0") %}
Disabled
{% elif is_state("sensor.living_room_sound", "1") %}
No Sound Detected
{% elif is_state("sensor.living_room_sound", "2") %}
Sound Alarm!
{% endif %}
den_sound_out:
friendly_name: 'Den Sound'
value_template: >-
{% if is_state("sensor.den_sound", "0") %}
Disabled
{% elif is_state("sensor.den_sound", "1") %}
No Sound Detected
{% elif is_state("sensor.den_sound", "2") %}
Sound Alarm!
{% endif %}
garage_sound_out:
friendly_name: 'Garage Sound'
value_template: >-
{% if is_state("sensor.garage_sound", "0") %}
Disabled
{% elif is_state("sensor.garage_sound", "1") %}
No Sound Detected
{% elif is_state("sensor.garage_sound", "2") %}
Sound Alarm!
{% endif %}
moonphases:
friendly_name: 'Moon Phases'
value_template: '{{ states.sensor.moon.state }}'
entity_picture_template: >
{% if is_state('sensor.moon', 'new_moon') %}
/local/moonphases/new.jpg
{% elif is_state('sensor.moon', 'waxing_crescent') %}
/local/moonphases/waxing_crescent.jpg
{% elif is_state('sensor.moon', 'first_quarter') %}
/local/moonphases/first_quarter.jpg
{% elif is_state('sensor.moon', 'waxing_gibbous') %}
/local/moonphases/waxing_gibbous.jpg
{% elif is_state('sensor.moon', 'full_moon') %}
/local/moonphases/full.jpg
{% elif is_state('sensor.moon', 'waning_gibbous') %}
/local/moonphases/waning_gibbous.jpg
{% elif is_state('sensor.moon', 'last_quarter') %}
/local/moonphases/last.jpg
{% elif is_state('sensor.moon', 'waning_crescent') %}
/local/moonphases/waning_crescent.jpg
{% endif %}