When…
– The motion alarm turned on (IKEA Motion Sensor)
And…
– Logic card: Brightness (Tag) is less than 20
Then…
– Turn light on
How to use Tags in a flow, I suggest to follow this tutorial.
To ensure that the light goes off after a certain time, I suggest following this tutorial.