Skip to content

Commit a6a3241

Browse files
authored
Merge pull request #304 from tim-hellhake/add-smoke-sensor-support
Add support for smoke sensors
2 parents e5498fd + 4c30f17 commit a6a3241

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/zigbee2mqtt/zigbee2mqtt-property.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ export class Zigbee2MqttProperty<T extends PropertyValue> extends Property<T> {
145145
this.setAtType('BarometricPressureProperty');
146146
break;
147147
}
148+
case 'smoke': {
149+
device['@type'].push('SmokeSensor');
150+
this.setTitle('Smoke');
151+
this.setAtType('SmokeProperty');
152+
break;
153+
}
148154
}
149155
}
150156

0 commit comments

Comments
 (0)