homebridge-broadlink-rm icon indicating copy to clipboard operation
homebridge-broadlink-rm copied to clipboard

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

Open avivamientodev opened this issue 3 years ago • 10 comments

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:

  • [homebridge-broadlink-rm] This plugin generated a warning from the characteristic 'On': characteristic value expected boolean and received undefined.

  • [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.

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

avivamientodev avatar Mar 08 '21 13:03 avivamientodev

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

sonnyfournier avatar Mar 20 '21 13:03 sonnyfournier

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.

jangomunkie avatar Mar 28 '21 16:03 jangomunkie

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

dodds-1 avatar Apr 01 '21 23:04 dodds-1

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

sonnyfournier avatar Apr 09 '21 14:04 sonnyfournier

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

linanw avatar Apr 26 '21 06:04 linanw

@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 ?? '');

Snoomy avatar May 18 '21 00:05 Snoomy

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?

Faisalthe01 avatar Jul 24 '21 16:07 Faisalthe01

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.

carys-cc avatar Sep 22 '21 12:09 carys-cc

Hi!

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

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

SzilagyiR avatar Oct 17 '21 17:10 SzilagyiR

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?

Mattserati avatar Apr 24 '23 01:04 Mattserati