cellcortex / homebridge-yeelighter

Homebridge plugin for Yeelights - special focus on supporting features of ceiling lights
MIT License
98 stars 19 forks source link

Yeelights take long to update in homekit #110

Closed AlexKusnezov closed 2 years ago

AlexKusnezov commented 2 years ago

When I control yeelight with other apps, outside of homekit, e.g. Yeelight App or Google Home, they take a very long time to update in homekit, approx. 30sec. Can we do something about it?

cellcortex commented 2 years ago

There's an 'interval' setting in the configuration that you can use to set the interval that these are refreshed. By default it happens every minute. You can reduce it - which will obviously increase network and CPU load. 5 seconds (set to 5000) should be okay.

AlexKusnezov commented 2 years ago

@cellcortex I changes it to 5 sec and still it takes longer:

[4/22/2022, 12:19:42 PM] [Yeelighter] [0x000000000e9f8375] getHue: {"power":false,"color_mode":2,"bright":100,"hue":182,"sat":100,"ct":3759,"bg_power":false,"bg_bright":0,"bg_hue":0,"bg_sat":0,"bg_ct":0,"bg_lmode":0,"nl_br":0,"active_mode":0,"name":""} []
[4/22/2022, 12:20:09 PM] [Yeelighter] [0x000000000e9f8375] getHue: {"power":true,"color_mode":2,"bright":100,"hue":182,"sat":100,"ct":3759,"bg_power":false,"bg_bright":0,"bg_hue":0,"bg_sat":0,"bg_ct":0,"bg_lmode":0,"nl_br":0,"active_mode":0,"name":""} []

27sec Here are the settings(yes, I restarted):

Screen Shot 2022-04-22 at 12 20 28

also this button leads to a blankpage:

Screen Shot 2022-04-22 at 12 22 33
AlexKusnezov commented 2 years ago

@cellcortex hey, I saw you pushed a new update. Just wanted top say that this fixed the issue, lights are now update very quickly, however I got this strange log (with red color):


[4/22/2022, 4:51:12 PM] [Yeelighter] adding 1 manual accessories
[4/22/2022, 4:51:12 PM] [Yeelighter] Discovered Device with corrupt DeviceInfo {
  location: 'yeelight://undefined',
  id: undefined,
  model: undefined,
  support: undefined,
  power: false,
  bright: 0,
  color_mode: -1,
  ct: 0,
  rgb: 'string',
  hue: 0,
  sat: 0,
  host: 'string',
  port: 0,
  debug: false,
  trackedAttributes: [],
  fw_ver: '0,0.0',
  name: 'string'
}```
cellcortex commented 2 years ago

Hi,

I get the same thing if I configure a ‚manual‘ light in the config. You can ignore this error (unless there is a light that you are missing from Homekit).

Cheers

Thomas

Am 22.04.2022 um 16:55 schrieb AlexKusnezov @.***>:

@cellcortex https://github.com/cellcortex hey, I saw you pushed a new update. Just wanted top say that this fixed the issue, lights are now update very quickly, however I got this strange log (with red color):

[4/22/2022, 4:51:12 PM] [Yeelighter] adding 1 manual accessories [4/22/2022, 4:51:12 PM] [Yeelighter] Discovered Device with corrupt DeviceInfo { location: 'yeelight://undefined', id: undefined, model: undefined, support: undefined, power: false, bright: 0, color_mode: -1, ct: 0, rgb: 'string', hue: 0, sat: 0, host: 'string', port: 0, debug: false, trackedAttributes: [], fw_ver: '0,0.0', name: 'string' }``` — Reply to this email directly, view it on GitHub https://github.com/cellcortex/homebridge-yeelighter/issues/110#issuecomment-1106597118, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGD3FYYV7GBEC55YBLOLF3VGK4XXANCNFSM5UBPKVNQ. You are receiving this because you were mentioned.