You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have recently ordered an switchbot bot and tired to use it using an IOBroker module, which uses this library.
However, it does not seem to be found at all.
After testing with just the library and some code from the readme, expecting it to be found there.
It seems that the issue comes from this library.
The main difference we have found is a different firmware version of the bot. Maybe it is a new revision as well.
So my guess would be that the new revision and/or firmware version is different enough to not be found by this library.
Code I used for testing:
// Load the node-switchbot and get a `Switchbot` constructor objectimport('node-switchbot').then(({ SwitchBot })=>{//Adjusted, as require() was not applicable for me// Create a `Switchbot` objectconstswitchbot=newSwitchBot();// Load the node-switchbot and get a `Switchbot` constructor object// Start to monitor advertisement packetsswitchbot.startScan().then(()=>{// Set an event handlerswitchbot.onadvertisement=(ad)=>{console.log(JSON.stringify(ad,null," "));};// Wait 10 secondsreturnswitchbot.wait(10000);}).then(()=>{// Stop to monitorswitchbot.stopScan();process.exit();});}).catch(err=>{console.error('Error importing node-switchbot:',err);});
Expected Behavior
Have a bot with firmware version 6.6
Run some code from the Readme
Get a result like this one from the readme
(sample)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Analysis
I have recently ordered an switchbot bot and tired to use it using an IOBroker module, which uses this library.
However, it does not seem to be found at all.
After testing with just the library and some code from the readme, expecting it to be found there.
It seems that the issue comes from this library.
The main difference we have found is a different firmware version of the bot. Maybe it is a new revision as well.
So my guess would be that the new revision and/or firmware version is different enough to not be found by this library.
Code I used for testing:
Expected Behavior
(sample)
Steps To Reproduce
Logs
Configuration
n/a
Environment
Additional Context
Relevant issue (german): mrbungle64/ioBroker.switchbot-ble#431
The text was updated successfully, but these errors were encountered: