OpenWonderLabs / homebridge-switchbot

The Homebridge SwitchBot plugin allows you to access your SwitchBot Device(s) from HomeKit. Homebridge.
https://openwonderlabs.github.io/homebridge-switchbot/
ISC License
241 stars 51 forks source link

Bug: #995 not resolved, see details there #1000

Closed mtressl closed 1 week ago

mtressl commented 1 month ago

Describe the Bug

Bug: #995 not resolved, see details there

@donavanbecker: Is it necessary to remove cached devices?

To Reproduce

Bug: #995 not resolved, see details there

Expected Behavior

Bug: #995 not resolved, see details there

Relevant Log Output

[7/7/2024, 9:48:52 AM] [homebridge-switchbot] Restoring existing accessory from cache: Büro Synology deviceId: CF911xxx6559
[7/7/2024, 9:48:52 AM] [homebridge-switchbot] Bot: Büro Synology Removing any leftover Fan Service
[7/7/2024, 9:48:52 AM] [homebridge-switchbot] Bot: Büro Synology Removing any leftover Lock Service
[7/7/2024, 9:48:52 AM] [homebridge-switchbot] Bot: Büro Synology Removing any leftover Door Service
[7/7/2024, 9:48:52 AM] [homebridge-switchbot] Bot: Büro Synology Removing any leftover Faucet Service
[7/7/2024, 9:48:52 AM] [homebridge-switchbot] Bot: Büro Synology Removing any leftover Outlet Service
[7/7/2024, 9:48:52 AM] [homebridge-switchbot] Bot: Büro Synology Removing any leftover Window Service
[7/7/2024, 9:48:52 AM] [homebridge-switchbot] Bot: Büro Synology Removing any leftover Garage Door Service
[7/7/2024, 9:48:52 AM] [homebridge-switchbot] Bot: Büro Synology Removing any leftover Window Covering Service
[7/7/2024, 9:48:52 AM] [homebridge-switchbot] Bot: Büro Synology Removing any leftover Stateful Programmable Switch Service
[7/7/2024, 9:48:52 AM] [homebridge-switchbot] Restoring existing accessory from cache: Büro Vorhang deviceId: C985Exxx3C39
[7/7/2024, 9:48:52 AM] [homebridge-switchbot] Restoring existing accessory from cache: Schlafzimmer Vorhang deviceId: CAD91xxxBC05
[7/7/2024, 9:48:54 AM] [homebridge-switchbot] Curtain: Schlafzimmer Vorhang failed openAPIRefreshStatus with OpenAPI Connection, Error Message: "Cannot use 'in' operator to search for 'power' in undefined"
[7/7/2024, 9:48:54 AM] [homebridge-switchbot] Curtain: Büro Vorhang failed openAPIRefreshStatus with OpenAPI Connection, Error Message: "Cannot use 'in' operator to search for 'power' in undefined"

Config for homebridge-switchbot

Bug: #995 not resolved, see details there

Screenshots

No response

Device and Model

Bug: #995 not resolved, see details there

Node.js Version

Bug: #995 not resolved, see details there

NPM Version

Bug: #995 not resolved, see details there

Homebridge Version

Bug: #995 not resolved, see details there

Homebridge Switchbot Plugin Version

Bug: #995 not resolved, see details there

Homebridge Config UI X Plugin Version

No response

Operating System

Bug: #995 not resolved, see details there

donavanbecker commented 1 month ago

Can you try the latest beta:

npm version

Click here to find out how to install Beta

mtressl commented 1 month ago

hi @donavanbecker missed the beta.2, but tried beta.3 instead. Error still coming up after the restart, this is the log:

[7/13/2024, 11:53:42 AM] Registering platform '@switchbot/homebridge-switchbot.SwitchBot' [7/13/2024, 11:53:42 AM] [homebridge-switchbot] Loaded @switchbot/homebridge-switchbot **v3.6.1-beta.3** child bridge successfully [7/13/2024, 11:53:42 AM] Loaded 3 cached accessories from cachedAccessories.0E8E8xxx54EE. [7/13/2024, 11:53:42 AM] Homebridge v1.8.3 (HAP v0.12.2) (homebridge-switchbot) is running on port 43358. [7/13/2024, 11:53:43 AM] [homebridge-switchbot] Total SwitchBot Devices Found: 4 [7/13/2024, 11:53:43 AM] [homebridge-switchbot] Restoring existing accessory from cache: Büro Synology deviceId: CF9118456559 [7/13/2024, 11:53:43 AM] [homebridge-switchbot] Bot: Büro Synology Removing any leftover Fan Service [7/13/2024, 11:53:43 AM] [homebridge-switchbot] Bot: Büro Synology Removing any leftover Lock Service [7/13/2024, 11:53:43 AM] [homebridge-switchbot] Bot: Büro Synology Removing any leftover Door Service [7/13/2024, 11:53:43 AM] [homebridge-switchbot] Bot: Büro Synology Removing any leftover Faucet Service [7/13/2024, 11:53:43 AM] [homebridge-switchbot] Bot: Büro Synology Removing any leftover Outlet Service [7/13/2024, 11:53:43 AM] [homebridge-switchbot] Bot: Büro Synology Removing any leftover Window Service [7/13/2024, 11:53:43 AM] [homebridge-switchbot] Bot: Büro Synology Removing any leftover Garage Door Service [7/13/2024, 11:53:43 AM] [homebridge-switchbot] Bot: Büro Synology Removing any leftover Window Covering Service [7/13/2024, 11:53:43 AM] [homebridge-switchbot] Bot: Büro Synology Removing any leftover Stateful Programmable Switch Service [7/13/2024, 11:53:43 AM] [homebridge-switchbot] Restoring existing accessory from cache: Büro Vorhang deviceId: C985xxxB3C39 [7/13/2024, 11:53:43 AM] [homebridge-switchbot] Restoring existing accessory from cache: Schlafzimmer Vorhang deviceId: CAD9xxx5BC05 **[7/13/2024, 11:53:44 AM] [homebridge-switchbot] Curtain: Büro Vorhang failed openAPIRefreshStatus with OpenAPI Connection, Error Message: "Cannot use 'in' operator to search for 'power' in undefined" [7/13/2024, 11:53:44 AM] [homebridge-switchbot] Curtain: Schlafzimmer Vorhang failed openAPIRefreshStatus with OpenAPI Connection, Error Message: "Cannot use 'in' operator to search for 'power' in undefined"**

mtressl commented 1 month ago

v3.6.1-beta.15 introduced a new WARNING, and does not fix the problem in #995

[7/14/2024, 10:10:02 AM] [homebridge-switchbot] WARNING: The accessory 'Büro Vorhang' has an invalid 'configDeviceName' characteristic ('Büro Vorhang'). Please use only alphanumeric, space, and apostrophe characters. Ensure it starts and ends with an alphabetic or numeric character, and avoid emojis. This may prevent the accessory from being added in the Home App or cause unresponsiveness. [7/14/2024, 10:10:02 AM] [homebridge-switchbot] Removing invalid characters from 'configDeviceName' characteristic

mtressl commented 1 month ago

bump

Not resolved in latest v3.7.0

donavanbecker commented 1 month ago

Can you try the latest beta:

npm version

Click here to find out how to install Beta

github-actions[bot] commented 2 weeks ago

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.

github-actions[bot] commented 1 week ago

This issue has been closed as no further activity has occurred.