-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbinary_sensors.yaml
43 lines (39 loc) · 1.31 KB
/
binary_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
---
# - platform: iss
# - platform: aurora
# - platform: template
# sensors:
# Kyles_Bed:
# friendly_name: Kyles Bed
# device_class: occupancy
# delay_on:
# minutes: 5
# value_template: "{{ is_state('binary_sensor.kyle_bed_sensor', 'on') }}"
# - platform: template
# sensors:
# Charlottes_Bed:
# friendly_name: Charlottes Bed
# delay_on:
# minutes: 5
# device_class: occupancy
# value_template: "{{ is_state('binary_sensor.charlotte_bed_sensor'), 'on' }}"
- platform: template
sensors:
living_room_tv_power:
friendly_name: Living Room TV Power
device_class: power
value_template: "{{ states('sensor.tv_power_plug_power') | float(0) > 100 }}"
home_occupied:
friendly_name: Home Occupied
device_class: occupancy
icon_template: >-
{% if is_state('binary_sensor.home_occupied','on') %}
mdi:home-account
{% else %}
mdi:home-outline
{% endif %}
value_template: "{{ is_state('person.kyle','home') or is_state('person.charlotte','home') or is_state('person.ronnie','home') }}"
holiday_mode:
value_template: "{{ states.calendar.family_calendar.attributes.message == 'Holiday mode' }}"
friendly_name: Holiday mode
unique_id: binary_sensor.holiday_mode