Skip to content

Commit

Permalink
Merge pull request #304 from tim-hellhake/add-smoke-sensor-support
Browse files Browse the repository at this point in the history
Add support for smoke sensors
  • Loading branch information
tim-hellhake authored Mar 19, 2021
2 parents e5498fd + 4c30f17 commit a6a3241
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/zigbee2mqtt/zigbee2mqtt-property.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ export class Zigbee2MqttProperty<T extends PropertyValue> extends Property<T> {
this.setAtType('BarometricPressureProperty');
break;
}
case 'smoke': {
device['@type'].push('SmokeSensor');
this.setTitle('Smoke');
this.setAtType('SmokeProperty');
break;
}
}
}

Expand Down

0 comments on commit a6a3241

Please sign in to comment.