-
Notifications
You must be signed in to change notification settings - Fork 1
/
configuration.yaml
121 lines (106 loc) · 2.8 KB
/
configuration.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
121
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
# Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
- 172.18.0.0/24
binary_sensor:
- platform: rest
name: usbrelay1
resource: http://192.168.0.137:8000/1/status
method: GET
value_template: '{{ value_json.status }}'
- platform: rest
name: usbrelay2
resource: http://192.168.0.137:8000/2/status
method: GET
value_template: '{{ value_json.status }}'
- platform: rest
name: usbrelay3
resource: http://192.168.0.137:8000/3/status
method: GET
value_template: '{{ value_json.status }}'
- platform: rest
name: usbrelay4
resource: http://192.168.0.137:8000/4/status
method: GET
value_template: '{{ value_json.status }}'
- platform: rest
name: usbrelay5
resource: http://192.168.0.137:8000/5/status
method: GET
value_template: '{{ value_json.status }}'
- platform: rest
name: usbrelay6
resource: http://192.168.0.137:8000/6/status
method: GET
value_template: '{{ value_json.status }}'
- platform: rest
name: usbrelay7
resource: http://192.168.0.137:8000/7/status
method: GET
value_template: '{{ value_json.status }}'
- platform: rest
name: usbrelay8
resource: http://192.168.0.137:8000/8/status
method: GET
value_template: '{{ value_json.status }}'
rest_command:
usbrelay1_on:
url: "http://192.168.0.137:8000/1/on"
method: POST
usbrelay1_off:
url: "http://192.168.0.137:8000/1/off"
method: POST
usbrelay2_on:
url: "http://192.168.0.137:8000/2/on"
method: POST
usbrelay2_off:
url: "http://192.168.0.137:8000/2/off"
method: POST
usbrelay3_on:
url: "http://192.168.0.137:8000/3/on"
method: POST
usbrelay3_off:
url: "http://192.168.0.137:8000/3/off"
method: POST
usbrelay4_on:
url: "http://192.168.0.137:8000/4/on"
method: POST
usbrelay4_off:
url: "http://192.168.0.137:8000/4/off"
method: POST
usbrelay5_on:
url: "http://192.168.0.137:8000/5/on"
method: POST
usbrelay5_off:
url: "http://192.168.0.137:8000/5/off"
method: POST
usbrelay6_on:
url: "http://192.168.0.137:8000/6/on"
method: POST
usbrelay6_off:
url: "http://192.168.0.137:8000/6/off"
method: POST
usbrelay7_on:
url: "http://192.168.0.137:8000/7/on"
method: POST
usbrelay7_off:
url: "http://192.168.0.137:8000/7/off"
method: POST
usbrelay8_on:
url: "http://192.168.0.137:8000/8/on"
method: POST
usbrelay8_off:
url: "http://192.168.0.137:8000/8/off"
method: POST