I see. Well I actually use Fibaro sensors to capture the light values per room. And then store it in a Homey variable per sensor. I update that variable only if the light in that room is not turned on. Basically to prevent “false” readings of the actual light value when the lights are on.
Then have the motion sensors assigned to Homey Zones. And if a Zone becomes active I check the light value variable for that zone to decide whether to turn the lights on or not.
And then I simple use the ‘Zone inactive for x minutes’ card to turn it off again. Works like a charm.