-
Notifications
You must be signed in to change notification settings - Fork 0
/
sensors.yaml
106 lines (91 loc) · 3.28 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
#################################################################
## Sensors
#################################################################
# - platform: yr
# - platform: pi_hole
- platform: template
sensors:
upstairs_away_mode:
entity_id: climate.upstairs
friendly_name: Upstairs Away
value_template: >
{{ is_state_attr('climate.upstairs', 'operation_mode', 'eco') }}
someone_home:
value_template: >
{{ is_state('device_tracker.patphone_patphone', 'home') or
is_state('device_tracker.linaphone_linaphone', 'home') or
is_state('device_tracker.sheree', 'home') or
is_state('device_tracker.mommy_tirro', 'home') }}
friendly_name: Someone Home
away_mode:
friendly_name: Away Mode
value_template: >
{% if is_state('input_boolean.away_mode', 'on') %}
Away
{% else %}
Home
{% endif %}
dstairs_home_set_point:
friendly_name: Downstairs Home Set Point
value_template: >
{% if is_state_attr('climate.downstairs_heating_1_9_1', 'operation_mode', 'Heat') %}
{% if is_state('input_boolean.sleep_mode', 'off') %}
{{ float(74) }}
{% else %}
{{ float(61) }}
{% endif %}
{% elif is_state_attr('climate.downstairs_cooling_1_9_2', 'operation_mode', 'Cool') %}
{% if is_state('input_boolean.sleep_mode', 'off') %}
{{ float(80) }}
{% else %}
{{ float(86) }}
{% endif %}
{% endif %}
dstairs_away_set_point:
friendly_name: Downstairs Away Set Point
value_template: >
{% if is_state_attr('climate.downstairs_heating_1_9_1', 'operation_mode', 'Heat') %}
{{ float(61) }}
{% elif is_state_attr('climate.downstairs_heating_1_9_1', 'operation_mode', 'Cool') %}
{{ float(86) }}
{% endif %}
### WEATHER UNDERGROUND ###
- platform: wunderground
api_key: !secret wunderground_api_key
monitored_conditions:
- alerts
- feelslike_f
- heat_index_f
- elevation
- location
- precip_today_in
- relative_humidity
- temp_f
- weather
- wind_mph
### GOOGLE TRAVEL TIMES ###
- platform: google_travel_time
name: Pat to Home
api_key: AIzaSyCNRZv1UvQO6PH7ZoXQCZy6qluDz9EwC4E
origin: device_tracker.patphone_patphone
destination: zone.home
- platform: google_travel_time
name: Lina to Home
api_key: AIzaSyCNRZv1UvQO6PH7ZoXQCZy6qluDz9EwC4E
origin: device_tracker.linaphone_linaphone
destination: zone.home
- platform: google_travel_time
name: Home To Staten Island
api_key: AIzaSyCNRZv1UvQO6PH7ZoXQCZy6qluDz9EwC4E
origin: zone.home
destination: zone.staten_island
- platform: google_travel_time
name: Home To City
api_key: AIzaSyCNRZv1UvQO6PH7ZoXQCZy6qluDz9EwC4E
origin: zone.home
destination: 39.952501, -75.158069
options:
mode: transit
# - platform: usps
# username: !secret usps_username
# password: !secret usps_password