forked from arsaboo/homeassistant-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binary_sensor.yaml
140 lines (139 loc) · 4.53 KB
/
binary_sensor.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
- platform: trend
sensors:
master_cooling:
entity_id: sensor.master_temperature
sample_duration: 300
min_gradient: -0.0008
device_class: cold
- platform: wyzesense
device: auto
- platform: 'bayesian'
prior: 0.75
name: 'Rashmi Home'
probability_threshold: 0.95
observations:
- entity_id: 'device_tracker.rashmiphone_rashmiphone_2'
prob_given_true: 0.8
prob_given_false: 0.2
platform: 'state'
to_state: 'home'
- entity_id: 'device_tracker.rashmiappiphone_2'
prob_given_true: 0.99
prob_given_false: 0.10
platform: 'state'
to_state: 'home'
- entity_id: 'device_tracker.iphone_3'
prob_given_true: 0.99
prob_given_false: 0.4
platform: 'state'
to_state: 'home'
- entity_id: 'device_tracker.life360_sonu'
prob_given_true: 1
platform: 'state'
to_state: 'home'
- entity_id: 'device_tracker.e1594e53_21df_414c_82da_f655d5282fca'
prob_given_true: 0.99
prob_given_false: 0.1
platform: 'state'
to_state: 'home'
- platform: 'bayesian'
prior: 0.25
name: 'Alok Home'
probability_threshold: 0.95
observations:
- entity_id: 'device_tracker.alokphone_alokphone_2'
prob_given_true: 0.8
prob_given_false: 0.2
platform: 'state'
to_state: 'home'
- entity_id: 'device_tracker.alok_s_iphone_2'
prob_given_true: 0.99
prob_given_false: 0.10
platform: 'state'
to_state: 'home'
- entity_id: 'device_tracker.aloks_iphone_3'
prob_given_true: 0.99
prob_given_false: 0.4
platform: 'state'
to_state: 'home'
- entity_id: 'device_tracker.life360_alok_saboo'
prob_given_true: 0.99
prob_given_false: 0.1
platform: 'state'
to_state: 'home'
- entity_id: 'device_tracker.b4445761_f6c0_4b7f_835f_cfdc03b47111'
prob_given_true: 0.99
prob_given_false: 0.1
platform: 'state'
to_state: 'home'
- platform: workday
country: US
province: GA
workdays: [mon, tue, wed, thu, fri]
- platform: aarlo
monitored_conditions:
- motion
- sound
- ding
- platform: template
sensors:
garagedoor:
friendly_name: Garage Door Open
device_class: opening
value_template: >-
{% if states("sensor.garage_door_tilt_sensor_alarm_level") %}
{{ is_state('sensor.garage_door_tilt_sensor_alarm_level', '255') }}
{% else %}
unknown
{% endif %}
television:
friendly_name: TV
value_template: >-
{{states('media_player.family_room_2') == 'playing' and state_attr('media_player.family_room_2','source')=='TV'}}
in_bed:
friendly_name: "In Bed"
device_class: presence
value_template: >-
{{ states('sensor.master_bed_weight')|float > 1000 }}
homekit_ready:
friendly_name: Homekit Ready
device_class: connectivity
value_template: >-
{% if states.cover.garagedoor and states.light.living_room_lights and states.switch.driveway and states.light.master_lights and states.light.lifx5 and states.light.kitchen_lights and states.alarm_control_panel.abode_alarm and states.alarm_control_panel.aarlo_arlohome and states.binary_sensor.water_leak_sensor_158d0001d77800 and states.binary_sensor.water_leak_sensor_158d00027b0db6 %}
true
{% else %}
false
{% endif %}
# alok_home_sensor:
# device_class: presence
# value_template: >-
# {{ states.device_tracker.my_phone.state == "home" }}
# attribute_templates:
# latitude: >-
# {{ states.device_tracker.my_phone.attributes['latitude'] }}
# longitude: >-
# {{ states.device_tracker.my_phone.attributes['longitude'] }}
- platform: hikvision
host: 192.168.2.91
ssl: false
name: Porch
username: !secret hikvision_username
password: !secret hikvision_password
- platform: hikvision
host: 192.168.2.92
ssl: false
name: Backyard
username: !secret hikvision_username
password: !secret hikvision_password
- platform: hikvision
host: 192.168.2.93
ssl: false
name: Patio
username: !secret hikvision_username
password: !secret hikvision_password
- platform: hikvision
host: 192.168.2.94
ssl: false
name: Driveway
username: !secret hikvision_username
password: !secret hikvision_password