github9984 / homebridge-xiaomi-purifier-3

Xiaomi Air Purifier 3 plugin for Homebridge
MIT License
0 stars 0 forks source link

"enableBuzzer" and "enableBuzzerName" commands cause my Hoobs setpu to fail (service stopped) #9

Open originalmagneto opened 4 years ago

originalmagneto commented 4 years ago

Here is my relevant log excerpt:

14/06/2020, 17:46:10 - [Bed Room Air Purifier] getAirQuality
14/06/2020, 17:46:10 - [Bed Room Air Purifier] getStatusActive
14/06/2020, 17:46:10 - [Bed Room Air Purifier] getPM2_5Density
14/06/2020, 17:46:10 - [Bed Room Air Purifier] getTemperature
14/06/2020, 17:46:10 - [Bed Room Air Purifier] getStatusActive
14/06/2020, 17:46:10 - [Bed Room Air Purifier] getHumidity
14/06/2020, 17:46:10 - [Bed Room Air Purifier] getStatusActive
14/06/2020, 17:46:10 - [Bed Room Air Purifier] getActive
14/06/2020, 17:46:10 - [Bed Room Air Purifier] getCurrentAirPurifierState
14/06/2020, 17:46:10 - [Bed Room Air Purifier] getTargetAirPurifierState
14/06/2020, 17:46:10 - [Bed Room Air Purifier] getRotationSpeed
14/06/2020, 17:46:10 - [Bed Room Air Purifier] getLockPhysicalControls
14/06/2020, 17:46:10 - [Bed Room Air Purifier] getFilterChangeIndication
14/06/2020, 17:46:10 - [Bed Room Air Purifier] getFilterLifeLevel
14/06/2020, 17:46:10 - [Bed Room Air Purifier] getLED
14/06/2020, 17:46:10 - [Bed Room Air Purifier] getBuzzer
14/06/2020, 17:46:10 - [Bed Room Air Purifier] getBuzzer Failed: Error: This callback function has already been called by someone else; it can only be called one time.
14/06/2020, 17:46:10 - Error: This callback function has already been called by someone else; it can only be called one time.
    at /usr/local/lib/node_modules/@hoobs/hoobs/node_modules/hap-nodejs/dist/lib/util/once.js:11:19
    at AirPurifier.getBuzzer (/home/hoobs/.hoobs/node_modules/homebridge-xiaomi-purifier-3/index.js:578:9)
    at On.emit (events.js:322:22)
    at On.EventEmitter.emit (/usr/local/lib/node_modules/@hoobs/hoobs/node_modules/hap-nodejs/dist/lib/EventEmitter.js:59:38)
    at On.Characteristic._this.getValue (/usr/local/lib/node_modules/@hoobs/hoobs/node_modules/hap-nodejs/dist/lib/Characteristic.js:190:23)
    at /usr/local/lib/node_modules/@hoobs/hoobs/node_modules/hap-nodejs/dist/lib/Accessory.js:753:32
    at Array.forEach (<anonymous>)
    at Bridge.Accessory._this._handleGetCharacteristics (/usr/local/lib/node_modules/@hoobs/hoobs/node_modules/hap-nodejs/dist/lib/Accessory.js:694:18)
    at HAPServer.emit (events.js:310:20)
    at HAPServer.EventEmitter.emit (/usr/local/lib/node_modules/@hoobs/hoobs/node_modules/hap-nodejs/dist/lib/EventEmitter.js:59:38)

When I disable the buzzer feature completely, the plugin works withou issues.