Skip to content

Commit df80a91

Browse files
Merge pull request #169 from sjfighter/master
Added sensor type
2 parents 12de7bb + 6b54973 commit df80a91

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

smartapps/stj/mqtt-bridge.src/mqtt-bridge.groovy

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ import groovy.transform.Field
2929
"acceleration"
3030
]
3131
],
32+
"airQualitySensors": [
33+
name: "AirQuality Sensor",
34+
capability: "capability.airQualitySensor",
35+
attributes: [
36+
"airQuality"
37+
]
38+
],
3239
"alarm": [
3340
name: "Alarm",
3441
capability: "capability.alarm",
@@ -113,6 +120,14 @@ import groovy.transform.Field
113120
],
114121
action: "actionOpenClosed"
115122
],
123+
"dustSensors": [
124+
name: "Dust Sensor",
125+
capability: "capability.dustSensor",
126+
attributes: [
127+
"fineDustLevel",
128+
"dustLevel"
129+
]
130+
],
116131
"energyMeter": [
117132
name: "Energy Meter",
118133
capability: "capability.energyMeter",

0 commit comments

Comments
 (0)