basnijholt / adaptive-lighting

Adaptive Lighting custom component for Home Assistant
https://basnijholt.github.io/adaptive-lighting/
Apache License 2.0
1.7k stars 127 forks source link

Unresponsive light with adaptative lightning #1012

Closed Charles-HL closed 1 month ago

Charles-HL commented 1 month ago

I have a Magic Home light that works normally; however, after setting up an adaptive lighting configuration, the state fails to update when the light is turned on or off, rendering it unresponsive in Home Assistant. To restore functionality, I must manually restart the light. Additionally, attempting to create a template light resulted in the same issue.

Those are the debug logs home-assistant-adaptive-lighting.log, the lights that does not work are light.chambre_elio and light.chambre_elio_template

The template light:


light:
  - platform: template
    lights:
      chambre_elio_template:
        friendly_name: "Chambre Élio Template"
        value_template: "{{ is_state('input_boolean.chambre_elio', 'on') }}"
        level_template: "{{ states('input_number.chambre_elio_brightness') }}"
        temperature_template: "{{ states('input_number.chambre_elio_temperature') }}"
        min_mireds_template: 153
        max_mireds_template: 370
        hs_template: "{{ states('input_number.chambre_elio_hue') }},{{ states('input_number.chambre_elio_saturation') }}"
        turn_on:
          service: input_boolean.turn_on
          data:
            entity_id: input_boolean.chambre_elio
        turn_off:
          service: input_boolean.turn_off
          data:
            entity_id: input_boolean.chambre_elio
        set_level:
          service: input_number.set_value
          data_template:
            entity_id: input_number.chambre_elio_brightness
            value: "{{ brightness }}"
        set_temperature:
          service: input_number.set_value
          data_template:
            entity_id: input_number.chambre_elio_temperature
            value: "{{ color_temp }}"
        set_hs:
          - service: input_number.set_value
            data_template:
              entity_id: input_number.chambre_elio_hue
              value: "{{ h }}"
          - service: input_number.set_value
            data_template:
              entity_id: input_number.chambre_elio_saturation
              value: "{{ s }}"
Charles-HL commented 1 month ago

I fixed it by disabling intercept