homebridge-itho-daalderop
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -7,5 +7,20 @@ ### Changelog | ||
#### [1.1.3](https://github.com/jvandenaardweg/homebridge-itho-daalderop/compare/1.1.2...1.1.3) | ||
- test: increase test coverage on fan accessory [`2a0f6ae`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/2a0f6ae69be722ecf7e97f7d3a2f7f4f93adb069) | ||
- test: increase test coverage on fan accessory [`49f5940`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/49f5940fcaa029f0dd3df37cae43618078e5f959) | ||
- feat: use ReqFanspeed for non-cve devices [`d8e1a35`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/d8e1a35aacc37ecc87f4a9f882db8f7a10b4beb4) | ||
- docs: update on actual mode 24 auto mode [`75a45a7`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/75a45a76d205ae6f112a00df7d063b066f4d6c81) | ||
- docs: improve example config in readme [`3eb18f0`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/3eb18f0d65e3a15df11af9bb5989d411e8731f7e) | ||
- docs: improve example config in readme [`0214157`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/0214157317ba4d395bd2470b13bfd07c01e31feb) | ||
- docs: improve readme [`7f02418`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/7f02418637d5c157fa84093b2edd804b2f508804) | ||
- docs: reverted improve example config in readme [`db0122d`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/db0122dc27204f13235b4ce8359c11adffb0cda1) | ||
- docs: improve example config in readme [`6363e25`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/6363e25528096cacbd40ece6878c5c46969a05e3) | ||
#### [1.1.2](https://github.com/jvandenaardweg/homebridge-itho-daalderop/compare/1.1.1...1.1.2) | ||
> 30 December 2022 | ||
- docs: update docs on api utils [`550ce57`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/550ce573f7df265fc749a7cb27dce9e44da8f1c2) | ||
- chore: release v1.1.2 [`14771b7`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/14771b7651b7a0476a67cb44763bafcfcf07e21a) | ||
- test: increase test coverage on config.schema [`354326d`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/354326dd5f7b0a3b08a4014fd3f452996f3cb5bb) | ||
@@ -12,0 +27,0 @@ - chore: update issue templates [`f405f8e`](https://github.com/jvandenaardweg/homebridge-itho-daalderop/commit/f405f8e828cbfcb7e75f5fbe61038f4cbf58d75e) |
@@ -25,3 +25,2 @@ /// <reference types="node" /> | ||
}; | ||
get isActive(): boolean; | ||
get allowsManualSpeedControl(): boolean; | ||
@@ -28,0 +27,0 @@ setRotationSpeed(value: number): void; |
@@ -114,6 +114,2 @@ "use strict"; | ||
} | ||
get isActive() { | ||
return (this.service.getCharacteristic(this.platform.Characteristic.Active).value === | ||
this.platform.Characteristic.Active.ACTIVE); | ||
} | ||
get allowsManualSpeedControl() { | ||
@@ -125,6 +121,2 @@ var _a, _b; | ||
const currentValue = this.service.getCharacteristic(this.platform.Characteristic.RotationSpeed).value; | ||
if (isNaN(value)) { | ||
this.log.error(`RotationSpeed: Value is not a number: ${value}`); | ||
return; | ||
} | ||
if (currentValue === value) { | ||
@@ -139,6 +131,2 @@ this.log.debug(`RotationSpeed: Already set to: ${value}. Ignoring.`); | ||
const currentValue = this.service.getCharacteristic(this.platform.Characteristic.Active).value; | ||
if (isNaN(value)) { | ||
this.log.error(`Active: Value is not a number: ${value}`); | ||
return; | ||
} | ||
if (currentValue === value) { | ||
@@ -223,3 +211,3 @@ this.log.debug(`Active: Already set to: ${value}. Ignoring.`); | ||
this.lastStatusPayloadTimestamp = Date.now(); | ||
const currentSpeedStatus = statusPayload['Speed status'] || 0; | ||
const currentSpeedStatus = statusPayload[settings_1.SPEED_STATUS_KEY] || statusPayload[settings_1.REQ_FAN_SPEED_KEY] || 0; | ||
this.setCurrentFanState(currentSpeedStatus); | ||
@@ -226,0 +214,0 @@ } |
@@ -15,3 +15,5 @@ export declare const PLATFORM_NAME = "HomebridgeIthoDaalderop"; | ||
export declare const ACTUAL_MODE_KEY = "Actual_Mode"; | ||
export declare const SPEED_STATUS_KEY = "Speed status"; | ||
export declare const REQ_FAN_SPEED_KEY = "ReqFanspeed"; | ||
export declare const FALLBACK_VIRTUAL_REMOTE_COMMAND = "medium"; | ||
//# sourceMappingURL=settings.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FALLBACK_VIRTUAL_REMOTE_COMMAND = exports.ACTUAL_MODE_KEY = exports.FAN_INFO_KEY = exports.CO2_LEVEL_SENSOR_KEY = exports.ACTIVE_SPEED_THRESHOLD = exports.MAX_ROTATION_SPEED = exports.MQTT_CMD_TOPIC = exports.MQTT_STATE_TOPIC = exports.MQTT_STATUS_TOPIC = exports.DEFAULT_AIR_QUALITY_SENSOR_NAME = exports.DEFAULT_FAN_NAME = exports.MANUFACTURER = exports.DEFAULT_BRIDGE_NAME = exports.PLUGIN_NAME = exports.PLATFORM_NAME = void 0; | ||
exports.FALLBACK_VIRTUAL_REMOTE_COMMAND = exports.REQ_FAN_SPEED_KEY = exports.SPEED_STATUS_KEY = exports.ACTUAL_MODE_KEY = exports.FAN_INFO_KEY = exports.CO2_LEVEL_SENSOR_KEY = exports.ACTIVE_SPEED_THRESHOLD = exports.MAX_ROTATION_SPEED = exports.MQTT_CMD_TOPIC = exports.MQTT_STATE_TOPIC = exports.MQTT_STATUS_TOPIC = exports.DEFAULT_AIR_QUALITY_SENSOR_NAME = exports.DEFAULT_FAN_NAME = exports.MANUFACTURER = exports.DEFAULT_BRIDGE_NAME = exports.PLUGIN_NAME = exports.PLATFORM_NAME = void 0; | ||
exports.PLATFORM_NAME = 'HomebridgeIthoDaalderop'; | ||
@@ -18,3 +18,5 @@ exports.PLUGIN_NAME = 'homebridge-itho-daalderop'; | ||
exports.ACTUAL_MODE_KEY = 'Actual_Mode'; | ||
exports.SPEED_STATUS_KEY = 'Speed status'; | ||
exports.REQ_FAN_SPEED_KEY = 'ReqFanspeed'; | ||
exports.FALLBACK_VIRTUAL_REMOTE_COMMAND = 'medium'; | ||
//# sourceMappingURL=settings.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const PLUGIN_VERSION = "1.1.2"; | ||
export declare const PLUGIN_VERSION = "1.1.3"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PLUGIN_VERSION = void 0; | ||
exports.PLUGIN_VERSION = "1.1.2"; | ||
exports.PLUGIN_VERSION = "1.1.3"; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"displayName": "Homebridge Itho Daalderop", | ||
"name": "homebridge-itho-daalderop", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "This Homebridge plugin exposes your Itho Daalderop mechanical fan unit to Apple HomeKit by using the WiFi Add-on module. So you can use the Home App to control your fan units and integrate into your Home Automations.", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -66,2 +66,4 @@ <p align="center"> | ||
Below is an example config for the CVE-S Optima Inside with a built-in CO2 sensor and using the MQTT API. | ||
```json | ||
@@ -90,3 +92,3 @@ { | ||
If you have such a device with a built-in CO2 sensor, please add the `device` configuration option to your config.json file and set the `co2Sensor` option to `true`. If you have a non-CVE device set the `nonCve` option to `true`. Or use the Homebridge UI to set these options. The plugin will then automatically map the speed in the Home App to the respective virtual remote commands, which will allow you to control the fan speed in 3 steps. The mapping is as follows: | ||
If you have such a device, please add the `device` configuration option to your config.json file. For a built-in CO2 sensor set the `co2Sensor` option to `true`. If you have a non-CVE device set the `nonCve` option to `true`. Or use the Homebridge UI to set these options. The plugin will then automatically map the speed in the Home App to the respective virtual remote commands, which will allow you to control the fan speed in 3 steps. The mapping is as follows: | ||
@@ -93,0 +95,0 @@ | Home App speed | Virtual remote command | HomeKit Active state | |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
146232
109
1540