-
Notifications
You must be signed in to change notification settings - Fork 52
/
binary_sensor.yaml
35 lines (30 loc) · 1.08 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
# - platform: ping
# name: Thermostat Online
# host: 10.0.0.29
# count: 2
# - platform: ping
# name: Andrew Work Laptop
# host: 10.0.1.27
# count: 2
# - platform: ping
# name: Andrew Work Test Laptop
# host: 10.0.1.100
# count: 2
# - platform: ping
# name: Kurt Tunnel
# host: 192.168.88.1
# count: 2
# - platform: ping
# name: internet_reachability
# host: 1.1.1.1
# count: 3
# scan_interval: 10
- platform: template
sensors:
# On if both backups < 10 minutes ago
backups_complete:
value_template: "{{ (as_timestamp(now()) - as_timestamp(states('sensor.last_vps_backup_completed'))) < 600 and (as_timestamp(now()) - as_timestamp(states('sensor.last_nuc_backup_completed'))) < 600 }}"
andrew_phone_watch_connected:
value_template: "{{ 'AC:80:FB:99:B2:AA (Galaxy Watch6 (KQBW))' in state_attr('sensor.andrew_phone_bluetooth_connection','connected_paired_devices') }}"
andrew_phone_car_connected:
value_template: "{{ '00:0A:30:D7:D5:56 (Mazda)' in state_attr('sensor.andrew_phone_bluetooth_connection','connected_paired_devices') }}"