Open joshua1000 opened 4 years ago
Same, wondering if this is normal.. i dont remember seeing this before.
@vieira hope you can shed some yeelight.
@joshua1000 @gilshahar7 Hello, this should only happen until all known lights are found. If you have any of them powered down it continues to search until the bulb gets power and is reconnected.
From my testing, without this "active" search, it would take some time for a bulb to be available (broadcast itself) if it was turned off (either by accident or intentionally) and then turned on.
Strange. I've moved the two color E27s behind the TV (not as nice as LED strips but works, will upgrade at some point) and the strip is behind my desk shining up the wall (if that makes sense). None of these are ever turned off. I'm not sure what it's searching for... Any ideas what to look for?
6/23/2020, 11:56:17 PM [Yeelight] Received advertisement from 5533d 7.6/23/2020, 11:56:20 PM [Yeelight] Received advertisement from 5533d 7.6/23/2020, 11:56:23 PM [Yeelight] Received advertisement from 5533d 7.6/24/2020, 12:01:26 AM [Yeelight] Received advertisement from 9c2525. 6/24/2020, 12:01:32 AM [Yeelight] Received advertisement from 9c2525. 6/24/2020, 12:01:38 AM [Yeelight] Received advertisement from 9c2525. 6/24/2020, 12:40:20 AM [Yeelight] Received advertisement from 9c2621. 6/24/2020, 12:40:26 AM [Yeelight] Received advertisement from 9c2621. 6/24/2020, 12:40:32 AM [Yeelight] Received advertisement from 9c2621. 6/24/2020, 12:56:18 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 12:56:21 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 12:56:24 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 1:56:18 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 1:56:21 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 1:56:24 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 2:01:29 AM [Yeelight] Received advertisement from 9c2525. 6/24/2020, 2:01:35 AM [Yeelight] Received advertisement from 9c2525. 6/24/2020, 2:01:41 AM [Yeelight] Received advertisement from 9c2525. 6/24/2020, 2:40:24 AM [Yeelight] Received advertisement from 9c2621. 6/24/2020, 2:40:30 AM [Yeelight] Received advertisement from 9c2621. 6/24/2020, 2:40:36 AM [Yeelight] Received advertisement from 9c2621. 6/24/2020, 2:56:19 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 2:56:22 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 2:56:25 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 3:56:20 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 3:56:23 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 3:56:26 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 4:01:29 AM [Yeelight] Received advertisement from 9c2525. 6/24/2020, 4:01:35 AM [Yeelight] Received advertisement from 9c2525. 6/24/2020, 4:01:41 AM [Yeelight] Received advertisement from 9c2525. 6/24/2020, 4:40:24 AM [Yeelight] Received advertisement from 9c2621. 6/24/2020, 4:40:30 AM [Yeelight] Received advertisement from 9c2621. 6/24/2020, 4:40:36 AM [Yeelight] Received advertisement from 9c2621. 6/24/2020, 4:56:20 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 4:56:23 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 4:56:26 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 5:56:20 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 5:56:23 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 5:56:26 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 6:01:29 AM [Yeelight] Received advertisement from 9c2525. 6/24/2020, 6:01:35 AM [Yeelight] Received advertisement from 9c2525. 6/24/2020, 6:01:41 AM [Yeelight] Received advertisement from 9c2525. 6/24/2020, 6:40:24 AM [Yeelight] Received advertisement from 9c2621. 6/24/2020, 6:40:30 AM [Yeelight] Received advertisement from 9c2621. 6/24/2020, 6:40:36 AM [Yeelight] Received advertisement from 9c2621. 6/24/2020, 6:56:20 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 6:56:23 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 6:56:26 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 7:56:21 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 7:56:24 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 7:56:27 AM [Yeelight] Received advertisement from 5533d7. 6/24/2020, 8:01:28 AM [Yeelight] Received advertisement from 9c2525. 6/24/2020, 8:01:34 AM [Yeelight] Received advertisement from 9c2525. 6/24/2020, 8:01:40 AM [Yeelight] Received advertisement from 9c2525.
Right now the issue appears to be solved, HOOBS is not looking for the lights anymore. Instead, the light appear to be announcing themselves... See enclosed log from last night. I really don't know what to make of this. Maybe I should just get rid of these and replace them with newer, HomeKit compatible models or abandon Xiaomi altogether...
Hello @joshua1000, that's normal, the bulbs periodically broadcast their status. What's your concern?
Hi, thanks for answering. It just seems strange to have the log spammed with light announcing themselves... What has started to happen recently is that the homebridge service within hoobs randomly stops. I haven't figured out why yet. I have three plugins, yours, LGTV WebOS and Daikin BRP WiFi controller plugins and have started running with only the LGTV plugin, which appears to have helped but I need more time to be sure. This would mean that it's either the lights or the A/C unit (or their respective plugins) that are causing outages. I though the constant announcements could be flooding the service (just an uneducated guess). I've also noticed a much faster response from HOOBS, having uninstalled the Yeelight and LGTV plugins. So, as this may or may not have anything to do with your plugin, I will keep testing and get back to you if I find anything... Thanks for now!
@vieira I have been having similar issues in HOOBS recently, and the only plugin I use is yours. My HOOBS crashes after a few hours, possibly due to the broadcasting of devices.
The search feature stops if all known devices are found and connected; otherwise, you will send a broadcast message every 15 seconds.
The thing is, I have a few lights between an intelligent switch that cuts the power, and for those lights, I only use your plugin for the adaptive lighting feature.
Would you be open to a pull request where I make the polling time a configurable value so that I can set it to every 5 minutes, for example, and optionally turn off the logging for the search feature?
I understand that devices can take a while to start working, but that is acceptable for my use case.
//Edit, with error from the console Error: EROFS: read-only file system, open '/var/lib/homebridge/homebridge.log' | stdout
I did some research today, and I noticed my HOOBS crashes with the read-only error when it reaches 1MB in file size.
I could work around it by removing the log file after starting HOOBS. It doesn't recreate it and stop logging anything, but it doesn't crash anymore.
@renelux you should probably use logrotate or something equivalent to rotate those old logs before they reach the threshold.
I can change some the things the plugin logs to debug level to reduce the noise a bit but without rotating the logs it will eventually reach 1mb and crash.
@renelux you should probably use logrotate or something equivalent to rotate those old logs before they reach the threshold.
I can change some the things the plugin logs to debug level to reduce the noise a bit but without rotating the logs it will eventually reach 1mb and crash.
isn't it possible to add boolean option for debugging mode or something like this ? (default disabled) will help maintain cleaner logs ..
Hi, My smart home actually started with Yeelight lights, and I was disappointed that HomeKit wasn't supported out-of-the-box. Enter HOOBS and and your plugin :) I do have a question though, I am getting a "Sending search request" message in the log every 15s. I've tried looking through the readme for a FAQ, but couldn't find any. Is it normal that this appears every 15s? Thanks!