Compare color in trigger or condition in an automation

Hello together,
I want to create an automation which triggers when a light changes to a specific color.
How to trigger automation with light color change? : r/homeassistant

For example here is my automation it is triggered but the condtion does not match:

id: ‘1707334537865’
alias: Wohnzimmer - WLED Weiß
description: ‘’
triggers:

  • entity_id:
    • light.wled_soundreactive
      trigger: state
      attribute: rgbw_color
      conditions:
  • condition: state
    entity_id: light.wled_soundreactive
    attribute: rgbw_color
    state:
    • 130
    • 90
    • 0
    • 255
      actions:
  • target:
    entity_id: light.wled_soundreactive
    data:
    rgbw_color: 255, 176, 0, 255
    action: light.turn_on
    mode: single

Here is the output from the trace:

Ausgeführt: 10. November 2024 um 11:25:37
Ergebnis:
result: false
state:

  • 130
  • 90
  • 0
  • 255
    wanted_state: 255

So how do I get this working?

Thanks for your help.

Hi Markus M.,

Thanks for coming here and asking a question.
Would you be so kind as to adjusting the format of your code so that we can read it properly & check the YAML spacing, etc. It is very hard for us to tell what is what when the text formatter jumbles everything like that.
Use the </> button or this:
Here is an example of how to fix it from the site FAQ Page.
How to help us help you - or How to ask a good question.