rgb-light-card icon indicating copy to clipboard operation
rgb-light-card copied to clipboard

Presets colors doesn't work

Open DomoSnk opened this issue 2 years ago • 7 comments

Hello, After several months of running my script stopped changing the pre-set colors. If I click on any of the colors nothing happen. If I try to change the color from MQTT everything works.

luci

DomoSnk avatar Feb 15 '23 08:02 DomoSnk

Hello,

I have no idea why it's not working, and without more information, I'm unable to help you

bokub avatar Feb 15 '23 10:02 bokub

Hello,

I have no idea why it's not working, and without more information, I'm unable to help you

Just tell me what information do you need?

DomoSnk avatar Feb 15 '23 11:02 DomoSnk

  • Is there any kind of error message displayed when you click on colors ?
  • Is there any log in the JavaScript console (F12 to open) ?
  • Can you turn on the lights with the light.turn_on service ? (if yes, please send a screenshot)

bokub avatar Feb 15 '23 13:02 bokub

FYI this card hasn't changed for almost 1 year, so the problem comes either from Home Assistant (but I cannot reproduce it with the latest version), or from your setup.

bokub avatar Feb 15 '23 13:02 bokub

  • no error
  • yes there are a lot of logs, I add error screen and a txt file with all the error/logs errors.txt error
  • yes the lights work correctly if I turn on with the last color memorized events

DomoSnk avatar Feb 15 '23 18:02 DomoSnk

I noticed this as well, and thought that the extension just didn't work. But I happened to notice, that when I was adding multiple lights to a card, one of them (Hue Lightstrip) did work when clicking the presets. The other Hue lightstrips or bulbs did not respond to the presets. No errors in the console, same with Firefox and Chrome. All the Hue devices are connected through the Hue integration, there is also one purely Zigbee2MQTT connected lightstrip, which doesn't work either. All lights do turn on and off, but the preset color just doesn't seem to do anything.

Edit: Ok, in my case I suppose it's just user error. I was trying to add multiple lights with the visual editor, assuming you can set a universal color preset for all of them through the UI, but didn't notice it adds the color presets per entity and defaults to the first proposed light entity (this is the one that worked with the above description).

Sorry :man_facepalming:

(@bokub :point_up:)

pullasuti avatar Dec 20 '23 09:12 pullasuti

@DomoSnk From what I can see in your screenshot, the errors come from "kiosk-mode", there is nothing related to this card.

@pullasuti Can you please share your card config ?

bokub avatar Dec 20 '23 09:12 bokub