This repository was archived by the owner on Sep 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsensors.yaml
More file actions
47 lines (42 loc) · 1.26 KB
/
sensors.yaml
File metadata and controls
47 lines (42 loc) · 1.26 KB
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
# Sensors.. duh
- platform: spotcrime
name: Crime Reports
radius: .01
days: 7
- platform: rest
resource: http://192.168.0.13/hass/chores.json
name: chores_eleanor
scan_interval: 14400
value_template: >
{% set today = now().strftime('%a') %}
{% set chores = value_json.eleanor[ today ] %}
{{ chores }}
- platform: rest
resource: http://192.168.0.13/hass/chores.json
name: chores_lola
scan_interval: 14400
value_template: >
{% set today = now().strftime('%a') %}
{% set chores = value_json.lola[ today ] %}
{{ chores }}
- platform: rest
resource: http://192.168.0.13/hass/chores.json
name: chores_william
scan_interval: 14400
value_template: >
{% set today = now().strftime('%a') %}
{% set chores = value_json.william[ today ] %}
{{ chores }}
- platform: rest
resource: http://192.168.0.13/hass/chores.json
name: responsibilities
scan_interval: 14400
value_template: >
{% set today = now().strftime('%a') %}
{% set chores = value_json.eleanor[ today ] + value_json.lola[ today ] + value_json.william[ today ] %}
{{ chores }}
- platform: http_room
device_id: fda50693-a4e2-4fb1-afcf-c6eb07647825
name: 'William'
timeout: 5
away_timeout: 60