homebridge-broadlink-heater-cooler icon indicating copy to clipboard operation
homebridge-broadlink-heater-cooler copied to clipboard

Homebridge restart loop

Open sam-gabbay opened this issue 4 years ago • 8 comments

When trying to add my AC unit as an accessory, I restart the Homebridge server and get the following error in the logs.

My unit is functional with the AC Freedom app.

[11/17/2020, 1:57:58 PM] Homebridge is running on port 51680. [11/17/2020, 1:57:59 PM] RangeError [ERR_OUT_OF_RANGE]: The value of "sourceStart" is out of range. It must be <= 0. Received 4 at _copy (buffer.js:242:11) at Buffer.copy (buffer.js:769:12) at Socket. (/usr/local/lib/node_modules/homebridge-broadlink-heater-cooler/node_modules/broadlink-aircon-api/src/index.ts:116:19) at Socket.emit (events.js:315:20) at UDP.onMessage (dgram.js:919:8) [11/17/2020, 1:57:59 PM] Got SIGTERM, shutting down Homebridge...

sam-gabbay avatar Nov 17 '20 19:11 sam-gabbay

Hi! Show yours config.json

makleso6 avatar Nov 18 '20 08:11 makleso6

And what kind of AC do you use?

makleso6 avatar Nov 18 '20 08:11 makleso6

please, update issue with template

makleso6 avatar Nov 18 '20 09:11 makleso6

try to update package to latest version and find in HB console message 'loop-fix N'

makleso6 avatar Nov 18 '20 09:11 makleso6

@makleso6

Updated to 2.2.3 and now have “loop-fix 0” in the console log.

My unit is an AUX WiFi Enabled Mini-split.

Here is my config file.

{     "bridge": {         "name": "Homebridge E9A7",         "username": "0E:E4:93:B7:E9:A7",         "port": 51680,         "pin": "853-15-120"     },     "platforms": [         {             "name": "Config",             "port": 8581,             "platform": "config"         }     ],     "accessories": [         {             "name": "AC AUX",             "mac": "XX:XX:XX:XX:XX:XX",             "ip": "192.168.X.XXX",             "accessory": "AirCondionerAccessory"         }     ] }

sam-gabbay avatar Nov 18 '20 12:11 sam-gabbay

@sam-gabbay probably in new firmware update of AC, developers made changes.

makleso6 avatar Nov 21 '20 11:11 makleso6

@makleso6 I sent you an email, would you consider updating for the latest firmware?

sam-gabbay avatar Nov 22 '20 13:11 sam-gabbay

@sam-gabbay can you try this? https://github.com/liaan/broadlink_ac_mqtt

makleso6 avatar Nov 24 '20 09:11 makleso6