New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find accessory in dictionary #22
Comments
Hi @bosco90 , Try removing homebridge-tuya-platform from node_modules and npm install homebridge-tuya-platform |
Thanks for the answer, this actually removed the error but devices still no appearing, now only the purifier shows up but still no working. In the HomeBridge log the devices are listed, with properties and all but not inside HomeKit I've noticed this in the HomeBridge log, might be helpful: TuyaOpenAPI response: {"code":1106,"msg":"權限拒絕","success":false,"t":1622709430377} path = /v1.0/devices/6cb2c761afc1e455d3rakk/functions |
@bosco90 ,When starting the homebridge-tuya-platform plugin service for the first time, devices need to be added to HomeKit by scanning the code or entering the PIN code. Later additions and deletions of devices will be automatically mapped to HomeKit based on MQTT. |
My homebridge instance is already added in the Home App as I have other plugins for non tuta related devices, I've tried to add it again as a child bridge and just a light was added |
@bosco90 , We have received your question, it seems that the Accessory corresponding to the Tuya device was not added to the final platformAccessories. Could you please provide the log of the Accessory object in the final platformAccessories array so that we can locate the specific issue |
I guess the HomeBridge 'cachedAccessories' file caches previously created tuya devices, causing the homebridge-tuya-platform plugin to get the device not be created. You can go to the ' 'Accessories' and' Persist 'directories and delete the files in them, then try to restart HomeBridge |
Just tried this cache thing, nothing changed. LightAccessory statusArr. [ |
Does the plugin show any errors when it starts? |
Nope |
@bosco90 , I tried to uninstall the homebridge-tuya-platform in the HomeBridge UI, then reinstall, start the subbridge service, and scan the code to make a match. Everything worked, Please try it again. If that still doesn't work, we support dynamic logging in V1.1.4. See "Adding:..." "Register Platform Accessory...", if printed description of the device Accessory instance that has been created. The worst way to find it is in the. HomeBridge directory, delete the files under the 'Accessories' and 'Persist' folders, remove the family on HomeKit, Restarting the HomeBridge and Subbridge services and retrying the configuration. |
I am having a similar problem. I have 7 active devices. 2 are not yet supported (no problem). The other 5 are supported, and the API response in logs shows success, but only 2 devices get added. They are all lightbulbs that support the same functions (Power, Brightness, Temperature). I've tried everything you have said here, but get the same behavior each time. |
Hi @bosco90 @rcoletti116 , sorry for the bad experience. |
Hi @bosco90 @rcoletti116, Thanks again for your feedback. |
Hi @Hanh94, sorry for the late follow up. Thanks a lot for the help so far! |
Hello,
I get the error "Could not find accessory in dictionary" for every of my 10 accessories, and the only two that shows up in HomeKit are the Bimar Air Purifier (that still doesn't work, it keep spinning) and a light that is very slow to respond.
The other accessories are 4 lights, 3 outlet and an oil diffuser.
How can I solve this?
Thanks a lot!
The text was updated successfully, but these errors were encountered: