Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
* develop:
  version bump + history
  added extra co2 characteristic for stock-home.app, can be hidden in eve.app
  • Loading branch information
Sebastian Kroll committed May 1, 2019
2 parents 38f74a6 + e8e44bc commit f399c7c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## version history

### 0.4.5
- added an extra co2-characteristic for stock-home.app, can be hidden in eve.app

### 0.4.4
- added a config option which prevents the netatmo's devicename to be prepended and instead appends a configurable name to the modules

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "homebridge-eveatmo",
"version": "0.4.4",
"version": "0.4.5",
"description": "Homebridge plugin which adds a Netatmo weatherstation as HomeKit device and tries to act like Elgato Eve Room/Weather",
"license": "ISC",
"keywords": [
Expand Down
8 changes: 8 additions & 0 deletions service/eveatmo-room-airquality.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ module.exports = function(pHomebridge) {
.on('get', this.getAirQuality.bind(this))
.eventEnabled = true;

// extra characteristic for stock home.app
var co2LevelCharacteristic = this.getCharacteristic(Characteristic.CarbonDioxideLevel) ||
this.addCharacteristic(Characteristic.CarbonDioxideLevel);
co2LevelCharacteristic.on('get', this.getAQExtra1.bind(this))
.eventEnabled = true;

this.addCharacteristic(AQExtra1Characteristic)
.on('get', this.getAQExtra1.bind(this));

Expand All @@ -68,6 +74,8 @@ module.exports = function(pHomebridge) {
this.getCharacteristic(Characteristic.AirQuality)
.updateValue(this.transformCO2ToAirQuality());

this.getCharacteristic(Characteristic.CarbonDioxideLevel)
.updateValue(this.accessory.co2);
this.getCharacteristic(AQExtra1Characteristic)
.updateValue(this.accessory.co2);

Expand Down

0 comments on commit f399c7c

Please sign in to comment.