Skip to content

Commit 4c30f17

Browse files
committed
Add support for smoke sensors
1 parent e5498fd commit 4c30f17

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)