Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serial Port Not Supported #299

Open
Jmakosky opened this issue Aug 11, 2023 · 5 comments
Open

Serial Port Not Supported #299

Jmakosky opened this issue Aug 11, 2023 · 5 comments

Comments

@Jmakosky
Copy link

Kuestess,
You were helping me last week with InsteonLocal detecting my PLM hub via the serial port. I ended up deleting and reinstalling NODE.JS, NPM, Homebridge and finally your plugin. Unfortunately, nothing has changed. I ran some of the commands you provided during our troubleshooting as well. I am at a complete loss. The hub and usb serial port works because I can enable Indigodomo and use it to control all the insteon devices. I am being careful of stopping the Indigo server so the port doesn't conflict. I verified the path to the port as well "/dev/tty.usbserial_A906XMJE" and made sure it is correct in the plugin.

I don't know what to do. I am not sure if I re-ran all the commands you had sent me such as the one to revert back to the old port or something like that. I feel like a complete Noob here. Your plugin had worked great for six months. Did something change in the i3 update you just sent out. My issues started at somewhere around that point but I was gone for a week so it is a little foggy. After I updated the plugin I didn't reboot the computer but a few days later the Mac Mini updated, rebooted and I have had the problem since then. So, either the MacOS update got me or the update to the plugin.
I have a M1 Mac Mini currently running Ventura 13.4.1.
Thoughts?


Registering platform 'homebridge-platform-insteonlocal.InsteonLocal'
[8/10/2023, 7:24:06 PM] [InsteonLocal] Loaded homebridge-platform-insteonlocal v0.5.10 child bridge successfully

/usr/local/lib/node_modules/homebridge-platform-insteonlocal/node_modules/home-controller/lib/Insteon/index.js:123
throw (new Error('serial is Unsupported on this platform'));
^
Error: serial is Unsupported on this platform
at Insteon.serial (/usr/local/lib/node_modules/homebridge-platform-insteonlocal/node_modules/home-controller/lib/Insteon/index.js:123:12)
at InsteonLocalPlatform.connectToHub (/usr/local/lib/node_modules/homebridge-platform-insteonlocal/src/InsteonLocalPlatform.ts:212:11)
at new InsteonLocalPlatform (/usr/local/lib/node_modules/homebridge-platform-insteonlocal/src/InsteonLocalPlatform.ts:91:10)
at ChildBridgeFork.startBridge (/usr/local/lib/node_modules/homebridge/src/childBridgeFork.ts:150:42)
[8/10/2023, 7:24:06 PM] [InsteonLocal] Child bridge process ended
[8/10/2023, 7:24:06 PM] [InsteonLocal] Process Ended. Code: 1, Signal: null

@kuestess
Copy link
Owner

@Jmakosky I have a similar setup to you - M1 studio + PLM - that I was able to test with. I uninstalled everything plugin-related to simulate a new setup and was able to get it up and running fine just by installing the plugin via npm i -g home bridge-platform-insteonlocal. Not sure exactly what the issue is with your setup, but perhaps try installing a current version of node with nvm (https://github.com/nvm-sh/nvm) and then reinstall the plugin. I highly recommend nvm as it makes it super easy to install node (make sure to uninstall you existing node setup first). I happen to be running node v16.15.0, but any recent version should be fine. Using nvm, you can just run nvm install node --lts to get the latest.

@Jmakosky
Copy link
Author

Jmakosky commented Aug 11, 2023 via email

@kuestess
Copy link
Owner

@Jmakosky First world problems, huh?! :-). You shouldn't lose your homebridge configuration as there's no need to uninstall homebridge. That config is typically in your user directory in .homebridge. Check to see if it's there and create a copy of it first. Here's what I'd do:

  1. Uninstall your existing node packages: npm uninstall homebridge-platform-insteonlocal serialport
  2. Uninstall your existing node: type which node and then rm [output from last command]
  3. Install nvm: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash. Close and re-open your terminal after this.
  4. Install latest node LTS version: nvm install node --lts then nvm use node
  5. Reinstall homebridge and the plugin: npm i -g homebridge homebridge-platform-insteonlocal

This is from memory - it should work, but let me know if you have questions.

@Jmakosky
Copy link
Author

Jmakosky commented Aug 13, 2023 via email

@kuestess
Copy link
Owner

@Jmakosky You should be able to correct the device definition in your config - you can edit that device in the gui to change the deviceType to lightbulb instead of a keypad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants