kovalev-sergey / homebridge-sony-audio

HomeKit integration for Sony Audio products
Apache License 2.0
15 stars 1 forks source link

Can't Re-add the accessory after I deleted from my Home #8

Open carlosgamezvillegas opened 3 years ago

carlosgamezvillegas commented 3 years ago

Describe The Bug:

I installed the plugin successfully but I had some issues with hombridge so I decided to uninstall it. When I tried to add it again to my home, it does not appear in the list of devices available to add To Reproduce:

Remove accessory from Home and try to add it again Expected behavior:

I want to be able to remove the accessory and install it again Logs:

Show the Homebridge logs here, remove any sensitive information.

Plugin Config: { "name": "Sony", "platform": "SonyAudio" }

Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment: Raspberry Pi

NPM v7.0.15

ctrlcmdshft commented 3 years ago

Same issue cant re-add it after deleting.

Ive changed the homebridge pin to see if that helps but doesn't help.

kovalev-sergey commented 3 years ago

Hi, Try to Remove Single Cached Accessory or Remove All Cached Accessories in the Settings of the Homebridge UI or delete file ~/.homebridge/accessories/cachedAccessories and restart the homebridge

kylewhirl commented 2 years ago

I’ve had the same issue. It is not available to remove from the cached accessories list and when I try to remove the bridge it just comes back on the next restart

here is the log: UnhandledPromiseRejectionWarning: Error: This callback function has already been called by someone else; it can only be called one time. at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/once.ts:6:13 at /usr/local/lib/node_modules/homebridge-sony-audio/src/sonyAudioAccessory.ts:434:21 at processTicksAndRejections (internal/process/task_queues.js:95:5) (node:29682) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 13) (node:29682)

kneemaa commented 2 years ago

I ran into this (was running as a child-bridge) but was able to resolve it with the following steps:

  1. uninstalling the plugin from homebridge
  2. remove the bridge from homekit ( home icon > home settings > home hubs & bridges > name of bridge > delete )
  3. restarting homebridge then re-installing the plugin (but not as a child-bridge)