Sometimes some of my automations don't trigger, so when I look at the trace to find out why, I'll see something like unknown entity. Does anyone know what's happening and how to fix it?
My guess is that at some point you had a lux sensor (illuminance) as a condition and that entity has either had its name changed or has been deleted.
Check out the automation (either in the builder or in the yaml) to see if you have this condition. Then see if that entity still exists or if it’s name has changed.
Once I had devices that replaced entities with new ones with a different ID after a firmware update. It happened to some ESPHome devices I had after upgrading the firmware. Have you checked the device the entity belongs to?
Maybe click on that lux entity in the dashboard and see if it has been consistently transmitting its data (on the history graph)? I'm pretty sure you'll get this warning if the state reads "unavailable" which could be a reception issue or a dying sensor.
I recently saw this happen to an animation of mine and I think this was the cause