-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.service.spec.fail.yml
207 lines (205 loc) · 5.93 KB
/
config.service.spec.fail.yml
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
# Basic error cheking across standard Joiful/Joi functionality
#
# Errors coverd:
# - Type Errors: Boolean, Number, String, Class
# - Constraint Errors: Positive, Negative, Minimum, Maximum, Length, Whitelist
# - Format Errors: Incorrect Indentation, Misspelt Property, Missplaced Key, Bad Format (e.g. MAC Address)
global:
instanceName: test-instance
integrations:
- bluetoothLowEnergy
- bluetoothClassic
- omronD6t
- gridEye
- gpio
- shell
- xiaomiMi
- homeAssistant
- mqtt
- blueoothClassic # FORMAT ERROR: Missspelt Property
apiPort: 6415
logger:
elasticsearch:
enabled: yes # TYPE ERROR: Boolean Required
auth: # TYPE ERROR: Auth Class Required
# username: user
password: password
apiKey: "mykey"
# apiKey:
# id: "my id"
# api_key: "my api key"
node: http://192.168.0.20:33333
indexPrefix: <indexPrefix>-<date>
loki:
enabled: false
host: http://localhost:3100
cluster:
networkInterface: eth0
port: 6425
timeout: -3 # CONSTRAINT ERROR: Positive Required
weight: 50
quorum: 1
autoDiscovery: false
peerAddresses:
- 192.168.1.10:6425
- 192.168.1.11:6425
entities:
behaviors:
debounced_entity:
debounce:
wait: 0.75
maxWait: 2
leading: null # TYPE ERROR: Boolean Required
trailing: false
leading_debounced_entity:
debounce:
wait: 0.75
maxWait: 2
leading: true
trailing: false
rolling_average_entity:
rollingAverage:
window: 60
chained_entity:
debounce:
wait: 0.75
maxWait: 2
leading: true
trailing: true
rollingAverage:
window: 60
bluetoothLowEnergy:
hciDeviceId: 0
whitelist:
- 123456
- 7750fb4dab70
- "ebef1234567890-55555-333"
- "ebef1234567890-55555-444"
- "ebef1234567890-55555-555"
whitelistRegex: false
blacklist: []
blacklistRegex: false
allowlist: []
allowlistRegex: false
denylist: []
denylistRegex: false
processIBeacon: true
onlyIBeacon: false
majorMask: 0xFFFF
minorMask: 0xGHIG # CONSTRAINT ERROR: Hex Required
batteryMask: 0x0000FF00
instanceBeaconEnabled: true
instanceBeaconMajor: 1
instanceBeaconMinor: 555
timeout: 30
updateFrequence: 55 # FORMAT ERROR: Key Misspelt
# updateFrequency: 55 # FORMAT ERROR: Missing Key
minDiscoveryLogRssi: 50 # FORMAT ERROR: Negative Required
maxDistance: 44.4
rssiFactor: 1.1
tagOverrides:
ebef1234567890-55555-333:
name: iBeacon 1
measuredPower: 33 # CONSTRAINT ERROR: Positive Required
batteryMask: 0xFFFFFFFFFFFF # CONSTRAINT ERROR: Maximum (0xFFFFFFFF) Exceeded
ebef1234567890-55555-444:
name: iBeacon 2
timeout: 120 # FORMAT ERROR: Missplaced Property
bluetoothClassic:
hciDeviceId: 1
interval: 20
scanTimeLimit: 21
timeoutCycles: -2.5 # CONSTRAINT ERROR: Minimum (1) Exceeded
preserveState: true
inquireFromStart: true
minRssi: # TYPE ERROR: Unrecognised Type
'08:05:90:ed:3b:60': 10 # CONTEXT: Negative Required
'08:05:90:ed:32:1Z': -10 # CONTEXT: MAC Required
default: -20
rssiFactor: 0.9
addresses:
- '08:05:90:ED:3B:60'
- '77:50:fb:4d:ab:7G' # TYPE ERROR: MAC Required
- '77:50' # TYPE ERROR: MAC Required
- '77::fb:4d:ab:70' # TYPE ERROR: MAC Required
- '77:50:fb:4d:ab:70'
entityOverrides:
ebef1234567890-55555-333:
id: 333 # TYPE ERROR: String Required
omronD6t:
busNumber: 3
address: 0x1d
deltaThreshold: 2
heatmap:
enabled: 123 # TYPE ERROR: Boolean Required
minTemperature: 16
maxTemperature: 30
rotation: 90
drawTemperatures: false
gridEye:
busNumber: 1
address: 0x69
deltaThreshold: 2
maskZeroBasedValues: 10 # TYPE ERROR: Boolean required
heatmap:
enabled: true
minTemperature: "23" # TYPE ERROR: Number Required
maxTemperature: 30
rotation: 179 # CONSTRAINT ERROR: Whitelist Required
drawTemperatures: true
gpio:
binarySensors:
- name: PIR Sensor
pin: 23
- name: Radar
pin: 24
deviceClass: fake-device-class # TYPE ERROR: Whitelist Required
switches:
- name: Test Switch
pin: 17
icon: my_icon.png
shell:
sensors:
- name: Simple Test
command: echo test
cron: '* * * * *'
- name: Regex Test
command: echo 'test 123'
cron: '* * * * */2'
regex: '[1-9]+'
deviceClass: 'timestamp'
icon: 'mdi:test'
unitOfMeasurement: 'tests'
switches: # FORMAT ERROR: Incorrect Indentation -> Bad Key & Missing Key Errors
- name: Test Switch
onCommand: echo on
offCommand: echo off
xiaomiMi:
hciDeviceId: 0
enableMifloraBattery: 5 # FORMAT ERROR: -> Bool Required
sensors:
- address: a4:c1:38:32:12:f9 # FORMAT ERROR: -> Hex Required / Length Exceeded Errors
name: Xiaomi 1
- address: a4c138131f9e
name: Xiaomi 2
bindKey: 2dda568adf78
homeAssistant:
mqttUrl: mqtt://server.domain.com:18834
# discoveryPrefix: homeassistant # FORMAT ERROR: Missing Key
discoveryPrefi: homeassistant # FORMAT ERROR: Unrecognised Key
mqttOptions:
username: mqtt
password: mqtt
rejectUnauthorized: false
sendAttributes: false
sendMqttRoom: false
mqttRoomPrefix: 'room-assistant/mqtt-room'
mqtt:
mqttUrl: mttq://server.domain.com:18834 # FORMAT ERROR: Scheme Required
mqttOptions:
username: mqtt
password: mqtt
rejectUnauthorized: false
baseTopic: ra/entity
qos: 100 # CONSTRAINT ERROR: Whitelist Required
retain: false