-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsensor templatees
79 lines (72 loc) · 2.07 KB
/
sensor templatees
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
- sensor:
- name: Tent 001 Port 001 State
state: >
{% if is_state('sensor.tent_001_port_001_current_power', '0') %}
Off
{% else %}
On
{% endif %}
- sensor:
- name: Tent 001 Port 002 State
state: >
{% if is_state('sensor.tent_001_port_002_current_power', '0') %}
Off
{% else %}
On
{% endif %}
- sensor:
- name: Tent 001 Port 003 State
state: >
{% if is_state('sensor.tent_001_port_003_current_power', '0') %}
Off
{% else %}
On
{% endif %}
- sensor:
- name: Tent 001 Port 004 State
state: >
{% if is_state('sensor.tent_001_port_004_current_power', '0') %}
Off
{% else %}
On
{% endif %}
- sensor:
- name: Tent 001 Port 001 Plug
state: >
{% if is_state('binary_sensor.tent_001_port_001_status', 'off') %}
Unplugged
{% elif is_state('binary_sensor.tent_001_port_001_status', 'on') %}
Plugged In
{% else %}
Error
{% endif %}
- sensor:
- name: Tent 001 Port 002 Plug
state: >
{% if is_state('binary_sensor.tent_001_port_002_status', 'off') %}
Unplugged
{% elif is_state('binary_sensor.tent_001_port_002_status', 'on') %}
Plugged In
{% else %}
Error
{% endif %}
- sensor:
- name: Tent 001 Port 003 Plug
state: >
{% if is_state('binary_sensor.tent_001_port_003_status', 'off') %}
Unplugged
{% elif is_state('binary_sensor.tent_001_port_003_status', 'on') %}
Plugged In
{% else %}
Error
{% endif %}
- sensor:
- name: Tent 001 Port 004 Plug
state: >
{% if is_state('binary_sensor.tent_001_port_004_status', 'off') %}
Unplugged
{% elif is_state('binary_sensor.tent_001_port_004_status', 'on') %}
Plugged In
{% else %}
Error
{% endif %}