Hi guys i’ve just started to get into home automation with home assistant and need some help with creating an automation. I have a lamp in my living room with a Philips Hue bulb installed and a Acara FP2. What i want is for the lamp to turn on when i enter the living room but only if its dark and go off if i leave the room. Can anyone help me with an automation to do this.