humidifier-dehumidifier accessory is throwing an error when "noHumidity" is set to true
See original GitHub issueThis is the config I have in my setup:
{ "name": "Humidifier", "type": "humidifier-dehumidifier", "host": "192.168.4.23", "showSwingMode": false, "humidifierOnly": true, "showLockPhysicalControls": false, "noHumidity": true, "data": {} }
This is the error in the console:
[2020-10-25 14:19:15] [Broadlink RM] Humidifier getSwitchState: false [2020-10-25 14:19:16] ReferenceError: serviceManager is not defined at HumidifierDehumidifierAccessory.getCurrentHumidity (/usr/lib/node_modules/homebridge-broadlink-rm-pro/accessories/humidifier-dehumidifier.js:182:7) at CurrentRelativeHumidity.emit (events.js:314:20) at CurrentRelativeHumidity.EventEmitter.emit (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22) at CurrentRelativeHumidity.Characteristic._this.getValue (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:489:12) at ServiceManager.refreshCharacteristicUI (/usr/lib/node_modules/homebridge-broadlink-rm-pro/helpers/serviceManager.js:27:44) at Timeout._onTimeout (/usr/lib/node_modules/homebridge-broadlink-rm-pro/node_modules/homebridge-platform-helper/accessory.js:195:42) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7)
@kiwi-cam It would be great also to have the option to read current humidity from a file, same way aircon does. Otherwise, it will appear as 0% in the house. Thanks!!!
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (3 by maintainers)
Top GitHub Comments
i think it is form “noHumidity”: true, can you get rid of that and check
Thank you for the quick reply! now this issue is fixed. I’ve found a couple of additional glitches in this accessory, but I should probably open new bugs. Eg: