GithubHelp home page GithubHelp logo

Comments (22)

donavanbecker avatar donavanbecker commented on June 16, 2024 1

@yjeanrenaud perfect! I have release v1.0.1

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 16, 2024

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.

BigKrisch avatar BigKrisch commented on June 16, 2024

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.

yjeanrenaud avatar yjeanrenaud commented on June 16, 2024

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.

donavanbecker avatar donavanbecker commented on June 16, 2024

@yjeanrenaud @nyjklein @adamrzanek, can you try Beta:

npm version

Click here to find out how to install Beta

from homebridge-switchbot.

adamrzanek avatar adamrzanek commented on June 16, 2024

@donavanbecker nope still nothing

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 16, 2024

@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.

adamrzanek avatar adamrzanek commented on June 16, 2024

from homebridge-switchbot.

adamrzanek avatar adamrzanek commented on June 16, 2024

9455FAD9-720B-44D5-B02E-C1CCDE3529F1

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 16, 2024

@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.

adamrzanek avatar adamrzanek commented on June 16, 2024

from homebridge-switchbot.

nyjklein avatar nyjklein commented on June 16, 2024

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.

adamrzanek avatar adamrzanek commented on June 16, 2024

@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
E3003F9B-F318-4012-ABE9-1FD5C0BD3EB6

from homebridge-switchbot.

ex725 avatar ex725 commented on June 16, 2024

how do i use bot without hub
as in this plugin

https://github.com/ewebdev/homebridge-switchbot-ble#readme

from homebridge-switchbot.

sshinnawy avatar sshinnawy commented on June 16, 2024

I am having the same issue. Did anyone find a fix?

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 16, 2024

I am having the same issue. Did anyone find a fix?

@sshinnawy, Which issue are you referring too?

from homebridge-switchbot.

yjeanrenaud avatar yjeanrenaud commented on June 16, 2024

@yjeanrenaud @nyjklein @adamrzanek, can you try Beta:

npm version

Click here to find out how to install 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.

yjeanrenaud avatar yjeanrenaud commented on June 16, 2024

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.

yjeanrenaud avatar yjeanrenaud commented on June 16, 2024

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.

donavanbecker avatar donavanbecker commented on June 16, 2024

how do i use bot without hub as in this plugin

ewebdev/homebridge-switchbot-ble#readme

Enable BLE for the device you want to use BLE on.

from homebridge-switchbot.

ex725 avatar ex725 commented on June 16, 2024

how do i use bot without hub as in this plugin
ewebdev/homebridge-switchbot-ble#readme

Enable BLE for the device you want to use BLE on.

i did that but it didn't work

from homebridge-switchbot.

donavanbecker avatar donavanbecker commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.