-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinary_sensors.yaml
110 lines (94 loc) · 2.59 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
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
# Binary Sensors
# RF sensor codes are not the real ones but examples
# There are 3 OpenMQTTGateway receivers with software hacked so they report
# on different MQTT channels. Usually at least 2 of them pick up the code
- platform: mqtt
state_topic: "mailserver/state"
name: "Mailbox"
payload_on: "on"
payload_off: "off"
- platform: mqtt
name: "Test Magnet RF"
state_topic: "OpenMQTTGateway/+/RFtoMQTT"
value_template: >-
{% if value_json.value == 1234898 %}
{{'ON'}}
{% elif value_json.value == 1234902 %}
{{'OFF'}}
{% else %}
{{states('binary_sensor.test_magnet_rf') | upper}}
{% endif %}
- platform: mqtt
name: "Walkin Closet"
state_topic: "OpenMQTTGateway/+/RFtoMQTT"
value_template: >-
{% if value_json.value == 1235402 %}
{{'ON'}}
{% elif value_json.value == 1235406 %}
{{'OFF'}}
{% else %}
{{states('binary_sensor.walkin_closet') | upper}}
{% endif %}
- platform: mqtt
name: "Patio Motion RF"
state_topic: "OpenMQTTGateway/+/RFtoMQTT"
value_template: >-
{% if value_json.value == 12363534 %}
{{'ON'}}
{% else %}
{{states('binary_sensor.patio_motion_rf') | upper}}
{% endif %}
off_delay: 30
- platform: mqtt
name: "Backyard Door Motion RF"
state_topic: "OpenMQTTGateway/+/RFtoMQTT"
value_template: >-
{% if value_json.value == 12377102 %}
{{'ON'}}
{% else %}
{{states('binary_sensor.backyard_door_motion_rf') | upper}}
{% endif %}
off_delay: 30
- platform: mqtt
state_topic: "sensor/frontdoor"
name: "Front Door"
payload_on: "on"
payload_off: "off"
- platform: mqtt
state_topic: "sensor/frontlock"
name: "Front Door Lock"
payload_on: "on"
payload_off: "off"
- platform: mqtt
state_topic: "sensor/utilitydoor"
name: "Utility Door"
payload_on: "on"
payload_off: "off"
- platform: mqtt
state_topic: "sensor/utilitylock"
name: "Utility Lock"
payload_on: "on"
payload_off: "off"
- platform: mqtt
state_topic: "office-sensor/motion"
name: "Office Sensor Motion"
payload_on: "on"
payload_off: "off"
- platform: tod
name: Night Time
after: '23:00'
before: '06:30'
- platform: tod
name: Darkness
after: sunset
before: sunrise
- platform: workday
country: 'DK'
name: 'Workday Sensor'
- platform: template
sensors:
test_trigger:
friendly_name: 'Test Trigger'
device_class: 'door'
value_template: >-
{{ is_state('input_boolean.test_trigger', 'on') }}