isalkind / homebridge-ra2-select

Homebridge plugin that allows Pico remotes to be surfaced when using the Lutron RA2 Select bridge.
MIT License
0 stars 0 forks source link

FAILED TO CREATE PICO: ReferenceError: pluginName is not defined #1

Open dmcgaugh opened 6 months ago

dmcgaugh commented 6 months ago

With each Pico I add to the config, I get the following error during plugin startup and the Pico devices do not show up in HomeKit:

FAILED TO CREATE PICO: ReferenceError: pluginName is not defined

isalkind commented 6 months ago

@dmcgaugh please provide the JSON config for the plugin so I can take a look. Thanks.

dmcgaugh commented 6 months ago

Thanks -- I've attached the json here. ra2select.json

isalkind commented 6 months ago

The config looks okay at first glance. I don't recognize the error that you're seeing. It looks like you were able to get device ids and button ids, but when you added them to the config is when things went wrong? I'll have to do some more investigating when I have a chance. Did you use config ui x to configure or by hand? Could you provide the log as the plugin starts up so I can see more of the details?

dmcgaugh commented 6 months ago

Hi, yeah -- I used config ui x to configure it. If it helps, while troubleshooting myself, among other things, at one point I deleted the remotes, added one back and left the device name blank and receive an error that the name was required (as expected), but did not get the failed to create pico error, then filled in the device name, but left the button name empty, then received a button name blank error (as expected). Only after filling in the device and button name did I receive the failed to create pico error. Point being, wherever the code is that generates that error seems to be after the device and button name checks (?).

Below is the log from me restarting the plugin. And also when I press the two buttons I have configured on the two different remotes. As you not, I can see the button presses in the log as well as from any other remotes I have in the house not yet configured.

[4/13/2024, 1:56:23 PM] [RA2Select] Restarting child bridge... [4/13/2024, 1:56:23 PM] Got SIGTERM, shutting down child bridge process... [4/13/2024, 1:56:28 PM] [RA2Select] Child bridge process ended [4/13/2024, 1:56:28 PM] [RA2Select] Process Ended. Code: 143, Signal: null [4/13/2024, 1:56:35 PM] [RA2Select] Restarting Process... [4/13/2024, 1:56:35 PM] [RA2Select] Launched child bridge with PID 16844 [4/13/2024, 1:56:36 PM] [RA2Select] Loaded homebridge-ra2-select v1.1.2 child bridge successfully [4/13/2024, 1:56:36 PM] [RA2Select] Loaded config [4/13/2024, 1:56:36 PM] [RA2Select] Did Finish Launching... [4/13/2024, 1:56:36 PM] [RA2Select] Configure devices... [4/13/2024, 1:56:36 PM] [RA2Select] FAILED TO CREATE PICO: ReferenceError: pluginName is not defined [4/13/2024, 1:56:36 PM] [RA2Select] FAILED TO CREATE PICO: ReferenceError: pluginName is not defined [4/13/2024, 1:56:36 PM] [RA2Select] Creating telnet connection... [4/13/2024, 1:56:36 PM] [RA2Select] RCV CONNECT [4/13/2024, 1:56:36 PM] [RA2Select] RCV READY. PROMPT: GNET> [4/13/2024, 1:56:38 PM] [RA2Select] RCV TIMEOUT [4/13/2024, 1:57:01 PM] [RA2Select] RCV UNK: deviceId=79, buttonId=3, actionNumber=3 [4/13/2024, 1:57:01 PM] [RA2Select] RCV UNK: deviceId=79, buttonId=3, actionNumber=4 [4/13/2024, 1:57:10 PM] [RA2Select] RCV UNK: deviceId=78, buttonId=6, actionNumber=3 [4/13/2024, 1:57:10 PM] [RA2Select] RCV UNK: deviceId=78, buttonId=6, actionNumber=4