vieira/homebridge-yeelight-wifi

Device not found

sjj1991 opened this issue · 1 comments

I have LAN Control enabled, and the light was working with Yeelighter plugin. Decided to give homebridge-yeelight-wifi a try because of issues with the moonlight mode in Yeellighter plugin.

I have tried restarting both the light and Homebridge. The light is connected to the network as I'm able to control it using the Yeelight app. The accessory ID listed below is the light I'm trying to control here 0x0000000007675276

Here are the logs:

[13/05/2021, 11:06:10 pm] [HB Supervisor] Restarting Homebridge...
[13/05/2021, 11:06:10 pm] [HB Supervisor] Starting Homebridge with extra flags: -I
[13/05/2021, 11:06:10 pm] [HB Supervisor] Started Homebridge v1.3.4 with PID: 6988
Initializing HAP-NodeJS v0.9.4...
[13/05/2021, 11:06:12 pm] Loaded config.json with 0 accessories and 2 platforms.
[13/05/2021, 11:06:12 pm] Loaded 1 cached accessories from cachedAccessories.
[13/05/2021, 11:06:12 pm] ---
[13/05/2021, 11:06:12 pm] Loaded plugin: homebridge-config-ui-x@4.41.1
[13/05/2021, 11:06:12 pm] Registering platform 'homebridge-config-ui-x.config'
[13/05/2021, 11:06:12 pm] ---
[13/05/2021, 11:06:13 pm] Loaded plugin: homebridge-yeelight-wifi@2.3.3
[13/05/2021, 11:06:13 pm] Registering platform 'homebridge-yeelight-wifi.yeelight'
[13/05/2021, 11:06:13 pm] ---
[13/05/2021, 11:06:13 pm] Loading 2 platforms...
[13/05/2021, 11:06:13 pm] [Config] Initializing config platform...
[13/05/2021, 11:06:13 pm] [Config] Running in Service Mode
[13/05/2021, 11:06:13 pm] [yeelight] Initializing yeelight platform...
[13/05/2021, 11:06:13 pm] Failed to find plugin to handle accessory 0x0000000007675276
[13/05/2021, 11:06:13 pm] Removing orphaned accessory 0x0000000007675276
[13/05/2021, 11:06:13 pm] [yeelight] Searching for known devices...
[13/05/2021, 11:06:13 pm] [yeelight] Sending search request...
Preparing Advertiser for 'Homebridge 5C55 9580' using bonjour-hap backend!
Setup Payload:
X-HM://0024LBERGYJXH
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:                 
Starting to advertise 'Homebridge 5C55 9580' using bonjour-hap backend!
[13/05/2021, 11:06:13 pm] Homebridge v1.3.4 (Homebridge 5C55) is running on port 51641.
[13/05/2021, 11:06:28 pm] [yeelight] All known devices found. Stopping proactive search.

Given that you can confirm that 0x0000000007675276 is the bulb having the issue and looking ad the logs I would say that the accessory id got cached in homebridge by the old plugin (see folders accessories/ and persist) and is causing the new plugin not to see it.

You might be able to carefully remove all references of the ID from accessories/cachedAccessories and persist/{AccessoryInfo.*.json, IdentifierCache.*.json} but to be honest when I have this kind of problems I end up removing all of these files and starting over.