-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathZabbix_Template-IMS-Smart_Sensor_V1.6_5.2_MQTT.yaml
1244 lines (1244 loc) · 36.3 KB
/
Zabbix_Template-IMS-Smart_Sensor_V1.6_5.2_MQTT.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
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
zabbix_export:
version: '5.2'
date: '2021-12-13T09:36:36Z'
groups:
-
name: IntelliMon
templates:
-
template: 'IMS-Smart Sensor V1.6 MQTT'
name: 'IMS-Smart Sensor V1.6 MQTT'
description: 'Template for wireless IntelliMon sensor with MQTT support, version 1.6'
groups:
-
name: IntelliMon
applications:
-
name: 'Device info'
-
name: Fails
-
name: 'Sensor availability'
-
name: 'Sensor data'
-
name: Stats
items:
-
name: 'Battery charge [%]'
type: DEPENDENT
key: batterycharge
delay: '0'
history: 180d
value_type: FLOAT
units: '%'
description: 'Battery charge in percent.'
applications:
-
name: 'Sensor data'
preprocessing:
-
type: JSONPATH
parameters:
- $.batterycharge
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
triggers:
-
expression: '{last()}<15'
recovery_mode: RECOVERY_EXPRESSION
recovery_expression: '{last()}>20'
name: '[{HOST.NAME}] - Sensor: Battery charge low [<15%]'
priority: HIGH
description: 'Battery charge below 15%.'
manual_close: 'YES'
-
expression: '{last()}<30'
recovery_mode: RECOVERY_EXPRESSION
recovery_expression: '{last()}>35'
name: '[{HOST.NAME}] - Sensor: Battery charge low [<30%]'
priority: WARNING
description: 'Battery charge below 30%.'
manual_close: 'YES'
dependencies:
-
name: '[{HOST.NAME}] - Sensor: Battery charge low [<15%]'
expression: '{IMS-Smart Sensor V1.6 MQTT:batterycharge.last()}<15'
recovery_expression: '{IMS-Smart Sensor V1.6 MQTT:batterycharge.last()}>20'
-
expression: '{last()}<50'
recovery_mode: RECOVERY_EXPRESSION
recovery_expression: '{last()}>55'
name: '[{HOST.NAME}] - Sensor: Battery charge low [<50%]'
priority: INFO
description: 'Battery charge below 50%.'
manual_close: 'YES'
dependencies:
-
name: '[{HOST.NAME}] - Sensor: Battery charge low [<30%]'
expression: '{IMS-Smart Sensor V1.6 MQTT:batterycharge.last()}<30'
recovery_expression: '{IMS-Smart Sensor V1.6 MQTT:batterycharge.last()}>35'
-
name: 'Fails [connection]'
type: DEPENDENT
key: cfails
delay: '0'
description: 'Failed connection attempts.'
applications:
-
name: Fails
preprocessing:
-
type: JSONPATH
parameters:
- $.cfails
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: Contact
type: DEPENDENT
key: contact
delay: '0'
trends: '0'
value_type: TEXT
description: 'Contact information.'
inventory_link: CONTACT
applications:
-
name: 'Device info'
preprocessing:
-
type: JSONPATH
parameters:
- $.contact
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'Device type'
type: DEPENDENT
key: devicetype
delay: '0'
trends: '0'
value_type: TEXT
description: 'The type of the device.'
inventory_link: TYPE
applications:
-
name: 'Device info'
preprocessing:
-
type: JSONPATH
parameters:
- $.devicetype
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'Dew point [C]'
type: DEPENDENT
key: dew
delay: '0'
value_type: FLOAT
units: C
description: 'Calculated dew point in degrees Celsius.'
applications:
-
name: 'Sensor data'
preprocessing:
-
type: JSONPATH
parameters:
- $.dew
error_handler: DISCARD_VALUE
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'Equivalent carbon-dioxide eCO2 [ppm]'
type: DEPENDENT
key: eco2
delay: '0'
units: ppm
description: 'eCO2 (equivalent calculated carbon-dioxide) concentration within a range of 400 to 8192 parts per million (ppm).'
applications:
-
name: 'Sensor data'
preprocessing:
-
type: JSONPATH
parameters:
- $.eco2
error_handler: DISCARD_VALUE
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'Error [Env]'
type: DEPENDENT
key: enverror
delay: '0'
description: 'Number of failed environment sensor readings.'
applications:
-
name: Fails
preprocessing:
-
type: JSONPATH
parameters:
- $.enverror
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'Geo latitude'
type: DEPENDENT
key: geolatitude
delay: '0'
trends: '0'
value_type: TEXT
description: 'Latitude of the device location.'
inventory_link: LOCATION_LAT
applications:
-
name: 'Device info'
preprocessing:
-
type: JSONPATH
parameters:
- $.geolatitude
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'Geo longitude'
type: DEPENDENT
key: geolongitude
delay: '0'
trends: '0'
value_type: TEXT
description: 'Longitude of the device location.'
inventory_link: LOCATION_LON
applications:
-
name: 'Device info'
preprocessing:
-
type: JSONPATH
parameters:
- $.geolongitude
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'Environment sensor found'
type: DEPENDENT
key: hasenv
delay: '0'
description: 'Environment sensor found.'
applications:
-
name: 'Sensor availability'
preprocessing:
-
type: JSONPATH
parameters:
- $.hasenv
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'IAQ sensor found'
type: DEPENDENT
key: hasiaq
delay: '0'
description: 'IAQ sensor found.'
applications:
-
name: 'Sensor availability'
preprocessing:
-
type: JSONPATH
parameters:
- $.hasiaq
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'External temp sensor found'
type: DEPENDENT
key: hastempe
delay: '0'
description: 'External temp sensor found.'
applications:
-
name: 'Sensor availability'
preprocessing:
-
type: JSONPATH
parameters:
- $.hastempe
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'Humidity [%]'
type: DEPENDENT
key: hum
delay: '0'
value_type: FLOAT
units: '%'
description: 'Air humidity in percent.'
applications:
-
name: 'Sensor data'
preprocessing:
-
type: JSONPATH
parameters:
- $.hum
error_handler: DISCARD_VALUE
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'IAQ baseline'
type: DEPENDENT
key: iaqbaseline
delay: '0'
description: 'IAQ baseline after last measurement.'
applications:
-
name: 'Sensor data'
preprocessing:
-
type: JSONPATH
parameters:
- $.iaqbaseline
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'IAQ disabled [Status]'
type: DEPENDENT
key: iaqdisabled
delay: '0'
description: |
IAQ sensor status.
0 = enabled
1 = disabled
applications:
-
name: 'Sensor data'
valuemap:
name: IMS-Smart-IAQStatus
preprocessing:
-
type: JSONPATH
parameters:
- $.iaqdisabled
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'Error [IAQ]'
type: DEPENDENT
key: iaqerror
delay: '0'
description: |
Status of IAQ sensor reading. Values:
0:CCS811_OK,
1:CCS811_AVAILABILITY_FAILED,
2:CCS811_READING_FAILED,
3:CCS811_WRONG_VALUE
applications:
-
name: Fails
preprocessing:
-
type: JSONPATH
parameters:
- $.iaqerror
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'Error [IAQ Internal]'
type: DEPENDENT
key: iaqerrorstatus
delay: '0'
description: |
Status of internal sensor reading. Only useful if iaderror is > 0.
0:SENSOR_SUCCESS,
1:SENSOR_ID_ERROR,
2:SENSOR_I2C_ERROR,
3:SENSOR_INTERNAL_ERROR,
4:SENSOR_GENERIC_ERROR
applications:
-
name: Fails
preprocessing:
-
type: JSONPATH
parameters:
- $.iaqerrorstatus
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'IAQ heating time [sec]'
type: DEPENDENT
key: iaqheatingtime
delay: '0'
units: '!sec'
description: 'Time to heat-up the IAQ sensor before a valid measurement can be taken. Changes to this values have a strong impact on iad readings and battery lifetime.'
applications:
-
name: Stats
preprocessing:
-
type: JSONPATH
parameters:
- $.iaqheatingtime
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: Interval
type: DEPENDENT
key: interval
delay: '0'
units: Minutes
description: 'Measurement interval in minutes.'
applications:
-
name: Stats
preprocessing:
-
type: JSONPATH
parameters:
- $.interval
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: Location
type: DEPENDENT
key: location
delay: '0'
trends: '0'
value_type: TEXT
description: 'Name of the device location.'
inventory_link: LOCATION
applications:
-
name: 'Device info'
preprocessing:
-
type: JSONPATH
parameters:
- $.location
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'Sensor data master'
type: ZABBIX_ACTIVE
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
delay: '0'
history: 1d
trends: '0'
value_type: TEXT
applications:
-
name: 'Sensor data'
-
name: 'OTA config [status]'
type: DEPENDENT
key: otaconfigstatus
delay: '0'
description: |
Status of OTA configuration
0:NO_REQUEST
1=INACTIVE
2=NOT_CHANGED,
3=CHANGED
4=SERVER_UNREACHABLE
5=SENSOR_NOT_FOUND
6=ERROR
applications:
-
name: Stats
valuemap:
name: IMS-Smart-OTAStatus
preprocessing:
-
type: JSONPATH
parameters:
- $.otaconfigstatus
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'Air pressure [Pa]'
type: DEPENDENT
key: press
delay: '0'
history: 180d
value_type: FLOAT
units: P
description: 'Absolute air pressure in Pascal.'
applications:
-
name: 'Sensor data'
preprocessing:
-
type: JSONPATH
parameters:
- $.press
error_handler: DISCARD_VALUE
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'Reason [Restart]'
type: DEPENDENT
key: rreason
delay: '0'
description: |
Reason for last restart:
1=PowerOn / Reset
5=DeepSleep
15=Brownout
applications:
-
name: Stats
valuemap:
name: IMS-Smart-RestartReasons
preprocessing:
-
type: JSONPATH
parameters:
- $.rreason
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
triggers:
-
expression: '{last()}=15'
name: '[{HOST.NAME}] - Sensor: Brownout detected'
description: 'Brownout detected. The supply voltage was below the critical threshold and caused the device to reset. This usually means the battery is nearly empty or there are issues with the power supply.'
-
name: 'WiFi RSSI [dBm]'
type: DEPENDENT
key: rssi
delay: '0'
value_type: FLOAT
units: dBm
description: 'The received WiFi field strength of the connected access point in dBm.'
applications:
-
name: 'Sensor data'
preprocessing:
-
type: JSONPATH
parameters:
- $.rssi
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
triggers:
-
expression: '{nodata(90m)}=1'
name: '[{HOST.NAME}] - Sensor: Missing data [>90Min]'
description: 'No data since 90 minutes.'
-
name: 'Connect time server [sec]'
type: DEPENDENT
key: sctime
delay: '0'
value_type: FLOAT
units: '!sec'
description: 'The time it takes to connect to the Zabbix server.'
applications:
-
name: Stats
preprocessing:
-
type: JSONPATH
parameters:
- $.sctime
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'Serial number'
type: DEPENDENT
key: serial
delay: '0'
trends: '0'
value_type: CHAR
description: 'The serial number of the device, which is also part of the MAC address.'
inventory_link: SERIALNO_A
applications:
-
name: Stats
preprocessing:
-
type: JSONPATH
parameters:
- $.serial
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'Fails [Sensors]'
type: DEPENDENT
key: sfails
delay: '0'
description: 'Number of failed readings of any sensor.'
applications:
-
name: Fails
preprocessing:
-
type: JSONPATH
parameters:
- $.sfails
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
triggers:
-
expression: '{last()}>0'
name: '[{HOST.NAME}] - Sensor: Sensor reading failed'
description: 'The last Sensor reading failed.'
-
name: 'Temperature [C]'
type: DEPENDENT
key: temp
delay: '0'
value_type: FLOAT
units: C
description: 'Temperature in degrees Celsius for the internal sensor.'
applications:
-
name: 'Sensor data'
preprocessing:
-
type: JSONPATH
parameters:
- $.temp
error_handler: DISCARD_VALUE
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'Temperature external [C]'
type: DEPENDENT
key: tempe
delay: '0'
value_type: FLOAT
units: C
description: 'Temperature in degrees Celsius for the external sensor.'
applications:
-
name: 'Sensor data'
preprocessing:
-
type: JSONPATH
parameters:
- $.tempe
error_handler: DISCARD_VALUE
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'Error [TempE]'
type: DEPENDENT
key: tempeerror
delay: '0'
description: 'Number of failed readings of the external temperature sensor.'
applications:
-
name: Fails
preprocessing:
-
type: JSONPATH
parameters:
- $.tempeerror
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'Fails [Transmission]'
type: DEPENDENT
key: tfails
delay: '0'
description: 'Numer of failed transmission attempts.'
applications:
-
name: Fails
preprocessing:
-
type: JSONPATH
parameters:
- $.tfails
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'Total volatile organic compound TVOC [ppb]'
type: DEPENDENT
key: tvoc
delay: '0'
units: ppb
description: 'TVOC (total volatile organic compound) concentration within a range of 0 to 1187 parts per billion (ppb).'
applications:
-
name: 'Sensor data'
preprocessing:
-
type: JSONPATH
parameters:
- $.tvoc
error_handler: DISCARD_VALUE
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'VCC [V]'
type: DEPENDENT
key: vcc
delay: '0'
value_type: FLOAT
units: V
description: 'Battery voltage.'
applications:
-
name: 'Sensor data'
preprocessing:
-
type: JSONPATH
parameters:
- $.vcc
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
triggers:
-
expression: '{avg(#4)}<3.0'
name: '[{HOST.NAME}] - Sensor: VCC low [<3.00V]'
description: 'Current input is below 3V. Power supply or battery is too weak.'
-
name: 'Firmware [Version]'
type: DEPENDENT
key: version
delay: '0'
trends: '0'
value_type: CHAR
description: 'Version of the currently installed firmware.'
applications:
-
name: Stats
preprocessing:
-
type: JSONPATH
parameters:
- $.version
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'Reason [Wakeup]'
type: DEPENDENT
key: wareason
delay: '0'
description: |
Wakeup reason:
0=Wakeup by power-on, reset
3=Wakeup by modeKey
4=Wakeup by timer
applications:
-
name: Stats
valuemap:
name: IMS-Smart-RestartReasons
preprocessing:
-
type: JSONPATH
parameters:
- $.wareason
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
-
name: 'Connect time WiFi AP [sec]'
type: DEPENDENT
key: wctime
delay: '0'
value_type: FLOAT
units: '!sec'
description: 'The time it takes to connect to the WiFi AP.'
applications:
-
name: Stats
preprocessing:
-
type: JSONPATH
parameters:
- $.wctime
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
triggers:
-
expression: '{last()}>10'
name: '[{HOST.NAME}] - Sensor: WiFi AP long connection time [>10sec]'
description: 'WiFi AP has a connection time of over 10 seconds.'
-
name: 'Fails [WiFi]'
type: DEPENDENT
key: wfails
delay: '0'
description: 'Number of failed WiFi AP connection attempts.'
applications:
-
name: Fails
preprocessing:
-
type: JSONPATH
parameters:
- $.wfails
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
master_item:
key: 'mqtt.get[{$MQTT_BROKER},{$MQTT_TOPIC},{$MQTT_USER},{$MQTT_PASS}]'
triggers:
-
expression: '{last()}>0'
name: '[{HOST.NAME}] - Sensor: Recent connect to WiFi AP failed'
description: 'The last connection to WiFi AP failed.'
tags:
-
tag: Contact
value: '{INVENTORY.CONTACT}'
-
tag: Location
value: '{INVENTORY.LOCATION}'
-
tag: Type
value: Sensor
macros:
-
macro: '{$MQTT_BROKER}'
value: localhost
-
macro: '{$MQTT_PASS}'
-
macro: '{$MQTT_TOPIC}'
value: imssmart
-
macro: '{$MQTT_USER}'
dashboards:
-
name: IMS-Screen
widgets:
-
type: GRAPH_CLASSIC
width: '12'
height: '5'
fields:
-
type: GRAPH
name: graphid
value:
name: 'IMS-Smart Sensor: Temperature graph'
host: 'IMS-Smart Sensor V1.6 MQTT'
-
type: GRAPH_CLASSIC
x: '12'
width: '12'
height: '5'
fields:
-
type: GRAPH
name: graphid
value:
name: 'IMS-Smart Sensor: External temperature graph'
host: 'IMS-Smart Sensor V1.6 MQTT'
-
type: GRAPH_CLASSIC
'y': '5'
width: '12'
height: '5'
fields:
-
type: GRAPH
name: graphid
value:
name: 'IMS-Smart Sensor: Air pressure graph'
host: 'IMS-Smart Sensor V1.6 MQTT'
-
type: GRAPH_CLASSIC
x: '12'
'y': '5'
width: '12'
height: '5'
fields:
-
type: GRAPH
name: graphid
value:
name: 'IMS-Smart Sensor: Humidity graph'
host: 'IMS-Smart Sensor V1.6 MQTT'
-
type: GRAPH_CLASSIC
'y': '10'
width: '12'
height: '5'
fields:
-
type: GRAPH
name: graphid
value:
name: 'IMS-Smart Sensor: total volatile organic compound TVOC graph L'
host: 'IMS-Smart Sensor V1.6 MQTT'
-
type: GRAPH_CLASSIC
x: '12'
'y': '10'
width: '12'
height: '5'
fields:
-
type: GRAPH
name: graphid
value:
name: 'IMS-Smart Sensor: Equivalent carbon-dioxide eCO2 graph'
host: 'IMS-Smart Sensor V1.6 MQTT'
-
type: GRAPH_CLASSIC
'y': '15'
width: '12'
height: '5'
fields:
-
type: GRAPH
name: graphid
value:
name: 'IMS-Smart Sensor: Battery charge graph'
host: 'IMS-Smart Sensor V1.6 MQTT'
-
type: GRAPH_CLASSIC
x: '12'
'y': '15'
width: '12'