forked from arsaboo/homeassistant-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binary_sensor.yaml
120 lines (120 loc) · 3.68 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
# - platform: 'bayesian2'
# prior: 0.25
# name: 'Alok test'
# probability_threshold: 0.95
# observations:
# - entity_id: 'device_tracker.alokphone_alokphone'
# prob_given_true: 0.1
# prob_given_false: 0.9
# platform: 'state'
# to_state: 'not_home'
- platform: 'bayesian'
prior: 0.75
name: 'Rashmi Home'
probability_threshold: 0.95
observations:
- entity_id: 'device_tracker.rashmiphone_rashmiphone'
prob_given_true: 0.8
prob_given_false: 0.2
platform: 'state'
to_state: 'home'
- entity_id: 'device_tracker.rashmiappiphone'
prob_given_true: 0.99
prob_given_false: 0.10
platform: 'state'
to_state: 'home'
- entity_id: 'device_tracker.rashmisiphone'
prob_given_true: 0.99
prob_given_false: 0.4
platform: 'state'
to_state: 'home'
- entity_id: 'device_tracker.sonu_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'
prob_given_true: 0.8
prob_given_false: 0.2
platform: 'state'
to_state: 'home'
- entity_id: 'device_tracker.alokiosiphone'
prob_given_true: 0.99
prob_given_false: 0.10
platform: 'state'
to_state: 'home'
- entity_id: 'device_tracker.myiphone'
prob_given_true: 0.99
prob_given_false: 0.4
platform: 'state'
to_state: 'home'
- entity_id: 'device_tracker.alok_alok'
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: template
sensors:
garagedoor:
friendly_name: Garage Door Open
device_class: opening
value_template: >-
{% if states.sensor.garage_door_tilt_sensor_alarm_level != None %}
{{ 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'}}
- 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
# - platform: mqtt
# name: aloklife360
# friendly_name: Alok Life360
# state_topic: "smartthings/Alok Life360/presence"
# payload_on: 'present'
# payload_off: 'not present'
# - platform: mqtt
# name: rashmilife360
# friendly_name: Rashmi Life360
# state_topic: "smartthings/Rashmi_Life360/presence"
# payload_on: 'present'
# payload_off: 'not present'