Code Monkey home page Code Monkey logo

Comments (11)

Djelibeybi avatar Djelibeybi commented on June 23, 2024

What kind of bulbs do you have?

from ha-lifx-beta.

mekenthompson avatar mekenthompson commented on June 23, 2024

from ha-lifx-beta.

Djelibeybi avatar Djelibeybi commented on June 23, 2024

Can you bump the message reply timeout to 1 second? You can edit this by hitting the Configure button in the UI. I can't reproduce the issue (and I have almost the identical setup, with a similar network config and collection of bulbs).

from ha-lifx-beta.

mekenthompson avatar mekenthompson commented on June 23, 2024

Updated, now getting more errors at restart...

Log Details (ERROR)
This error originated from a custom integration.
Logger: custom_components.lifx
Source: custom_components/lifx/light.py:440
Integration: LIFX (documentation, issues)
First occurred: 21:59:42 (32 occurrences)
Last logged: 21:59:45

(Discovery) action=restart, ip_addr=192.168.2.107.
(Discovery) action=restart, ip_addr=192.168.2.122.
(Discovery) action=restart, ip_addr=192.168.2.104.
(Discovery) action=restart, ip_addr=192.168.2.131.
(Discovery) action=restart, ip_addr=192.168.2.38.

Here's some around activity around 192.168.2.107 which had some issues:

022-01-13 21:59:39 DEBUG (MainThread) [custom_components.lifx] (Discovery) action=received_response, serial=d073d52ecc20, ip_addr=192.168.2.107
2022-01-13 21:59:39 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, GetVersion, pkt=32, seq=1, ack=0, resp=1, dest=192.168.2.107
2022-01-13 21:59:39 DEBUG (MainThread) [custom_components.lifx] (Discovery) action=received_response, serial=d073d56333c6, ip_addr=192.168.3.156
2022-01-13 21:59:39 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, GetVersion, pkt=32, seq=1, ack=0, resp=1, dest=192.168.3.156
2022-01-13 21:59:39 DEBUG (MainThread) [custom_components.lifx] (Discovery) action=received_response, serial=d073d52ece1b, ip_addr=192.168.2.38
2022-01-13 21:59:39 DEBUG (MainThread) [custom_components.lifx] (Discovery) action=received_response, serial=d073d52ec889, ip_addr=192.168.2.122
2022-01-13 21:59:39 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, GetVersion, pkt=32, seq=1, ack=0, resp=1, dest=192.168.2.38
2022-01-13 21:59:39 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, GetVersion, pkt=32, seq=1, ack=0, resp=1, dest=192.168.2.122
2022-01-13 21:59:39 DEBUG (MainThread) [custom_components.lifx] (Get State) action=received, MultiZoneStateMultiZone, pkt=506, seq=5, ack=0, resp=1, src=192.168.2.132
2022-01-13 21:59:40 DEBUG (MainThread) [custom_components.lifx] (Discovery) countdown=55, step=5
2022-01-13 21:59:40 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, LightGet, pkt=101, seq=2, ack=0, resp=1, dest=192.168.3.247
2022-01-13 21:59:40 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, LightGet, pkt=101, seq=2, ack=0, resp=1, dest=192.168.2.106
2022-01-13 21:59:40 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, LightGet, pkt=101, seq=2, ack=0, resp=1, dest=192.168.2.114
2022-01-13 21:59:40 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, LightGet, pkt=101, seq=2, ack=0, resp=1, dest=192.168.2.105
2022-01-13 21:59:40 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, LightGet, pkt=101, seq=2, ack=0, resp=1, dest=192.168.2.104
2022-01-13 21:59:40 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, LightGet, pkt=101, seq=2, ack=0, resp=1, dest=192.168.2.131
2022-01-13 21:59:40 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, LightGet, pkt=101, seq=2, ack=0, resp=1, dest=192.168.2.120
2022-01-13 21:59:40 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, LightGet, pkt=101, seq=2, ack=0, resp=1, dest=192.168.2.121
2022-01-13 21:59:40 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, LightGet, pkt=101, seq=2, ack=0, resp=1, dest=192.168.2.134
2022-01-13 21:59:40 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, LightGet, pkt=101, seq=2, ack=0, resp=1, dest=192.168.2.118
2022-01-13 21:59:40 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, LightGet, pkt=101, seq=2, ack=0, resp=1, dest=192.168.2.107
2022-01-13 21:59:40 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, LightGet, pkt=101, seq=2, ack=0, resp=1, dest=192.168.3.156
2022-01-13 21:59:40 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, LightGet, pkt=101, seq=2, ack=0, resp=1, dest=192.168.2.38
2022-01-13 21:59:40 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, LightGet, pkt=101, seq=2, ack=0, resp=1, dest=192.168.2.122
2022-01-13 21:59:41 DEBUG (MainThread) [custom_components.lifx] (Get State) action=received, StateVersion, pkt=33, seq=1, ack=0, resp=1, src=192.168.2.114
2022-01-13 21:59:41 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, GetVersion, pkt=32, seq=3, ack=0, resp=1, dest=192.168.2.114
2022-01-13 21:59:41 DEBUG (MainThread) [custom_components.lifx] (Get State) action=received, StateVersion, pkt=33, seq=1, ack=0, resp=1, src=192.168.2.105
2022-01-13 21:59:41 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, GetVersion, pkt=32, seq=3, ack=0, resp=1, dest=192.168.2.105
2022-01-13 21:59:41 DEBUG (MainThread) [custom_components.lifx] (Get State) action=received, StateVersion, pkt=33, seq=1, ack=0, resp=1, src=192.168.2.106
2022-01-13 21:59:41 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, GetVersion, pkt=32, seq=3, ack=0, resp=1, dest=192.168.2.106
2022-01-13 21:59:41 DEBUG (MainThread) [custom_components.lifx] (Get State) action=received, StateVersion, pkt=33, seq=1, ack=0, resp=1, src=192.168.2.131
2022-01-13 21:59:41 DEBUG (MainThread) [custom_components.lifx] (Get State) action=received, StateVersion, pkt=33, seq=1, ack=0, resp=1, src=192.168.2.121
2022-01-13 21:59:41 DEBUG (MainThread) [custom_components.lifx] (Get State) action=received, StateVersion, pkt=33, seq=1, ack=0, resp=1, src=192.168.2.120
2022-01-13 21:59:41 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, GetVersion, pkt=32, seq=3, ack=0, resp=1, dest=192.168.2.131
2022-01-13 21:59:41 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, GetVersion, pkt=32, seq=3, ack=0, resp=1, dest=192.168.2.121
2022-01-13 21:59:41 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, GetVersion, pkt=32, seq=3, ack=0, resp=1, dest=192.168.2.120
2022-01-13 21:59:41 DEBUG (MainThread) [custom_components.lifx] (Get State) action=received, StateVersion, pkt=33, seq=1, ack=0, resp=1, src=192.168.2.107
2022-01-13 21:59:41 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, GetVersion, pkt=32, seq=3, ack=0, resp=1, dest=192.168.2.107
2022-01-13 21:59:41 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Roomba' for roomba integration not ready yet; Retrying in background
2022-01-13 21:59:41 DEBUG (MainThread) [custom_components.lifx] (Get State) action=received, StateVersion, pkt=33, seq=1, ack=0, resp=1, src=192.168.2.114
2022-01-13 21:59:42 DEBUG (MainThread) [custom_components.lifx] (Get State) action=received, StateVersion, pkt=33, seq=1, ack=0, resp=1, src=192.168.2.121
2022-01-13 21:59:42 DEBUG (MainThread) [custom_components.lifx] (Get State) action=received, StateVersion, pkt=33, seq=1, ack=0, resp=1, src=192.168.2.134
2022-01-13 21:59:42 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, GetVersion, pkt=32, seq=3, ack=0, resp=1, dest=192.168.2.134
2022-01-13 21:59:42 DEBUG (MainThread) [custom_components.lifx] (Get State) action=received, StateVersion, pkt=33, seq=1, ack=0, resp=1, src=192.168.2.120
2022-01-13 21:59:42 DEBUG (MainThread) [custom_components.lifx] (Get State) action=received, StateVersion, pkt=33, seq=1, ack=0, resp=1, src=192.168.2.107
2022-01-13 21:59:42 ERROR (MainThread) [custom_components.lifx] (Discovery) action=restart, ip_addr=192.168.3.247.
2022-01-13 21:59:42 ERROR (MainThread) [custom_components.lifx] (Discovery) action=restart, ip_addr=192.168.2.106.
2022-01-13 21:59:42 ERROR (MainThread) [custom_components.lifx] (Discovery) action=restart, ip_addr=192.168.2.114.
2022-01-13 21:59:42 ERROR (MainThread) [custom_components.lifx] (Discovery) action=restart, ip_addr=192.168.2.105.
2022-01-13 21:59:42 ERROR (MainThread) [custom_components.lifx] (Discovery) action=restart, ip_addr=192.168.2.104.
2022-01-13 21:59:42 ERROR (MainThread) [custom_components.lifx] (Discovery) action=restart, ip_addr=192.168.2.131.
2022-01-13 21:59:42 ERROR (MainThread) [custom_components.lifx] (Discovery) action=restart, ip_addr=192.168.2.120.
2022-01-13 21:59:42 ERROR (MainThread) [custom_components.lifx] (Discovery) action=restart, ip_addr=192.168.2.121.
2022-01-13 21:59:42 ERROR (MainThread) [custom_components.lifx] (Discovery) action=restart, ip_addr=192.168.2.134.
2022-01-13 21:59:42 ERROR (MainThread) [custom_components.lifx] (Discovery) action=restart, ip_addr=192.168.2.118.
2022-01-13 21:59:42 DEBUG (MainThread) [custom_components.lifx] (Get State) action=received, StateVersion, pkt=33, seq=1, ack=0, resp=1, src=192.168.2.106
2022-01-13 21:59:42 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, GetVersion, pkt=32, seq=4, ack=0, resp=1, dest=192.168.2.106
2022-01-13 21:59:42 DEBUG (MainThread) [custom_components.lifx] (Get State) action=received, StateVersion, pkt=33, seq=1, ack=0, resp=1, src=192.168.2.114
2022-01-13 21:59:42 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, GetVersion, pkt=32, seq=4, ack=0, resp=1, dest=192.168.2.114
2022-01-13 21:59:42 DEBUG (MainThread) [custom_components.lifx] (Get State) action=received, StateVersion, pkt=33, seq=1, ack=0, resp=1, src=192.168.2.105
2022-01-13 21:59:42 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, GetVersion, pkt=32, seq=4, ack=0, resp=1, dest=192.168.2.105
2022-01-13 21:59:42 DEBUG (MainThread) [custom_components.lifx] (Get State) action=received, StateVersion, pkt=33, seq=1, ack=0, resp=1, src=192.168.2.120
2022-01-13 21:59:42 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, GetVersion, pkt=32, seq=4, ack=0, resp=1, dest=192.168.2.120
2022-01-13 21:59:42 DEBUG (MainThread) [custom_components.lifx] (Get State) action=received, StateVersion, pkt=33, seq=1, ack=0, resp=1, src=192.168.2.121
2022-01-13 21:59:42 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, GetVersion, pkt=32, seq=4, ack=0, resp=1, dest=192.168.2.121
2022-01-13 21:59:42 DEBUG (MainThread) [custom_components.lifx] (Get State) action=received, StateVersion, pkt=33, seq=1, ack=0, resp=1, src=192.168.2.134
2022-01-13 21:59:42 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, GetVersion, pkt=32, seq=4, ack=0, resp=1, dest=192.168.2.134
2022-01-13 21:59:42 ERROR (MainThread) [custom_components.lifx] (Discovery) action=restart, ip_addr=192.168.2.107.
2022-01-13 21:59:42 ERROR (MainThread) [custom_components.lifx] (Discovery) action=restart, ip_addr=192.168.3.156.
2022-01-13 21:59:42 ERROR (MainThread) [custom_components.lifx] (Discovery) action=restart, ip_addr=192.168.2.38.
2022-01-13 21:59:42 ERROR (MainThread) [custom_components.lifx] (Discovery) action=restart, ip_addr=192.168.2.122.
2022-01-13 21:59:42 DEBUG (MainThread) [custom_components.lifx] (Get State) action=received, StateVersion, pkt=33, seq=1, ack=0, resp=1, src=192.168.2.118
2022-01-13 21:59:42 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, GetVersion, pkt=32, seq=3, ack=0, resp=1, dest=192.168.2.118
2022-01-13 21:59:42 DEBUG (MainThread) [custom_components.lifx] (Get State) action=received, StateVersion, pkt=33, seq=1, ack=0, resp=1, src=192.168.2.107
2022-01-13 21:59:42 DEBUG (MainThread) [custom_components.lifx] (Get State) action=send, GetVersion, pkt=32, seq=4, ack=0, resp=1, dest=192.168.2.107

from ha-lifx-beta.

Djelibeybi avatar Djelibeybi commented on June 23, 2024

Those aren't actual errors, I'm just using the wrong log levels. But it does indicate that your network is very busy, I think. Can you bump the message reply timeout again to 3 seconds? Most of your bulbs are replying, but not within the timeout.

from ha-lifx-beta.

Djelibeybi avatar Djelibeybi commented on June 23, 2024

You'll need to adjust discovery interval as well. I'd put that up at 300 or so.

from ha-lifx-beta.

mekenthompson avatar mekenthompson commented on June 23, 2024

I've done that, so now it's waiting until 300 secs after HASS bootup before they're available and HASS flags it's "fully started".

I can see the lights registering multiple times before discovery ends though. Do they not register as available entities until that Discovery time has fully completed though?

from ha-lifx-beta.

Djelibeybi avatar Djelibeybi commented on June 23, 2024

That's really weird. I'll have to try and work out what's going on over the weekend.

from ha-lifx-beta.

Djelibeybi avatar Djelibeybi commented on June 23, 2024

I've just double-checked my test/dev instance and all 59 of my bulbs are discovered and active before the timer for the next discovery starts. It also completes the initial discovery in ~4 seconds. That's with a 300 second discovery interval and a 1 second message response timeout.

from ha-lifx-beta.

Djelibeybi avatar Djelibeybi commented on June 23, 2024

Screen Shot 2022-01-14 at 12 57 33 pm

For reference, here are the settings I'm using for test purposes.

from ha-lifx-beta.

Djelibeybi avatar Djelibeybi commented on June 23, 2024

This should be resolved by home-assistant/core#70458 when it is merged to the core.

from ha-lifx-beta.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.