kuestess / homebridge-platform-insteonlocal

Homebridge platform plugin for local Insteon control
Other
76 stars 26 forks source link

Mini Remote Linc remote type not supported? #306

Open RossGGG opened 6 months ago

RossGGG commented 6 months ago

Discussed in https://github.com/kuestess/homebridge-platform-insteonlocal/discussions/305

Originally posted by **RossGGG** January 6, 2024 Hello, I'm trying to setup a Mini Remote Linc with the plugin and having issues. For reference, this is a two-button remote that just looks like a decora paddle light switch. When I set the device type to "remote" in the configuration, I get the following error every time I press a button on the remote and then homebridge crashes. `TypeError: Cannot read properties of undefined (reading 'call') at Insteon. (/usr/local/lib/node_modules/homebridge-platform-insteonlocal/src/InsteonLocalPlatform.ts:552:49) at Insteon.emit (node:events:514:28) at Insteon.handler (/usr/local/lib/node_modules/homebridge-platform-insteonlocal/node_modules/home-controller/lib/Insteon/index.js:725:12) at Insteon._checkStatus (/usr/local/lib/node_modules/homebridge-platform-insteonlocal/node_modules/home-controller/lib/Insteon/index.js:667:33) at Insteon.checkStatus (/usr/local/lib/node_modules/homebridge-platform-insteonlocal/node_modules/home-controller/lib/Insteon/index.js:603:21) at SerialPort. (/usr/local/lib/node_modules/homebridge-platform-insteonlocal/node_modules/home-controller/lib/Insteon/index.js:165:12) at SerialPort.emit (node:events:514:28) at addChunk (node:internal/streams/readable:545:12) at readableAddChunkPushByteMode (node:internal/streams/readable:495:3) at SerialPort.Readable.push (node:internal/streams/readable:375:5)` I can set the device type to "keypad" and then I can at least trigger it on and off by pressing the buttons on the remote, but I can't figure out how to register a button press when the device state already matches the button that was pressed. I would like to setup triggers in HomeKit that work when the "on" or "off" buttons are pressed regardless of what state the device believes it is already in.
kuestess commented 6 months ago

@RossGGG The remote device type is for the 8-button mini remotes, but it will probably work with the two-button remote that you have, perhaps with some configuration finagling. Can you post your config for the remote and run homebridge in debug mode homebridge -D and post the output when you get the error (including some of the messages before and after the above).