Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color Wheel no longer showing up on 2023.3.0 #104

Closed
conorlap opened this issue Mar 1, 2023 · 24 comments
Closed

Color Wheel no longer showing up on 2023.3.0 #104

conorlap opened this issue Mar 1, 2023 · 24 comments

Comments

@conorlap
Copy link

conorlap commented Mar 1, 2023

Color Wheel no longer showing up on latest HA release 2023.3.0

This must be because they have reworked the more-info dialogue for lights etc.

@kylepyke
Copy link

kylepyke commented Mar 2, 2023

Same issue here!

@nielsgl
Copy link

nielsgl commented Mar 3, 2023

Ditto here, also on 2023.3.1. I tried to figure out what causes it because the ha-color-picker isn't updated in the frontend repository, but it seems that it is an issue with loading the contents of the color picker. When I first load the page, click on my light the popup card is empty. However when I then open the regular more-info page and view the color picker, close it and then open this light-entity-card popup again it does show. When looking at the source code, the contents of the ha-color-picker element is empty the first time, however, the second time after opening the regular more-info popup, this popup does contain the shadow root and everything in it so I guess that it has something to do with loading the data from the color picker element. Hope this information helps :)

Update:

Looking some more into the source of the frontend (my first time so not quite sure how everything works together), the color picker is referenced in these files

./src/dialogs/more-info/controls/more-info-light.ts
./src/dialogs/more-info/components/lights/show-view-light-color-picker.ts
./src/dialogs/more-info/components/lights/ha-more-info-view-light-color-picker.ts

Looking at the changes from the last days it seems that they are now dynamically loading the component, which I would guess is the reason why it's not showing up right away (because it doesn't exist yet), need to figure out how to trigger it from this card.

Update 2:
The more-info-light.ts seems to invoke showLightColorPickerView when the popup is opened, which loads the content, now the question just is how to do that in the card.

@ljmerza
Copy link
Owner

ljmerza commented Mar 3, 2023

unfortunately, there's too many break changes at this point to support this card. would need a good rewrite that i dont have the time for

@JagerSprinkles
Copy link

I noticed that if you open the details for a light and then use the color wheel there it will temporarily fix this card. Looks like it works after something else loads the color wheel on the page.

@Phoenix-DH
Copy link

Any news on this?

@ljmerza
Copy link
Owner

ljmerza commented Mar 14, 2023

try v6.0.0

@Phoenix-DH
Copy link

Great 🥳 Thank you!

@kylepyke
Copy link

Thank you!! One issue, though– the color wheel no longer resizes to the card 😬
1

@JagerSprinkles
Copy link

6.0.0 is working better but does not show up if "Consolidate Entities" is off and a group is selected.

Thank you for the update!

@SmarterHomeLife
Copy link

Thanks for the update @ljmerza

@ljmerza
Copy link
Owner

ljmerza commented Mar 14, 2023

Thank you!! One issue, though– the color wheel no longer resizes to the card 😬

fixed in 6.0.1

@ljmerza
Copy link
Owner

ljmerza commented Mar 14, 2023

6.0.0 is working better but does not show up if "Consolidate Entities" is off and a group is selected

should be fixed in v6.0.2

@conorlap
Copy link
Author

Thank you @ljmerza 🥳🥳
I'm getting a weird issue where colour changes to a group causes the lights to get "stuck" for a while - seems like the Hue bridge gets overloaded with commands or something? Even if I turn the lights off in HA they remain on and don't seem to turn off until 15/20 seconds later.

The built in colour wheel doesn't exhibit this issue.

@kylepyke
Copy link

Thank you!! One issue, though– the color wheel no longer resizes to the card 😬

fixed in 6.0.1

Hmm... Still having the same issue. Here is my code, if that's helpful:

type: vertical-stack
title: Lights
cards:
  - square: false
    columns: 2
    type: grid
    cards:
      - type: custom:vertical-stack-in-card
        cards:
          - shorten_cards: true
            consolidate_entities: false
            child_card: false
            hide_header: false
            header: ''
            color_wheel: true
            persist_features: true
            brightness: true
            color_temp: false
            white_value: false
            color_picker: true
            speed: false
            intensity: false
            force_features: true
            show_slider_percent: true
            full_width_sliders: true
            brightness_icon: weather-sunny
            white_icon: file-word-box
            temperature_icon: thermometer
            speed_icon: speedometer
            intensity_icon: transit-connection-horizontal
            smooth_color_wheel: false
            type: custom:light-entity-card
            entity: light.hearth_lamp
            effects_list: false

@ljmerza
Copy link
Owner

ljmerza commented Mar 15, 2023

Thank you!! One issue, though– the color wheel no longer resizes to the card 😬

fixed in 6.0.1

Hmm... Still having the same issue. Here is my code, if that's helpful:

okay i see what i did. fixed in v6.0.3

@kylepyke
Copy link

Fixed here! Thank you!!

@kylepyke
Copy link

Ah... I'm still having the consolidated entities bug in 6.0.3. No color wheel if group selected. Thanks again!

@ljmerza
Copy link
Owner

ljmerza commented Mar 15, 2023

Ah... I'm still having the consolidated entities bug in 6.0.3. No color wheel if group selected. Thanks again!

okay try 6.0.4

@kylepyke
Copy link

Seriously- thank you for maintaining this repository through the HA 2023 update. I'm sure it's been a headache solving all of these little bugs.

The group colorwheel now displays, but I found two issues pertaining to updating values both in group and group member entities:

  • I'm guessing, but it looks like when the card tries to update its slider to reflect changes in brightness, it creates a feedback loop, and the slider goes haywire. I have both the group and the group members displayed on the dashboard in separate light-entity cards with a colorwheel and brightness slider. Changing either the group or its members' sliders causes this behavior, but regular non-group/member entities do not have this behavior.
  • The color wheel doesn't update with the current color when changed outside of the card.

Apologies for raising more issues, and thanks for your work on this! It is greatly appreciated!

@ljmerza
Copy link
Owner

ljmerza commented Mar 16, 2023

Seriously- thank you for maintaining this repository through the HA 2023 update. I'm sure it's been a headache solving all of these little bugs.

The group colorwheel now displays, but I found two issues pertaining to updating values both in group and group member entities:

  • I'm guessing, but it looks like when the card tries to update its slider to reflect changes in brightness, it creates a feedback loop, and the slider goes haywire. I have both the group and the group members displayed on the dashboard in separate light-entity cards with a colorwheel and brightness slider. Changing either the group or its members' sliders causes this behavior, but regular non-group/member entities do not have this behavior.
  • The color wheel doesn't update with the current color when changed outside of the card.

Apologies for raising more issues, and thanks for your work on this! It is greatly appreciated!

okay both of these should be solved in 6.0.6

@kylepyke
Copy link

Thanks! Looks like everything works!

@4integration
Copy link

Doesn't work in my setup...all updated to latest

@Keesiej
Copy link

Keesiej commented Mar 21, 2023

Same for me.

Changing my dashboard broke it. Updated it to the latest version, re-added it but all no luck.

@ljmerza
Copy link
Owner

ljmerza commented Mar 21, 2023

lets open a new issue with more details

@ljmerza ljmerza closed this as completed Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants