Skip to content

condition with color temperatue requires extra " " #150074

@eko000

Description

@eko000

The problem

This works but Visual editor doesnt allow it:
condition: state entity_id: light.zarowka_salon_lewy_dol attribute: color_temp state: 370 enabled: true

This does not work but is suggested in visual editor:
condition: state entity_id: light.zarowka_salon_prawa_gora attribute: color_temp state: "370"

This is how it looks like in traces:

if/condition/0/conditions/0/entity_id/0
[Jeśli Temperatura barwowa (mired) z ŻARÓWKA salon lewy dół ma stan 370 mired]
Wykonano: 5 sierpnia 2025 23:28:19
Wynik:

result: true
state: 370
wanted_state: 370

entity: light.zarowka_salon_lewy_dol
if/condition/0/conditions/1/entity_id/0
[Jeśli Temperatura barwowa (mired) z ŻARÓWKA salon prawa góra ma stan 370]
Wykonano: 5 sierpnia 2025 23:28:19
Wynik:

result: false
state: 370
wanted_state: '370'

entity: light.zarowka_salon_prawa_gora

What version of Home Assistant Core has the issue?

core-2025.7.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions