Automation based on value of entity

Hi,

In my HA I have an entity called sensor.home_outdoor_illuminance that gives the outside luminance (for instance 960lx) based on weather and sun elevation. I would like to make an automation to turn on lights that triggers when the value of the sensor drops below a certain level. I believe I need a value template in order to achieve this, but I’m unsure how to write this correctly. Any help is appreciated!

You can use a basic Numeric state trigger to trigger an automation when a value goes below and/or above defined values. It could also be done with a Template trigger, but that is unnecessarily complicated for what you have described so far.