vieira / homebridge-yeelight-wifi

Homebridge plugin for Yeelight white and colored bulbs.
MIT License
131 stars 28 forks source link

a lot of errors in log #99

Closed galoiring closed 1 year ago

galoiring commented 3 years ago

this is my log ,with nonstop errors (but everything work perfect..) what can I do ? thanks

צילום מסך 2021-05-24 ב-21 29 20
vieira commented 3 years ago

Hello @galoiring,

That seems to indicate that the connection between your yeelight and router is kind of weak. The plugin retries and eventually is able to send the commands but you might experience some delays here and there.

These are not errors, just warnings.

galoiring commented 3 years ago

I didn’t experience delay at all. Respond are really fast. and witless connection to router is full reception

galoiring commented 3 years ago

there Is a way to hide it ? the lamp are functioning perfect so it just a false errors

Mks322 commented 3 years ago

Same for me, getting the same in log, but all lights function fast with no issues

reyo commented 3 years ago

Same same. Very good wifi coverage, speed and latency but getting these errors.

cillitbanq commented 3 years ago

Is there a solution?

SteveAuhc16 commented 3 years ago

Same as well, I encounter those errors in my logs too. Anyway to hide or remove them?

fnowacki commented 3 years ago

Just increase the connection.timeout from 100ms to i.e. 250 or 500. It works for me :)

SteveAuhc16 commented 3 years ago

Just increase the connection.timeout from 100ms to i.e. 250 or 500. It works for me :)

Are there any sample code which you can provide, so we know where or how to input this line. Thanks!

fnowacki commented 3 years ago

@SteveAuhc16 sure, example of my yeelight platform:

    {
      "platform": "yeelight",
      "name": "Yeelight",
      "connection": {
        "retries": 5,
        "timeout": 500
      }
    }
galoiring commented 1 year ago

@SteveAuhc16 sure, example of my yeelight platform:

    {
      "platform": "yeelight",
      "name": "Yeelight",
      "connection": {
        "retries": 5,
        "timeout": 500
      }
    }

moved to a new house and reinstall everything from scratches. im getting this in the log (one per minute). this is after adding the retries in the json file.

``[25/03/2023, 14:13:20] [yeelight] Sending command: {"method":"set_ct_abx","params":[5524.861878453039,"smooth",400]}

[25/03/2023, 14:13:20] [yeelight] Sending command: {"method":"set_ct_abx","params":[3184.7133757961783,"smooth",400]}

[25/03/2023, 14:14:20] [yeelight] Sending command: {"method":"set_ct_abx","params":[5524.861878453039,"smooth",400]}

[25/03/2023, 14:14:20] [yeelight] Sending command: {"method":"set_ct_abx","params":[3184.7133757961783,"smooth",400]}

[25/03/2023, 14:15:20] [yeelight] Sending command: {"method":"set_ct_abx","params":[5524.861878453039,"smooth",400]}

[25/03/2023, 14:15:20] [yeelight] Sending command: {"method":"set_ct_abx","params":[3184.7133757961783,"smooth",400]}

[25/03/2023, 14:16:20] [yeelight] Sending command: {"method":"set_ct_abx","params":[5524.861878453039,"smooth",400]}

[25/03/2023, 14:16:20] [yeelight] Sending command: {"method":"set_ct_abx","params":[3184.7133757961783,"smooth",400]}

[25/03/2023, 14:17:20] [yeelight] Sending command: {"method":"set_ct_abx","params":[5524.861878453039,"smooth",400]}

[25/03/2023, 14:17:20] [yeelight] Sending command: {"method":"set_ct_abx","params":[3184.7133757961783,"smooth",400]}

[25/03/2023, 14:18:20] [yeelight] Sending command: {"method":"set_ct_abx","params":[5524.861878453039,"smooth",400]}

[25/03/2023, 14:18:20] [yeelight] Sending command: {"method":"set_ct_abx","params":[3184.7133757961783,"smooth",400]}

[25/03/2023, 14:19:20] [yeelight] Sending command: {"method":"set_ct_abx","params":[5524.861878453039,"smooth",400]}

[25/03/2023, 14:19:20] [yeelight] Sending command: {"method":"set_ct_abx","params":[3184.7133757961783,"smooth",400]}

[25/03/2023, 14:20:20] [yeelight] Sending command: {"method":"set_ct_abx","params":[5524.861878453039,"smooth",400]}

[25/03/2023, 14:20:20] [yeelight] Sending command: {"method":"set_ct_abx","params":[3184.7133757961783,"smooth",400]} ``

galoiring commented 1 year ago
Screenshot 2023-03-26 at 14 39 22
galoiring commented 1 year ago

I try to investigate the code , at the 'set_ct_abx' function (inside 'setTemperature') but I was unable to understand the frequent temperature changes. @vieira @fnowacki hope for your reply

galoiring commented 1 year ago
          I noticed that adaptive lighting sets color temperature every minute, so it might be better to change sendCmd logging to debug

Originally posted by @Cyberbeni in https://github.com/vieira/homebridge-yeelight-wifi/issues/111#issuecomment-1110179891

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 2.4.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: