Coder Social home page Coder Social logo

Comments (5)

Djelibeybi avatar Djelibeybi commented on August 15, 2024

So that looks like the debug logs of Home Assistant starting and then you added the LIFX integration (or enabled its configuration) and then it stops. You should have seen a whole bunch of DEBUG log entries for custom_components.lifx.

Please add homeassistant.setup: debug and homeassistant.components.lifx: debug under logs: so we can see if there is a problem setting up the custom LIFX integration or if the core integration is somehow being used instead of the custom integration (for some reason):

logger:
  default: info
  logs:
    homeassistant.setup: debug
    homeassistant.components.lifx: debug
    custom_components.lifx: debug

from ha-lifx-beta.

Djelibeybi avatar Djelibeybi commented on August 15, 2024

BTW, you should see something like this after you create the LIFX configuration on the Settings -> Integrations page:

2022-06-12 17:51:16 INFO (MainThread) [homeassistant.setup] Setting up lifx
2022-06-12 17:51:16 INFO (MainThread) [homeassistant.setup] Setup of domain lifx took 0.0 seconds
2022-06-12 17:51:16 INFO (MainThread) [homeassistant.setup] Setting up light
2022-06-12 17:51:16 INFO (MainThread) [homeassistant.setup] Setup of domain light took 0.0 seconds
2022-06-12 17:51:16 INFO (MainThread) [homeassistant.components.light] Setting up light.lifx
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.49 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.62 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.47 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.93 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.92 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.57 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.40 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.89 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.98 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.96 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.72 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.50 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.97 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.44 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.41 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.135 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.46 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.95 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.52 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.85 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.71 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.43 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.45 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] Entity created for Garage Ceiling Light (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new light.lifx entity: light.garage_ceiling_light
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] Entity created for Theatre 3R (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] Entity created for Theatre 2L (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] Entity created for Theatre 4L (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new light.lifx entity: light.theatre_3r
2022-06-12 17:51:16 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new light.lifx entity: light.theatre_2l
2022-06-12 17:51:16 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new light.lifx entity: light.theatre_4l
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] Entity created for Entrance Hall Front Door Light (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] Entity created for Alfresco Ceiling Light (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] Entity created for Theatre Table Lamp (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] Entity created for Test Bulb (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] First discovery response received from 192.168.254.61 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] Skipping discovered LIFX Switch at 192.168.254.98 (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] Entity created for Laundry Ceiling Light (d0:73:d5:xx:xx:xx)
2022-06-12 17:51:16 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new light.lifx entity: light.alfresco_ceiling_light
2022-06-12 17:51:16 DEBUG (MainThread) [homeassistant.components.lifx.light] Entity created for Andrew's Office Ceiling Light (d0:73:d5:xx:xx:xx)

from ha-lifx-beta.

catchdave avatar catchdave commented on August 15, 2024

Something weird is going on - I get no debug log entries for any lifx components (just info). I even set global default to debug and I got an inordinate amount of debug logs for everything except lifx.

logger:
  default: debug
  logs:
    homeassistant.setup: debug
    homeassistant.components.lifx: debug
    custom_components.lifx: debug

from ha-lifx-beta.

catchdave avatar catchdave commented on August 15, 2024

I can't tell why I am not getting debug logs for lifx. Here's what I can tell you:

  • Running rpi4, debian 10, supervisor/hass.io installation.
  • configuration.yaml has log settings like previous comment (except I reverted the default to info, since it was printing 10's of thousands of lines).
  • I installed this beta repo in HACS and downloaded.
  • I even modified homeassistant/custom_components/lifx/light.py and replaced all LOGGER.debug to LOGGER.info - but still don't get debug logs for lifx.
  • I have restarted many times.

In the logs, I see DEBUG level around some things, but it just won't drill down into lifx. Example extract:

2022-06-12 14:35:03 DEBUG (MainThread) [homeassistant.setup] Dependency template will wait for after dependencies ['group']
2022-06-12 14:35:03 DEBUG (MainThread) [homeassistant.setup] Dependency template will wait for after dependencies ['group']
2022-06-12 14:35:03 DEBUG (MainThread) [homeassistant.setup] Dependency template will wait for after dependencies ['group']
2022-06-12 14:35:03 DEBUG (MainThread) [homeassistant.setup] Dependency template will wait for after dependencies ['group']
2022-06-12 14:35:03 DEBUG (MainThread) [homeassistant.setup] Dependency template will wait for after dependencies ['group']
2022-06-12 14:35:03 DEBUG (MainThread) [homeassistant.setup] Dependency template will wait for after dependencies ['group']
2022-06-12 14:35:03 INFO (MainThread) [homeassistant.setup] Setup of domain media_source took 3.8 seconds
2022-06-12 14:35:03 INFO (MainThread) [homeassistant.setup] Setup of domain scene took 3.8 seconds
2022-06-12 14:35:04 INFO (MainThread) [homeassistant.setup] Setting up zwave_js
2022-06-12 14:35:04 INFO (MainThread) [homeassistant.setup] Setup of domain zwave_js took 0.0 seconds
2022-06-12 14:35:04 INFO (MainThread) [homeassistant.setup] Setting up lifx
2022-06-12 14:35:04 INFO (MainThread) [homeassistant.setup] Setup of domain lifx took 0.0 seconds
2022-06-12 14:35:04 INFO (MainThread) [homeassistant.setup] Setting up abode
2022-06-12 14:35:04 INFO (MainThread) [homeassistant.setup] Setup of domain abode took 0.0 seconds

Any more ideas to get logs? I feel like there is something fundamentally wrong, or I am missing something obvious --especially after modifying the log statements (!)

from ha-lifx-beta.

catchdave avatar catchdave commented on August 15, 2024

OK - I have fixed the main issue. I still don't know why the debug logs don't work, but now have lifx working again.

In case this helps someone else, there is now (not sure when this change happened) an "auto" network configure in home assistant. By default it was only making ethernet available.

To fix, I simply went to Settings > Network > Network Adapter and unchecked Auto configure and instead checked both of the network adapters (wifi and ethernet).

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.