Hue Illuminance Entity value differs in reported automation [fixed]

Hello all.

[UPDATE] Turns out somehow 1 of the 2 automation using the same conditions were slightly different. The one not working was using “attribute: light_level”. Removing that attribute fixed it. Glad I was able to auto-support myself :slight_smile:

  • condition: numeric_state
    entity_id: sensor.hue_outdoor_motion_sensor_2_illuminance
    below: 600
    attribute: light_level

[ End of Update ]

I need help trying to troubleshoot something odd. There’s likely an explanation but can’t figure out.

When visualizing on the graph the Hue Outdoor Illuminance entity, or when looking at the entity in Settings->Devices->Entities->sensor.hue_outdoor_motion_sensor_2_illuminance , they both show the same number:

But when the automation runs, the value is different (way above):

The same odd value shows in Developers->Template:

{{ states.sensor.hue_outdoor_motion_sensor_2_illuminance.attributes.light_level }}

Is there any explanations for this? If it’s not a bug, what’s a good work around?

More info on this topic.

This comment might explain the issue and this PR Correct hue light level units and value calculation should have fixed it.