lprhodes / homebridge-broadlink-rm

Broadlink RM Mini and Pro plugin for homebridge: https://github.com/nfarina/homebridge
Apache License 2.0
571 stars 284 forks source link

Unhandled error thrown inside read handler for characteristic: log is not a function. #712

Open avivamientodev opened 3 years ago

avivamientodev commented 3 years ago

Hi, I'm using the following plugins in my Raspberry PI, I had no errors before updating:

Homebridge Broadlink Rm - homebridge-broadlink-rm v3.6.22 Homebridge UI - homebridge-config-ui-x v4.40.0 Homebridge Apple Tv Remote - homebridge-apple-tv-remote v0.12.1

I'm receiving one warning and one error from Homebridge Broadlink RM:

I searched and finally, the last recommendation I to write to the author of the plugin. I will appreciate if some one was able to fix this problem. Kind regards

sonnyfournier commented 3 years ago

Hi, I have the same issue, can you take a look @lprhodes ?

jangomunkie commented 3 years ago

Same here: [homebridge-broadlink-rm] This plugin threw an error from the characteristic 'Name': Unhandled error thrown inside read handler for characteristic: log is not a function. See https://git.io/JtMGR for more info.

dodds-1 commented 3 years ago

Also getting:

[homebridge-broadlink-rm] This plugin threw an error from the characteristic 'Name': Unhandled error thrown inside read handler for characteristic: log is not a function

sonnyfournier commented 3 years ago

Update: I find a fork that works: https://github.com/kiwi-cam/homebridge-broadlink-rm

linanw commented 3 years ago

Created a fix pull request: https://github.com/lprhodes/homebridge-platform-helper/pull/9 Meanwhile, you may replace the line of code in you local file. /homebridge/node_modules/homebridge-broadlink-rm/node_modules/homebridge-platform-helper/dist/serviceManager.js

if (log) { log(`${name} getName: ${name}`); }
callback(null,` name ?? '');

image

Snoomy commented 3 years ago

@linanw thank for a fix! but let me kindly draw your attention to a typo in your post (not in your commit): callback(null, !!!->`<-!!! name ?? '');

Faisalthe01 commented 3 years ago

Created a fix pull request: lprhodes/homebridge-platform-helper#9 Meanwhile, you may replace the line of code in you local file. /homebridge/node_modules/homebridge-broadlink-rm/node_modules/homebridge-platform-helper/dist/serviceManager.js

if (log) { log(`${name} getName: ${name}`); }
callback(null,` name ?? '');

image

I cannot seem to find the file. There is no dist folder. Can you help?

patrickchoi commented 2 years ago

Is this actually going to be fixed? It generated a 20GB worth of error logs in homebridge until I noticed this was happening. Congrats, this is horrible.

SzilagyiR commented 2 years ago

Hi!

Both code is dropoing me erros on startup, can somebody help me?

callback(null,` name ?? ''); callback(null, name ?? '');

Mattserati commented 1 year ago

Bumping this issue, as it seems to remain unresolved. Is the developer still supporting the plugin, or does anyone have a workaround that doesn't require a doctorate in coding?