Skip to content

Commit

Permalink
FwBuryPoint-bd_air-quality event triggers GetAirQuality command
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbungle64 committed Dec 6, 2023
1 parent dbb371f commit e06d2bd
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions library/950type/ecovacsMQTT_JSON.js
Original file line number Diff line number Diff line change
Expand Up @@ -652,19 +652,8 @@ class EcovacsMQTT_JSON extends EcovacsMQTT {
break;
}
case 'FwBuryPoint-bd_air-quality':
if (this.vacBot.airQuality) {
this.vacBot.handleAirQuality({
'pm25': payload['pm25'],
'pm_10': payload['pm1'],
'particulateMatter10': payload['pm10'],
'airQualityIndex': this.vacBot.airQuality.airQualityIndex,
'volatileOrganicCompounds': payload['voc'],
'temperature': this.vacBot.airQuality.temperature,
'humidity': this.vacBot.airQuality.humidity
});
this.emit('AirQuality', this.vacBot.airQuality);
break;
}
this.vacBot.run('GetAirQuality');
break;
case 'FwBuryPoint-bd_task-return-normal-start':
case 'FwBuryPoint-bd_task-return-normal-stop':
case 'FwBuryPoint-bd_task-clean-move-start':
Expand Down

0 comments on commit e06d2bd

Please sign in to comment.