-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-schema.json
3427 lines (3427 loc) · 108 KB
/
config-schema.json
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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "myHouse",
"properties": {
"general": {
"type": "object",
"description": "Define general settings",
"properties": {
"house_name": {
"type": "string",
"description": "The name of this house"
},
"latitude": {
"type": "number",
"description": "The latitude of the current location. Different plugins and services will use this as the default position"
},
"longitude": {
"type": "number",
"description": "The longitude of the current location. Different plugins and services will use this as the default position"
},
"language": {
"type": "string",
"description": "The language to use. Each 'display_name' variable maps between this language and the actual text to use"
},
"timeframes": {
"type": "object",
"description": "Define common timeframes",
"properties": {
"realtime_hours": {
"type": "integer",
"description": "Realtime timeframe in hours"
},
"recent_hours": {
"type": "integer",
"description": "Recent timefram in hours"
},
"history_days": {
"type": "integer",
"description": "History timeframe in days"
},
"short_history_days": {
"type": "integer",
"description": "Short history timeframe in days"
},
"forecast_days": {
"type": "integer",
"description": "Forecast timeframe in days"
},
"alerter_recent_hours": {
"type": "integer",
"description": "Timeframe to show alerts in the top right icons in hours"
},
"alerter_history_days": {
"type": "integer",
"description": "Timeframe to show alerts in the alert table"
}
},
"additionalProperties": false,
"required": [
"realtime_hours",
"recent_hours",
"history_days",
"short_history_days",
"forecast_days",
"alerter_recent_hours",
"alerter_history_days"
]
},
"units": {
"type": "object",
"description": "How to deal with units of measure",
"properties": {
"imperial": {
"type": "boolean",
"description": "Use imperial units of measures"
},
"fahrenheit": {
"type": "boolean",
"description": "Use Fahrenheit degrees"
}
},
"additionalProperties": false,
"required": [
"imperial",
"fahrenheit"
]
},
"backup": {
"type": "array",
"description": "Define backup jobs. For each entry a daily and weekly backup will be automatically performed",
"items": {
"type": "object",
"title": "File to backup",
"properties": {
"backup_id": {
"type": "string",
"description": "A nice name to give this backup job"
},
"enabled": {
"type": "boolean",
"description": "Enable this backup policy"
},
"filename": {
"type": "string",
"description": "The full path of the file to backup"
},
"command": {
"type": "string",
"description": "The command to run to execute the backup with the placeholder %filename% replaced with the filename specified and %target% with the proper daily or weekly suffix added to the file"
}
},
"additionalProperties": false,
"required": [
"backup_id",
"enabled",
"filename",
"command"
]
}
}
},
"additionalProperties": false,
"required": [
"latitude",
"longitude",
"timeframes",
"units",
"language",
"house_name",
"backup"
]
},
"db": {
"type": "object",
"description": "Database configuration",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enable writing into the database"
},
"hostname": {
"type": "string",
"description": "Hostname hosting the redis database"
},
"port": {
"type": "integer",
"description": "Port of the redis database"
},
"database": {
"type": "integer",
"description": "Instance number"
},
"database_file": {
"type": "string",
"description": "Full path of the redis database file",
"value": "/var/lib/redis/dump.rdb"
}
},
"additionalProperties": false,
"required": [
"enabled",
"hostname",
"port",
"database",
"database_file"
]
},
"gui": {
"type": "object",
"description": "GUI configuration",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enable the GUI"
},
"compress": {
"type": "boolean",
"description": "GZIP compression of the web request/response"
},
"url": {
"type": "string",
"description": "URL of the web GUI"
},
"skin": {
"type": "string",
"description": "The skin to use for the GUI",
"enum": [
"blue",
"black",
"red",
"yellow",
"purple",
"green",
"blue-light",
"black-light",
"red-light",
"yellow-light",
"purple-light",
"green-light"
],
"value": "blue"
},
"port": {
"type": "integer",
"description": "Port for running the web server"
},
"default_module": {
"type": "string",
"description": "Default module to load when no arguments are provided"
},
"auto_refresh_min": {
"type": "integer",
"description": "Refresh automatically the page every X minutes"
},
"debug_console": {
"type": "boolean",
"description": "Enable GUI debug in the browser console"
},
"sections": {
"type": "array",
"description": "Web GUI menu sections, mapping the section_id referred by each module to the label of the interface",
"items": {
"type": "object",
"title": "Section",
"properties": {
"section_id": {
"type": "string",
"description": "The section_id referred by each module"
},
"display_name": {
"type": "object",
"description": "Name of the section (for each configured language)",
"minItems": 1
}
},
"additionalProperties": false,
"required": [
"section_id",
"display_name"
]
}
},
"maps": {
"type": "object",
"description": "Maps properties",
"properties": {
"type": {
"type": "string",
"description": "The google map to use (e.g. satellite,hybrid,terrain,roadmap)"
},
"size_x": {
"type": "integer",
"description": "The map x size in pixel"
},
"size_y": {
"type": "integer",
"description": "The map y size in pixel"
},
"api_key": {
"type": "string",
"description": "Google Maps API key (get one from https://developers.google.com/maps/documentation/javascript/get-api-key)"
}
},
"additionalProperties": false,
"required": [
"type",
"size_x",
"size_y",
"api_key"
]
},
"clock": {
"type": "object",
"description": "Clock properties",
"properties": {
"enabled": {
"type": "boolean",
"description": "Whether or not to display a digital clock on top of the screen"
},
"24_hours": {
"type": "boolean",
"description": "If displaying the time in a 24-hour format or 12-hour"
},
"show_seconds": {
"type": "boolean",
"description": "If showing the number of seconds in the digital clock"
}
},
"additionalProperties": false,
"required": [
"enabled",
"24_hours",
"show_seconds"
]
}
},
"additionalProperties": false,
"required": [
"enabled",
"compress",
"url",
"port",
"default_module",
"auto_refresh_min",
"debug_console",
"sections",
"maps",
"clock"
]
},
"alerter": {
"type": "object",
"description": "Alerter module configuration",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enable the module"
},
"data_expire_days": {
"description": "After how many days current measures and hourly data can be purged out of the database. Daily measures will be kept forever",
"type": "integer"
}
},
"additionalProperties": false,
"required": [
"enabled",
"data_expire_days"
]
},
"sensors": {
"type": "object",
"description": "Sensors module configuration",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enable the module"
},
"poll_at_startup": {
"type": "boolean",
"description": "Poll all the sensors when at startup"
},
"cache_expire_min": {
"description": "For how long raw data polled from the sensors will be cached so to prevent multiple concurrent retrieval of the same data",
"type": "integer"
},
"retention": {
"type": "object",
"description": "Define global retention policies",
"properties": {
"realtime_new_only": {
"type": "boolean",
"description": "If set to true, only the measures with a newer timestamp than the latest entry will be added to the database"
},
"realtime_count": {
"type": "integer",
"description": "How many instances of current measures to keep in the database. 0 for keeping them all"
},
"realtime_days": {
"type": "integer",
"description": "After how many days current measures are purged out of the database. 0 for keeping forever"
},
"recent_days": {
"type": "integer",
"description": "After how many days hourly data are purged out of the database. 0 for keeping forever"
},
"history_days": {
"type": "integer",
"description": "After how many days daily data are purged out of the database. 0 for keeping forever"
}
},
"additionalProperties": false,
"required": [
"realtime_new_only",
"realtime_count",
"realtime_days",
"recent_days",
"history_days"
]
}
},
"additionalProperties": false,
"required": [
"enabled",
"poll_at_startup",
"cache_expire_min",
"retention"
]
},
"input": {
"type": "object",
"description": "Input module configuration",
"properties": {
"settings": {
"type": "object",
"description": "Configuration settings of the engine responsible for selecting the most appropriate response to users' requests",
"properties": {
"algorithm": {
"type": "string",
"description": "When a request is submitted, the algorithm to use for identifying the most appropriate response (http://chairnerd.seatgeek.com/fuzzywuzzy-fuzzy-string-matching-in-python/ for more information)",
"enum": [
"ratio",
"partial_ratio",
"token_sort_ratio",
"token_set_ratio"
],
"value": "token_set_ratio"
},
"score": {
"type": "integer",
"description": "The minimum score to determine if a request has been understood correctly"
}
},
"additionalProperties": false,
"required": [
"algorithm",
"score"
]
},
"slack": {
"type": "object",
"description": "Allow interactive communication with the Slack bot",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enable interactive communication with the Slack bot"
}
},
"additionalProperties": false,
"required": [
"enabled"
]
},
"audio": {
"type": "object",
"description": "Use the attached microphone for commands. Ensure your soundcard is properly configured first.",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enable the module"
},
"device": {
"type": "string",
"description": "Optional explicit alsa PCM device name. Get a list by running aplay -l/arecord -l"
},
"engine": {
"type": "string",
"description": "The speech-to-text engine to use. Google works online only, is fast and gives excellent results, pocketsphinx works offline, is slower, not always accurate and additional languages must be installed manually",
"enum": [
"google",
"pocketsphinx"
],
"value": "google"
},
"language": {
"type": "string",
"description": "The language to use for recognizing the command"
},
"echo_request": {
"type": "boolean",
"description": "For debugging purposes, repeats the request and what has been understood"
},
"recorder": {
"type": "object",
"description": "Configuration settings for the voice recorder",
"properties": {
"max_duration": {
"type": "number",
"description": "Maximum duration in seconds of the audio sample"
},
"start_duration": {
"type": "number",
"description": "Amount of time that non-silence must be detected before it stops trimming audio. By increasing the duration, burst of noise can be treated as silence and trimmed off"
},
"start_threshold": {
"type": "number",
"description": "Start recording when the audio will be this percentage above true silence"
},
"end_duration": {
"type": "number",
"description": "Period of silence that must exist before the recorder is stopped"
},
"end_threshold": {
"type": "number",
"description": "Stop recording when the audio will be this percentage below true silence"
}
},
"additionalProperties": false,
"required": [
"start_duration",
"start_threshold",
"end_duration",
"end_threshold"
]
}
},
"additionalProperties": false,
"required": [
"enabled",
"engine",
"language"
]
}
},
"additionalProperties": false,
"required": [
"slack",
"audio",
"settings"
]
},
"output": {
"type": "object",
"description": "Output module configuration",
"properties": {
"email": {
"type": "object",
"description": "E-mail notification configuration",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enable realtime e-mail alerts"
},
"hostname": {
"type": "string",
"description": "SMTP server"
},
"port": {
"type": "integer",
"description": "The port of the SMTP server"
},
"tls": {
"type": "boolean",
"description": "Whether the smtp server requires a TLS connection"
},
"username": {
"type": "string",
"description": "Optional username for authenticating against the SMTP server"
},
"password": {
"type": "string",
"description": "Optional password for authenticating against the SMTP server"
},
"from": {
"type": "string",
"description": "From email address to use"
},
"to": {
"type": "array",
"description": "Email recipients",
"items": {
"type": "string",
"title": "E-mail recipient"
}
},
"subject": {
"type": "string",
"description": "The subject of the email notifications"
},
"debug": {
"type": "boolean",
"description": "Enable/disable SMTP debugging"
},
"alerts_digest": {
"type": "boolean",
"description": "Send a daily digest with yesterda's alerts"
},
"min_severity": {
"type": "string",
"description": "Minimum severity which triggers the realtime notification",
"enum": [
"info",
"warning",
"alert"
],
"value": "info"
},
"rate_limit": {
"type": "integer",
"description": "Maximum number of notifications per hour that can be sent through this notification channel. 0 for unlimited"
},
"mute": {
"type": "string",
"description": "The time interval in which no notifications should be sent through this channel in the format <hour_begin>-<hour_end> (e.g. 22-07 - 24H format 0 padded). Set it empty for no suppression"
},
"mute_min_severity": {
"type": "string",
"description": "When muted, minimum severity which triggers the realtime notification (e.g. muted for info but not for alerts)",
"enum": [
"",
"warning",
"alert"
]
}
},
"additionalProperties": false,
"required": [
"enabled",
"hostname",
"port",
"tls",
"username",
"password",
"from",
"to",
"alerts_digest",
"debug"
]
},
"slack": {
"type": "object",
"description": "Slack module configuration",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enable realtime slack notifications"
},
"bot_name": {
"type": "string",
"description": "Name of the Slack bot"
},
"bot_token": {
"type": "string",
"description": "The Slack bot token previously created. https://api.slack.com/bot-users for more information"
},
"channel": {
"type": "string",
"description": "The Slack channel in which the bot will post its updates"
},
"min_severity": {
"type": "string",
"description": "Minimum severity which triggers the realtime notification",
"enum": [
"info",
"warning",
"alert"
],
"value": "info"
},
"rate_limit": {
"type": "integer",
"description": "Maximum number of notifications per hour that can be sent through this notification channel. 0 for unlimited"
},
"mute": {
"type": "string",
"description": "The time interval in which no notifications should be sent through this channel in the format <hour_begin>-<hour_end> (e.g. 22-07 - 24H format 0 padded). Set it empty for no suppression"
},
"mute_min_severity": {
"type": "string",
"description": "When muted, minimum severity which triggers the realtime notification (e.g. muted for info but not for alerts)",
"enum": [
"",
"warning",
"alert"
]
}
},
"additionalProperties": false,
"required": [
"enabled",
"bot_name",
"bot_token",
"channel"
]
},
"sms": {
"type": "object",
"description": "SMS notification configuration (Betamax)",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enable realtime alerts via SMS"
},
"hostname": {
"type": "string",
"description": "Your Betamax VOIP service. An account on one of the Betamax powered services (http://backsla.sh/betamax) is required"
},
"ssl": {
"type": "boolean",
"description": "Use SSL when connecting to the VOIP service"
},
"username": {
"type": "string",
"description": "The username of the VOIP service"
},
"password": {
"type": "string",
"description": "The password of the VOIP service"
},
"from": {
"type": "string",
"description": "Your username or your verified phone number. Always use international format"
},
"to": {
"type": "array",
"description": "The number you wish to send the sms to. Always use international format",
"items": {
"type": "string",
"title": "Phone Number"
}
},
"min_severity": {
"type": "string",
"description": "Minimum severity which triggers the realtime notification",
"enum": [
"info",
"warning",
"alert"
],
"value": "info"
},
"rate_limit": {
"type": "integer",
"description": "Maximum number of notifications per hour that can be sent through this notification channel. 0 for unlimited"
},
"mute": {
"type": "string",
"description": "The time interval in which no notifications should be sent through this channel in the format <hour_begin>-<hour_end> (e.g. 22-07 - 24H format 0 padded). Set it empty for no suppression"
},
"mute_min_severity": {
"type": "string",
"description": "When muted, minimum severity which triggers the realtime notification (e.g. muted for info but not for alerts)",
"enum": [
"",
"warning",
"alert"
]
}
},
"additionalProperties": false,
"required": [
"enabled",
"hostname",
"username",
"password",
"from",
"to"
]
},
"gsm_sms": {
"type": "object",
"description": "SMS notification configuration (using a GSM modem connected via serial)",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enable realtime alerts via SMS"
},
"port": {
"type": "string",
"description": "The serial port the GSM modem is connected to"
},
"baud": {
"type": "integer",
"description": "The baud rate of the serial port"
},
"to": {
"type": "array",
"description": "The numbers you wish to send the sms to",
"items": {
"type": "string",
"title": "Phone Number"
}
},
"min_severity": {
"type": "string",
"description": "Minimum severity which triggers the realtime notification",
"enum": [
"info",
"warning",
"alert"
],
"value": "info"
},
"rate_limit": {
"type": "integer",
"description": "Maximum number of notifications per hour that can be sent through this notification channel. 0 for unlimited"
},
"mute": {
"type": "string",
"description": "The time interval in which no notifications should be sent through this channel in the format <hour_begin>-<hour_end> (e.g. 22-07 - 24H format 0 padded). Set it empty for no suppression"
},
"mute_min_severity": {
"type": "string",
"description": "When muted, minimum severity which triggers the realtime notification (e.g. muted for info but not for alerts)",
"enum": [
"",
"warning",
"alert"
]
}
},
"additionalProperties": false,
"required": [
"enabled",
"port",
"baud",
"to"
]
},
"gsm_call": {
"type": "object",
"description": "Make a ring on a set of phones as a notification (using a GSM modem connected via serial)",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enable realtime alerts via phone calls"
},
"port": {
"type": "string",
"description": "The serial port the GSM modem is connected to"
},
"baud": {
"type": "integer",
"description": "The baud rate of the serial port"
},
"to": {
"type": "array",
"description": "The numbers you wish to call",
"items": {
"type": "string",
"title": "Phone Number"
}
},
"duration": {
"type": "integer",
"description": "For how long to ring each configured recipient in seconds"
},
"min_severity": {
"type": "string",
"description": "Minimum severity which triggers the realtime notification",
"enum": [
"info",
"warning",
"alert"
],
"value": "info"
},
"rate_limit": {
"type": "integer",
"description": "Maximum number of notifications per hour that can be sent through this notification channel. 0 for unlimited"
},
"mute": {
"type": "string",
"description": "The time interval in which no notifications should be sent through this channel in the format <hour_begin>-<hour_end> (e.g. 22-07 - 24H format 0 padded). Set it empty for no suppression"
},
"mute_min_severity": {
"type": "string",
"description": "When muted, minimum severity which triggers the realtime notification (e.g. muted for info but not for alerts)",
"enum": [
"",
"warning",
"alert"
]
}
},
"additionalProperties": false,
"required": [
"enabled",
"port",
"baud",
"to",
"duration"
]
},
"audio": {
"type": "object",
"description": "Use the attached speakers for the notification. Ensure your soundcard is properly configured first.",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enable the module"
},
"device": {
"type": "string",
"description": "Optional explicit alsa PCM device name. Get a list by running aplay -l/arecord -l"
},
"engine": {
"type": "string",
"description": "The text-to-speech engine to use. Picotts works offline and has a decent quality, Google works online only with an excellent quality",
"enum": [
"picotts",
"google"
],
"value": "picotts"
},
"language": {
"type": "string",
"description": "The language used to pronounce the message"
},
"min_severity": {
"type": "string",
"description": "Minimum severity which triggers the realtime notification",
"enum": [
"info",
"warning",
"alert"
],
"value": "info"
},
"rate_limit": {
"type": "integer",
"description": "Maximum number of notifications per hour that can be sent through this notification channel. 0 for unlimited"
},
"mute": {
"type": "string",
"description": "The time interval in which no notifications should be sent through this channel in the format <hour_begin>-<hour_end> (e.g. 22-07 - 24H format 0 padded). Set it empty for no suppression"
},
"mute_min_severity": {
"type": "string",
"description": "When muted, minimum severity which triggers the realtime notification (e.g. muted for info but not for alerts)",
"enum": [
"",
"warning",
"alert"
]
}
},
"additionalProperties": false,
"required": [
"enabled",
"engine",
"language"
]
},
"buzzer": {
"type": "object",
"description": "Play a tone to an attached active buzzer for alerts",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enable the module"
},
"pin": {
"type": "integer",
"description": "The pin the active buzzer is attached to (BCM numbering)"
},
"duration": {
"type": "number",
"description": "For how long to play the tone in seconds"
},
"min_severity": {
"type": "string",
"description": "Minimum severity for playing the tone",
"enum": [
"info",
"warning",
"alert"
],
"value": "info"
},
"rate_limit": {
"type": "integer",
"description": "Maximum number of notifications per hour that can be sent through this notification channel. 0 for unlimited"
},
"mute": {
"type": "string",
"description": "The time interval in which no notifications should be sent through this channel in the format <hour_begin>-<hour_end> (e.g. 22-07 - 24H format 0 padded). Set it empty for no suppression"
},
"mute_min_severity": {
"type": "string",
"description": "When muted, minimum severity which triggers the realtime notification (e.g. muted for info but not for alerts)",
"enum": [
"",
"warning",
"alert"
]
}
},
"additionalProperties": false,
"required": [
"enabled",
"pin",
"duration"
]
}
},
"additionalProperties": false,
"required": [
"email",
"slack",
"sms",
"audio",
"buzzer",
"gsm_sms",
"gsm_call"
]
},
"logging": {
"type": "object",
"description": "Logging module configuration",
"properties": {
"rotate_size_mb": {
"type": "integer",
"description": "Rotate the log file when larger than the configured megabytes"
},
"rotate_count": {
"type": "integer",
"description": "Number of backup log files to keep once rotated"
},
"myHouse": {