Giter Club home page Giter Club logo

Comments (7)

Jeltel avatar Jeltel commented on June 15, 2024

@basnijholt what log do you need?
Which log setting do I need to set for home assistant?

from adaptive-lighting.

basnijholt avatar basnijholt commented on June 15, 2024

Could you add this to your configuration.yaml:

logger:
  default: warning
  logs:
    custom_components.adaptive_lighting: debug

restart HA and share home-assistant.log after the problem occurred.

from adaptive-lighting.

Jeltel avatar Jeltel commented on June 15, 2024
2020-10-09 08:27:41 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.eettafel']')' event
2020-10-09 08:27:42 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.koplamp']')' event
2020-10-09 08:27:42 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lamp_boven_zithoek']')' event
2020-10-09 08:27:43 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.leeslamp_bank']')' event
2020-10-09 08:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Zithoek: '_update_attrs_and_maybe_adapt_lights' called
2020-10-09 08:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Zithoek: '_adapt_lights(['light.koplamp', 'light.lamp_boven_zithoek', 'light.leeslamp_bank', 'light.eettafel'], None, False)' called
2020-10-09 08:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Zithoek: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.koplamp', 'transition': 45.0, 'brightness_pct': 100, 'color_temp': 364}
2020-10-09 08:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Zithoek: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lamp_boven_zithoek', 'transition': 45.0, 'brightness_pct': 100, 'color_temp': 364}
2020-10-09 08:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Zithoek: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.leeslamp_bank', 'transition': 45.0, 'brightness_pct': 100, 'color_temp': 364}
2020-10-09 08:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Zithoek: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.eettafel', 'transition': 45.0, 'brightness_pct': 100, 'color_temp': 364}
2020-10-09 08:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.koplamp']')' event
2020-10-09 08:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lamp_boven_zithoek']')' event
2020-10-09 08:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.leeslamp_bank']')' event
2020-10-09 08:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.eettafel']')' event
2020-10-09 08:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Gang Boven: '_update_attrs_and_maybe_adapt_lights' called
2020-10-09 08:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Gang Boven: '_adapt_lights(['light.lamp_gang_boven'], None, False)' called
2020-10-09 08:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lamp_boven_zithoek' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 254, 'color_temp': 364, 'hs_color': (0, 0), 'rgb_color': (255, 255, 255), 'xy_color': (0.323, 0.329), 'off_brightness': None, 'friendly_name': 'Lamp Boven Zithoek', 'supported_features': 63}'
2020-10-09 08:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.leeslamp_bank' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 254, 'color_temp': 364, 'hs_color': (0, 0), 'rgb_color': (255, 255, 255), 'xy_color': (0.323, 0.329), 'off_brightness': None, 'friendly_name': 'Leeslamp Bank', 'supported_features': 63}'
2020-10-09 08:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.eettafel' 'state_changed' event: '{'min_mireds': 250, 'max_mireds': 454, 'brightness': 254, 'color_temp': 364, 'off_brightness': None, 'friendly_name': 'Eettafel', 'supported_features': 43}'
2020-10-09 08:28:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.eettafel' 'state_changed' event: '{'min_mireds': 250, 'max_mireds': 454, 'brightness': 254, 'color_temp': 250, 'off_brightness': None, 'friendly_name': 'Eettafel', 'supported_features': 43}'
2020-10-09 08:28:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.koplamp' 'state_changed' event: '{'min_mireds': 250, 'max_mireds': 454, 'brightness': 254, 'color_temp': 364, 'off_brightness': None, 'friendly_name': 'Koplamp', 'supported_features': 43}'
2020-10-09 08:29:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Zithoek: '_update_attrs_and_maybe_adapt_lights' called
2020-10-09 08:29:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Zithoek: '_adapt_lights(['light.koplamp', 'light.lamp_boven_zithoek', 'light.leeslamp_bank', 'light.eettafel'], None, False)' called
2020-10-09 08:29:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Zithoek: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.koplamp', 'transition': 45.0, 'brightness_pct': 100, 'color_temp': 360}
2020-10-09 08:29:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Zithoek: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lamp_boven_zithoek', 'transition': 45.0, 'brightness_pct': 100, 'color_temp': 360}
2020-10-09 08:29:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Zithoek: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.leeslamp_bank', 'transition': 45.0, 'brightness_pct': 100, 'color_temp': 360}
2020-10-09 08:29:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Zithoek: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.eettafel', 'transition': 45.0, 'brightness_pct': 100, 'color_temp': 360}
2020-10-09 08:29:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.koplamp']')' event
2020-10-09 08:29:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lamp_boven_zithoek']')' event
2020-10-09 08:29:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.leeslamp_bank']')' event
2020-10-09 08:29:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.eettafel']')' event
2020-10-09 08:29:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Gang Boven: '_update_attrs_and_maybe_adapt_lights' called
2020-10-09 08:29:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Gang Boven: '_adapt_lights(['light.lamp_gang_boven'], None, False)' called
2020-10-09 08:29:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lamp_boven_zithoek' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 254, 'color_temp': 360, 'hs_color': (0, 0), 'rgb_color': (255, 255, 255), 'xy_color': (0.323, 0.329), 'off_brightness': None, 'friendly_name': 'Lamp Boven Zithoek', 'supported_features': 63}'
2020-10-09 08:29:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.eettafel' 'state_changed' event: '{'min_mireds': 250, 'max_mireds': 454, 'brightness': 254, 'color_temp': 360, 'off_brightness': None, 'friendly_name': 'Eettafel', 'supported_features': 43}'
2020-10-09 08:29:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.leeslamp_bank' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 254, 'color_temp': 360, 'hs_color': (0, 0), 'rgb_color': (255, 255, 255), 'xy_color': (0.323, 0.329), 'off_brightness': None, 'friendly_name': 'Leeslamp Bank', 'supported_features': 63}'
2020-10-09 08:29:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.eettafel' 'state_changed' event: '{'min_mireds': 250, 'max_mireds': 454, 'brightness': 254, 'color_temp': 278, 'off_brightness': None, 'friendly_name': 'Eettafel', 'supported_features': 43}'
2020-10-09 08:29:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.eettafel' 'state_changed' event: '{'min_mireds': 250, 'max_mireds': 454, 'brightness': 254, 'color_temp': 306, 'off_brightness': None, 'friendly_name': 'Eettafel', 'supported_features': 43}'
2020-10-09 08:29:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.eettafel' 'state_changed' event: '{'min_mireds': 250, 'max_mireds': 454, 'brightness': 254, 'color_temp': 334, 'off_brightness': None, 'friendly_name': 'Eettafel', 'supported_features': 43}'
2020-10-09 08:29:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.eettafel' 'state_changed' event: '{'min_mireds': 250, 'max_mireds': 454, 'brightness': 254, 'color_temp': 362, 'off_brightness': None, 'friendly_name': 'Eettafel', 'supported_features': 43}'
2020-10-09 08:29:54 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.koplamp' 'state_changed' event: '{'min_mireds': 250, 'max_mireds': 454, 'brightness': 254, 'color_temp': 360, 'off_brightness': None, 'friendly_name': 'Koplamp', 'supported_features': 43}'
2020-10-09 08:29:54 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.koplamp' 'state_changed' event: '{'min_mireds': 250, 'max_mireds': 454, 'brightness': 254, 'color_temp': 306, 'off_brightness': None, 'friendly_name': 'Koplamp', 'supported_features': 43}'
2020-10-09 08:29:54 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.koplamp' 'state_changed' event: '{'min_mireds': 250, 'max_mireds': 454, 'brightness': 254, 'color_temp': 362, 'off_brightness': None, 'friendly_name': 'Koplamp', 'supported_features': 43}'
2020-10-09 08:30:27 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.eettafel']')' event
2020-10-09 08:30:27 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.koplamp']')' event
2020-10-09 08:30:28 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lamp_boven_zithoek']')' event
2020-10-09 08:30:28 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.leeslamp_bank']')' event
2020-10-09 08:31:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Zithoek: '_update_attrs_and_maybe_adapt_lights' called
2020-10-09 08:31:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Zithoek: '_adapt_lights(['light.koplamp', 'light.lamp_boven_zithoek', 'light.leeslamp_bank', 'light.eettafel'], None, False)' called
2020-10-09 08:31:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Zithoek: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.koplamp', 'transition': 45.0, 'brightness_pct': 100, 'color_temp': 357}
2020-10-09 08:31:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Zithoek: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.lamp_boven_zithoek', 'transition': 45.0, 'brightness_pct': 100, 'color_temp': 357}
2020-10-09 08:31:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Zithoek: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.leeslamp_bank', 'transition': 45.0, 'brightness_pct': 100, 'color_temp': 357}
2020-10-09 08:31:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Zithoek: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.eettafel', 'transition': 45.0, 'brightness_pct': 100, 'color_temp': 357}
2020-10-09 08:31:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.koplamp']')' event
2020-10-09 08:31:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.lamp_boven_zithoek']')' event
2020-10-09 08:31:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.leeslamp_bank']')' event
2020-10-09 08:31:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.eettafel']')' event
2020-10-09 08:31:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Gang Boven: '_update_attrs_and_maybe_adapt_lights' called
2020-10-09 08:31:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Gang Boven: '_adapt_lights(['light.lamp_gang_boven'], None, False)' called
2020-10-09 08:31:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.lamp_boven_zithoek' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 254, 'color_temp': 357, 'hs_color': (0, 0), 'rgb_color': (255, 255, 255), 'xy_color': (0.323, 0.329), 'off_brightness': None, 'friendly_name': 'Lamp Boven Zithoek', 'supported_features': 63}'
2020-10-09 08:31:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.leeslamp_bank' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 254, 'color_temp': 357, 'hs_color': (0, 0), 'rgb_color': (255, 255, 255), 'xy_color': (0.323, 0.329), 'off_brightness': None, 'friendly_name': 'Leeslamp Bank', 'supported_features': 63}'
2020-10-09 08:31:23 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.eettafel' 'state_changed' event: '{'min_mireds': 250, 'max_mireds': 454, 'brightness': 254, 'color_temp': 357, 'off_brightness': None, 'friendly_name': 'Eettafel', 'supported_features': 43}'
2020-10-09 08:31:24 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.koplamp' 'state_changed' event: '{'min_mireds': 250, 'max_mireds': 454, 'brightness': 254, 'color_temp': 357, 'off_brightness': None, 'friendly_name': 'Koplamp', 'supported_features': 43}'

There you go.
Now the Hue lights also don't stay in the set scene.

from adaptive-lighting.

basnijholt avatar basnijholt commented on June 15, 2024

Hi @Jeltel,

Thanks a lot for your log file and for reporting a bug. However, it might be that I have solved this already because you are using an old version of the code. Could you please update to the latest version of the code and try again?

from adaptive-lighting.

Jeltel avatar Jeltel commented on June 15, 2024

I've installed the new version and will investigate somewhere in the next couple of days. Now my paying work calls :)

Thanks for this adaptive lighting so far. It at least fixes some issues with Circadian lighting that kept bugging me. 👍

from adaptive-lighting.

basnijholt avatar basnijholt commented on June 15, 2024

Good! Please let me know whether it works as expected for you now or not.

from adaptive-lighting.

Jeltel avatar Jeltel commented on June 15, 2024

@basnijholt No issues so far for switching colours after turning the light to a colour twice.

Did saw sporadically that the lights turned on again, after turning off. But I'll make a new issue when i get some more info about it.

from adaptive-lighting.

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.