From 6c5a042b1bdb354afbb98b19326c0f04299ebee2 Mon Sep 17 00:00:00 2001 From: Sebastian Kroll Date: Wed, 1 May 2019 15:28:55 +0200 Subject: [PATCH 1/2] added extra co2 characteristic for stock-home.app, can be hidden in eve.app --- service/eveatmo-room-airquality.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/service/eveatmo-room-airquality.js b/service/eveatmo-room-airquality.js index 694777e..e6758a6 100644 --- a/service/eveatmo-room-airquality.js +++ b/service/eveatmo-room-airquality.js @@ -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)); @@ -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); From e8e44bc86bcdad5009c462ce96a1f4f6f1f26e5a Mon Sep 17 00:00:00 2001 From: Sebastian Kroll Date: Wed, 1 May 2019 15:30:01 +0200 Subject: [PATCH 2/2] version bump + history --- HISTORY.md | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index 77bfdd0..ae4d90d 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -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 diff --git a/package.json b/package.json index 1d1ae2f..95eb5c3 100644 --- a/package.json +++ b/package.json @@ -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": [