Closed adamstamper closed 1 year ago
I'm seeing the same, hopefully there will be a fix soon
Same problem unfortunately. I hope to fix it 😭
Problem persist, I think is node version or maybe abadonware error the issue. However I have 18.2.1 as node, but which version of node is recommend for latest version stable of SwitchBot? Thanks donavabecker for your help!
The beta isn't needed to resolve the issue, simply reinstalling v2.3.2 will install v1.7.2 of the node-switchbot
dependency which contains the fix.
@dnicolson Beta has node-SwitchBot 1.7.2 as dependency.
v2.3.2 has ^1.7.0
of node-switchbot
as a dependency, so v1.7.2 gets installed in both cases.
thanks @dnicolson!
@adamstamper, @alevehemens, & @martindinicolino Version 2.4.0 has been released.
Ok, 2.4.0 not resolve issue unfortunately, however I installed again SwitchBot 2.3.2 but again still problem. I made a video directly on iPhone to record the error during installation. How can upload on this discussion? Because I’m trying to do this with image icon above the box text but when I upload video (30 seconds) nothing happens. Thanks a lot for your support in the meanwhile! Ps. I think that I’ve start to have a problem when I updated nove version from 16.x.x to 18.2.1. Is it possible that the issue would be node version?
@alevehemens It could be that, you may need to reviews prerequisites on noble and node-SwitchBot.
More then likely not a plug-in issue, but a ble dependency issue.
2.4.0 seems to have fixed this for me - thanks @donavanbecker & all!
@alevehemens It could be that, you may need to reviews prerequisites on noble and node-SwitchBot.
More then likely not a plug-in issue, but a ble dependency issue.
Ok so how can I fix it eventually? Which command should I write in the terminal? :)
won't be able to give you specifics, but this repo: node-switchbot, uses this repo: noble
Also there is a BLE Issue wiki: Bluetooth Issues
Ok so, I’ve downgraded node to 16.9.0 and now the error is the follow:
Bot failed BLEpushChanges with BLE /OpenAPI Connection & botMode: switch, Er ror Message: "Cannot read properties of u ndefined (reading 'wait')"
any suggest? :) thanks a lot for your continuos support guys!
can you try install 2.3.0 of the plugin version?
Done and downgrade to node version 14.21.2 and now the error is this:
[SwitchBot] Bot: Portoncino wasn't able to establish BLE COnnection, node-switchbot: object Object]
and other error:
Bot: Portoncino failed BLEpushChanges with BLE/ OpenAPI Connection & botMode: press, Erro I Message: "Cannot read property 'press' of undefined"
same error with other bot.
any idea?😭
Seems like a prerequisite isn't being meet.
Going to close this as my issue is resolved - maybe @alevehemens might want to raise a separate issue if problems continue. Thanks for the resolution!
i'm sorry for the late reply
I tried reinstalling this plugin, but the issue was not solved
every time I install this plugin I see this error install response status 404 Not Found on https://github.com/abandonware/node-bluetooth-hci-socket/releases/download/0.5.3-9/bluetooth_hci_socket-0.5.3-9-node-v108-linux-arm64.tar.gz
despite this error, the installation still finishes successfully
@adamstamper are you getting this too?
I tried the solution given in this discussion https://github.com/OpenWonderLabs/homebridge-switchbot/issues/511#issuecomment-1292801346 but this also did not fix the issue in my case
i'm open to suggestions if anyone has some
Describe The Bug
homebridge-switchbot no longer functions (it used to work!) - shows error "wasn't able to establish BLE Connection, node-switchbot: false"
To Reproduce
Install
Expected behavior
Switches control bot
Relevant log output
I tried removing and re-adding the plugin and have captured some errors visible during the installation:
Config for homebridge-switchbot
Screenshots
No response
Device & Model
SwitchBot bot
Node.js Version
v18.12.1
NPM Version
v8.19.2
Homebridge Version
v1.6.0
Homebridge Switchbot Plugin Version
v2.3.2
Homebridge Config UI X Plugin Version
v4.50.2
Operating System
Raspbian GNU/Linux Bullseye (11)