Skip to content

Commit

Permalink
Merge branch 'refs/heads/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
skrollme committed Apr 10, 2024
2 parents 930b1bb + 2249389 commit ebc1fb4
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 6 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## version history

### 1.1.1
- Thanks to a PR (https://github.com/skrollme/homebridge-eveatmo/pull/76) from @Tellicious:
- Add new flag to enable/disable AirQuality sensor for indoor modules

### 1.1.0
- allows new auth method (via refreshtoken) and old one (via password)
- added config-schema to configure this via UI
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ You can also configure this plugin via [ConfigUI-X's settings](https://github.co

- **weatherstation** Enables support for Netatmo's WeatherStation. Default value is *true*
- **airquality** Enables support for Netatmo's Indoor Air Quality monitor. Default value is *false*
- **extra_aq_sensor: (optional)** Adds an extra AirQuality sensor which is available via Apple's stock Home.app, reporting CO2 level. Default value is *true*
- **extra_co2_sensor: (optional)** Adds an extra CO2 sensor which is available via Apple's stock Home.app, too. Default value is *false*
- **co2_alert_threshold (optional):** Sets the co2-level [ppm] at which the sensors switch to alert-state
- **ttl: (optional)** Seconds between two Netatmo API polls. Lower is not neccessarily better! The weatherstation itself collects one value per 5minutes, so going below 300s makes no sense. Default value is *540* (=9min)
Expand Down
10 changes: 6 additions & 4 deletions accessory/eveatmo-room-accessory.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ module.exports = function(pHomebridge) {
var HumidityService = require(serviceDir + '/eveatmo-humidity')(homebridge);
var serviceHumidity = new HumidityService(this);
this.addService(serviceHumidity);

var EveatmoRoomAirqualityService = require(serviceDir + '/eveatmo-room-airquality')(homebridge);
var serviceAirquality = new EveatmoRoomAirqualityService(this);
this.addService(serviceAirquality);

if(this.config.extra_aq_sensor) {
var EveatmoRoomAirqualityService = require(serviceDir + '/eveatmo-room-airquality')(homebridge);
var serviceAirquality = new EveatmoRoomAirqualityService(this);
this.addService(serviceAirquality);
}

if(this.config.extra_co2_sensor) {
var EveatmoRoomCo2Service = require(serviceDir + '/eveatmo-co2')(homebridge);
Expand Down
6 changes: 6 additions & 0 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
"minimum": 300,
"description": "Seconds between two Netatmo API polls (default 540)"
},
"extra_aq_sensor": {
"title": "Extra AirQuality sensor",
"type": "boolean",
"default": true,
"description": "Adds an extra AirQuality sensor reporting CO2 level"
},
"extra_co2_sensor": {
"title": "Extra CO2 sensor",
"type": "boolean",
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class EveatmoPlatform {
this.foundAccessories = [];

this.config.weatherstation = typeof config.weatherstation !== 'undefined' ? Boolean(config.weatherstation) : true;
this.config.extra_co2_sensor = typeof config.extra_co2_sensor !== 'undefined' ? Boolean(config.extra_co2_sensor) : false;
this.config.extra_aq_sensor = typeof config.extra_aq_sensor !== 'undefined' ? Boolean(config.extra_aq_sensor) : true;
this.config.extra_co2_sensor = typeof config.extra_co2_sensor !== 'undefined' ? Boolean(config.extra_co2_sensor) : false;
this.config.co2_alert_threshold = typeof config.co2_alert_threshold !== 'undefined' ? parseInt(config.co2_alert_threshold) : 1000;

this.config.module_suffix = typeof config.module_suffix !== 'undefined' ? config.module_suffix : '';
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": "1.1.0",
"version": "1.1.1",
"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

0 comments on commit ebc1fb4

Please sign in to comment.