Comments (22)
@yjeanrenaud perfect! I have release v1.0.1
from homebridge-switchbot.
You have "hide_device": true,
if you want it to be displayed I. HomeKit you will need to uncheck or make that false.
from homebridge-switchbot.
I get the same error message with the bots even though hide_device is set to false.
However, the error only occurs with the bots. The curtains work perfectly.
{
"deviceId": "DA4CD7E58099",
"hide_device": false,
"deviceType": "Bot",
"ble": false,
"bot": {
"mode": "switch",
"switch": true
}
},
{
"deviceId": "F2A3DD9D8018",
"hide_device": false,
"deviceType": "Bot",
"ble": false,
"bot": {
"mode": "switch",
"switch": true
}
},
{
"deviceId": "DDBEE08B89AB",
"hide_device": false,
"deviceType": "Curtain",
"ble": false,
"curtain": {
"disable_group": false,
"refreshRate": 5,
"set_minStep": 1,
"set_min": 0,
"set_max": 100
}
},
{
"deviceId": "D8577A7DF1FC",
"hide_device": false,
"deviceType": "Curtain",
"ble": false,
"curtain": {
"disable_group": false,
"refreshRate": 5,
"set_minStep": 1,
"set_min": 0,
"set_max": 100
}
}
[13.11.2021, 22:27:55] [SwitchBot] Child bridge process ended
[13.11.2021, 22:27:55] [SwitchBot] Process Ended. Code: 1, Signal: null
[13.11.2021, 22:28:02] [SwitchBot] Restarting Process...
[13.11.2021, 22:28:03] [SwitchBot] Launched child bridge with PID 29379
[13.11.2021, 22:28:04] Registering platform '@switchbot/homebridge-switchbot.SwitchBot'
[13.11.2021, 22:28:04] [SwitchBot] Loaded @switchbot/homebridge-switchbot v1.0.0 child bridge successfully
[13.11.2021, 22:28:04] Loaded 4 cached accessories from cachedAccessories.0EA117226B20.
[13.11.2021, 22:28:04] [SwitchBot] Loading accessory from cache: Schlafzimmer Vorhang Rechts
[13.11.2021, 22:28:04] [SwitchBot] Loading accessory from cache: Schlafzimmer Vorhang Links
[13.11.2021, 22:28:04] [SwitchBot] Loading accessory from cache: Arbeitszimmer Drucker
[13.11.2021, 22:28:04] [SwitchBot] Loading accessory from cache: iMac
[13.11.2021, 22:28:04] Homebridge v1.3.6 (HAP v0.9.7) (Homebridge-Switchbot) is running on port 54547.
[13.11.2021, 22:28:05] [SwitchBot] Total SwitchBot Devices Found: 5
[13.11.2021, 22:28:05] [SwitchBot] Restoring existing accessory from cache: Schlafzimmer Vorhang Rechts DeviceID: D8577A7DF1FC
[13.11.2021, 22:28:05] [SwitchBot] Restoring existing accessory from cache: Arbeitszimmer Drucker DeviceID: DA4CD7E58099
[13.11.2021, 22:28:05] [SwitchBot] Restoring existing accessory from cache: Schlafzimmer Vorhang Links DeviceID: DDBEE08B89AB
[13.11.2021, 22:28:05] [SwitchBot] Restoring existing accessory from cache: iMac DeviceID: F2A3DD9D8018
[13.11.2021, 22:28:05] [SwitchBot] Total IR Devices Found: 0
[13.11.2021, 22:28:05] [SwitchBot] Bot Arbeitszimmer Drucker failed to refresh status, Error Message: "Cannot read properties of undefined (reading 'updateCharacteristic')"
[13.11.2021, 22:28:05] [SwitchBot] Bot iMac failed to refresh status, Error Message: "Cannot read properties of undefined (reading 'updateCharacteristic')"
/usr/local/lib/node_modules/@switchbot/homebridge-switchbot/src/devices/bots.ts:356
this.service.updateCharacteristic(this.platform.Characteristic.On, e);
^
TypeError: Cannot read properties of undefined (reading 'updateCharacteristic')
at Bot.apiError (/usr/local/lib/node_modules/@switchbot/homebridge-switchbot/src/devices/bots.ts:356:18)
at Bot.openAPIRefreshStatus (/usr/local/lib/node_modules/@switchbot/homebridge-switchbot/src/devices/bots.ts:233:12)
at Bot.refreshStatus (/usr/local/lib/node_modules/@switchbot/homebridge-switchbot/src/devices/bots.ts:168:18)
at new Bot (/usr/local/lib/node_modules/@switchbot/homebridge-switchbot/src/devices/bots.ts:52:10)
at SwitchBotPlatform.createBot (/usr/local/lib/node_modules/@switchbot/homebridge-switchbot/src/platform.ts:440:9)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
[13.11.2021, 22:28:05] [SwitchBot] Child bridge process ended
from homebridge-switchbot.
You have
"hide_device": true,
if you want it to be displayed I. HomeKit you will need to uncheck or make that false.
yes because otherwise hb crashes.
from homebridge-switchbot.
@yjeanrenaud @nyjklein @adamrzanek, can you try Beta:
Click here to find out how to install Beta
from homebridge-switchbot.
@donavanbecker nope still nothing
from homebridge-switchbot.
@adamrzanek you have beta2 or higher installed? because bots are working for me both bluetooth and openapi. do you have more logs?
from homebridge-switchbot.
from homebridge-switchbot.
from homebridge-switchbot.
@adamrzanek from the logs it looks like there are no devices in your SwitchBot account (opentoken), also have you enabled Cloud Service?
from homebridge-switchbot.
from homebridge-switchbot.
With Beta 3 I have things working again. I'm not sure if it was purely beta 3 or the changes I made to my config adding this:
"devices": [
{
"deviceId": "xxxxxxxxxxxx",
"hide_device": false,
"deviceType": "Bot",
"ble": false,
"bot": {
"mode": "switch",
"switch": true,
"deviceType": "outlet"
}
}
from homebridge-switchbot.
@donavanbecker I didn’t know that I had to add the bot to my “switchbot home”. But I can’t enable cloud service because I don’t have hub
from homebridge-switchbot.
how do i use bot without hub
as in this plugin
https://github.com/ewebdev/homebridge-switchbot-ble#readme
from homebridge-switchbot.
I am having the same issue. Did anyone find a fix?
from homebridge-switchbot.
I am having the same issue. Did anyone find a fix?
@sshinnawy, Which issue are you referring too?
from homebridge-switchbot.
@yjeanrenaud @nyjklein @adamrzanek, can you try Beta:
beta 3 does not crash my hb, but I get
[14/11/2021, 23:26:32] [SwitchBot] Failed to Discover Devices. "Request failed with status code 401"
even though the token is correct.
from homebridge-switchbot.
never mind. for some reason, the hub mini was removed from my profile in the Switchhub app and therefore no cloud connection was available anymore. weird
from homebridge-switchbot.
so to make this clear: the auth issue was not related to beta 3. beta 3 indeed solves the issue with the Bot crashing all the homebridge
from homebridge-switchbot.
how do i use bot without hub as in this plugin
Enable BLE for the device you want to use BLE on.
from homebridge-switchbot.
how do i use bot without hub as in this plugin
ewebdev/homebridge-switchbot-ble#readmeEnable BLE for the device you want to use BLE on.
i did that but it didn't work
from homebridge-switchbot.
i did that but it didn't work
You will have to open up an issue so I can get more info of your setup.
from homebridge-switchbot.
Related Issues (20)
- 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
- Support Request: HOT 3
- Bug: OpenAPI Unauthorized using valid keys HOT 4
- Support Request: Refresh rate HOT 2
- Support Request: Indoor/Outdoor sensors not showing in HomeKit HOT 4
- Bug: Ceiling Light does not respect changes outside of Homebridge/Homekit HOT 2
- Bug: Meter: Chambre Internal Server Error, An unexpected error on the SmartThings servers has occurred. These errors should be rare, statusCode: 500 HOT 15
- Bug: Homekit open/close/percentage open requests appear to do nothing or have the blinds proceed to incorrect open angles. HOT 2
- Bug:Blind Tilt: Right window Internal Server Error HOT 5
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.