Comments (15)
@smartmatic, you are missing your openToken
. we still require that because it is used to find all devices you have on your SwitchBot Account, but allows you to set BLE connection. Then BLE connection will be used every time unless it fails then OpenAPI is used as a backup.
You do not need to install @abandonware/noble
from homebridge-switchbot.
@smartmatic, you are missing your
openToken
. we still require that because it is used to find all devices you have on your SwitchBot Account, but allows you to set BLE connection. Then BLE connection will be used every time unless it fails then OpenAPI is used as a backup.You do not need to install
@abandonware/noble
So the openToken is a pre-requisite and not optional? I guessed i can save to add the openToken.
If i remember it right i saw a video related to io-Broker and they completely waive on the openToken. But i understand the point with the fallback in case BLE is not available.
from homebridge-switchbot.
@smartmatic, I currently don't have a plan to waive the openToken since BLE doesn't always work.
from homebridge-switchbot.
Following on from this conversation - i current still run the Switchbot.BLE plugin you created some time ago without any issues. based on this, i returned my switchbot mini hub as i didnt require it any more (i have broadlink for RF and IR).
Are you saying (according to the release notes) that i need the mini hub again now or will BLE still function without the Hub ?
from homebridge-switchbot.
since I have a hub I haven't tested it without a hub and the openToken. If you can test that for me and give me the log outputs, I can look into this further.
from homebridge-switchbot.
since I have a hub I haven't tested it without a hub and the openToken. If you can test that for me and give me the log outputs, I can look into this further.
I have already done that. The outpot is in my first post. The log show a message "missing openToken". Thats all i have as nothing more was shown in the log.
Please guide me a bit how to test in order to provide you a good data basis.
from homebridge-switchbot.
I am saying input an openToken, and then give me the logs.
And enable debug logs: send output
Then enable device logs: send output
from homebridge-switchbot.
Since i turned on the debug mode homebridge crashes. Here is the log:
homebridge.log.txt
from homebridge-switchbot.
@ smartmatic, I have enabled BLE only support, can you try Beta:
You must set the Device ID, Device Name, Device Type, Check BLE.
Click here to find out how to install Beta
from homebridge-switchbot.
Latest Beta is now installed. Added a Bot and Color Bulb and get this message after enabling Device Log
[19.11.2021, 17:59:18] [SwitchBot] Initializing SwitchBot platform...
[19.11.2021, 17:59:18] [SwitchBot] Using Default Refresh Rate (2 minutes).
[19.11.2021, 17:59:18] [SwitchBot] Using Default Push Rate.
[19.11.2021, 17:59:18] [SwitchBot] Missing openToken
[19.11.2021, 17:59:18] [SwitchBot] Cloud Enabled SwitchBot Devices & IR Devices will not work
[19.11.2021, 17:59:18] [SwitchBot] Loading accessory from cache: Bot 01
[19.11.2021, 17:59:18] [SwitchBot] [DEVICE] Device: Bot 01 BLE Connection Enabled
[19.11.2021, 17:59:18] [SwitchBot] Restoring existing accessory from cache: Bot 01 DeviceID: D273C8A34EFF
[19.11.2021, 17:59:18] [SwitchBot] [DEVICE] Unable to Register new device: Bulb 01 Color Bulb - 84F70353DD5A
[19.11.2021, 17:59:18] [SwitchBot] [DEVICE] Bot: Bot 01 Config: (ble: true, mode: press, deviceType: switch)
[19.11.2021, 17:59:18] [SwitchBot] Bot: Bot 01 Displaying as Switch
[19.11.2021, 17:59:18] [SwitchBot] [DEVICE] Bot: Bot 01 BLE Address: d2:73:c8:a3:4e:ff
[19.11.2021, 17:59:18] [SwitchBot] [DEVICE] Bot: Bot 01 updateCharacteristic On: false
[19.11.2021, 17:59:18] [SwitchBot] [DEVICE] Bot: Bot 01 updateCharacteristic BatteryLevel: 100
[19.11.2021, 17:59:18] [SwitchBot] [DEVICE] Bot: Bot 01 updateCharacteristic StatusLowBattery: 0
from homebridge-switchbot.
I made an additional test and placed a Bot and a Meter close to the Raspberry in order to exclude any issues based on the distance. Here are some more logs.
[19.11.2021, 18:32:49] [SwitchBot] [DEVICE] Bot: Bot 01 serviceData: {"model":"H","modelName":"WoHand","mode":false,"state":false,"battery":93}
[19.11.2021, 18:32:49] [SwitchBot] [DEVICE] Bot: Bot 01, model: H, modelName: WoHand, mode: false, state: false, battery: 93
[19.11.2021, 18:32:50] [SwitchBot] [DEVICE] Bot: Bot 01 updateCharacteristic On: false
[19.11.2021, 18:32:50] [SwitchBot] [DEVICE] Bot: Bot 01 updateCharacteristic BatteryLevel: 93
[19.11.2021, 18:32:50] [SwitchBot] [DEVICE] Bot: Bot 01 updateCharacteristic StatusLowBattery: 0
[19.11.2021, 18:32:50] [SwitchBot] [DEVICE] Meter: Meter 01 updateCharacteristic StatusLowBattery: 0
[19.11.2021, 18:32:50] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Battery Level': characteristic value expected valid finite number and received "NaN" (number). See https://git.io/JtMGR for more info.
[19.11.2021, 18:32:50] [SwitchBot] [DEVICE] Meter: Meter 01 updateCharacteristic BatteryLevel: NaN
[19.11.2021, 18:32:50] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "NaN" (number). See https://git.io/JtMGR for more info.
[19.11.2021, 18:32:50] [SwitchBot] [DEVICE] Meter: Meter 01 updateCharacteristic CurrentRelativeHumidity: NaN
[19.11.2021, 18:32:50] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "NaN" (number). See https://git.io/JtMGR for more info.
[19.11.2021, 18:32:50] [SwitchBot] [DEVICE] Meter: Meter 01 updateCharacteristic CurrentTemperature: NaN
[19.11.2021, 18:32:50] [SwitchBot] [DEVICE] Bot: Bot 01 BLE Address: d2:73:c8:a3:4e:ff
[19.11.2021, 18:32:50] [SwitchBot] [DEVICE] Bot: Bot 01 Press Mode: press
[19.11.2021, 18:32:50] [SwitchBot] [DEVICE] Bot: Bot 01 BLE Address: d2:73:c8:a3:4e:ff
[19.11.2021, 18:32:50] [SwitchBot] [DEVICE] Bot: Bot 01 serviceData: {"model":"H","modelName":"WoHand","mode":false,"state":false,"battery":93}
[19.11.2021, 18:32:50] [SwitchBot] [DEVICE] Bot: Bot 01, model: H, modelName: WoHand, mode: false, state: false, battery: 93
[19.11.2021, 18:32:50] [SwitchBot] Bot: Bot 01, On: true
[19.11.2021, 18:32:50] [SwitchBot] Bot: Bot 01 failed pushChanges with BLE Connection
[19.11.2021, 18:32:50] [SwitchBot] Bot: Bot 01 failed pushChanges with BLE Connection, Error Message: "Now connecting. Wait for a few seconds then try again."
[19.11.2021, 18:32:52] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "NaN" (number). See https://git.io/JtMGR for more info.
[19.11.2021, 18:32:52] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "NaN" (number). See https://git.io/JtMGR for more info.
[19.11.2021, 18:33:00] [SwitchBot] [DEVICE] Bot: Bot 01 updateCharacteristic On: false
[19.11.2021, 18:33:00] [SwitchBot] [DEVICE] Bot: Bot 01 updateCharacteristic BatteryLevel: 93
[19.11.2021, 18:33:00] [SwitchBot] [DEVICE] Bot: Bot 01 updateCharacteristic StatusLowBattery: 0
[19.11.2021, 18:34:40] [SwitchBot] [DEVICE] Bot: Bot 01 BLE Address: d2:73:c8:a3:4e:ff
[19.11.2021, 18:34:40] [SwitchBot] [DEVICE] Meter: Meter 01 BLE Address: e1:d3:5c:4d:48:87
[19.11.2021, 18:34:50] [SwitchBot] [DEVICE] Bot: Bot 01 updateCharacteristic On: false
[19.11.2021, 18:34:50] [SwitchBot] [DEVICE] Bot: Bot 01 updateCharacteristic BatteryLevel: 93
[19.11.2021, 18:34:50] [SwitchBot] [DEVICE] Bot: Bot 01 updateCharacteristic StatusLowBattery: 0
[19.11.2021, 18:34:50] [SwitchBot] [DEVICE] Meter: Meter 01 updateCharacteristic StatusLowBattery: 0
[19.11.2021, 18:34:50] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Battery Level': characteristic value expected valid finite number and received "NaN" (number). See https://git.io/JtMGR for more info.
[19.11.2021, 18:34:50] [SwitchBot] [DEVICE] Meter: Meter 01 updateCharacteristic BatteryLevel: NaN
[19.11.2021, 18:34:50] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "NaN" (number). See https://git.io/JtMGR for more info.
[19.11.2021, 18:34:50] [SwitchBot] [DEVICE] Meter: Meter 01 updateCharacteristic CurrentRelativeHumidity: NaN
[19.11.2021, 18:34:50] [@switchbot/homebridge-switchbot] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "NaN" (number). See https://git.io/JtMGR for more info.
[19.11.2021, 18:34:50] [SwitchBot] [DEVICE] Meter: Meter 01 updateCharacteristic CurrentTemperature: NaN
from homebridge-switchbot.
Hi, i've added now a Bot, a Contact Sensor and a Color Bulb.
Here my log results. The Bulb is currently not visible in the device section.
from homebridge-switchbot.
Version 1.2.0 has been released with support to do BLE Only connection
from homebridge-switchbot.
Thank you! Big progress, i can control the Bot! The other i device i tested is the contact sensor. If i open the sensor the state is not updated.
from homebridge-switchbot.
@smartmatic I think there is an issue with contact sensors in the node-SwitchBot dependency. I will have to look. Would you open another issue. Specifically for that?
from homebridge-switchbot.
Related Issues (20)
- Support Request: Switchbot Curtain 3 doesn't show up HOT 3
- Feature Request: switchbot curtain 3 HOT 4
- Bug: Incorrect model type and running mode for Curtain 3 HOT 6
- Bug: unable to communicate with switchbot thermometer? HOT 1
- Support Request: Switchbot on Hoops has ceased working - Help appreciated. HOT 11
- Bot stops working after latest plugin update HOT 16
- Unable activate switchbot after update to 3.00 HOT 23
- Feature Request: Curtain3 Support HOT 3
- Support Request: Errors and Warning for Switchbot Curtain, not sure where to configure these values HOT 2
- Bug: Unknown statusCode: undefined - Re-opening HOT 2
- Feature Request: Specify a range of temperature settings for the air conditioner HOT 5
- Wiki updates HOT 1
- Bug: Missing all device with 3.1.1 HOT 6
- v3.1.2 leads to endless restart of child bridge. When restarting HomeBridge no plugins are loaded. HOT 4
- Bug: Cannot find package '@abandonware/noble' HOT 2
- Support Request: HOT 13
- Bug: Lock New Status Code Response HOT 4
- Feature Request: Smart Lock Pro HOT 7
- Mini Vacuum K10+ not working HOT 11
- Support Request: IR Devices not showing up HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-switchbot.