I read more than one topics but i can’t find the solution… I want to detect the luminance with a motion detector and set a variable to ‘yes’ or ‘no’.
You can see my little flow below.
The WHEN-card trigger the flow but you need an AND-card that is checked to have THEN and ELSE work as you intend.
I suggest you add this:
WHEN: Luminance becomes less than 20 lx AND: Luminance is less than 20 lx
THEN: Set lx in cuisine to Yes
ELSE: Set lx in cuisine to No