I ended up using two automations rather than one like you have, as I just didn’t have the energy / time to go the last step to combine them, only one of my devices has a LUX, and it’s in an area that is always dark.
Note there are simple services like “sun” and date/time that you can use to limit times these are active.
Using a really short PIR on time duration can use up the battery a lot faster depending on the setup - in my use cases 30 or so seconds is fine.
For complex automations, writing code in yaml form like HA uses is difficult. Not sure if this is why people use node red, nor the history of this.
I don’t know why blueprints are not mentioned on this thread / topic but a blueprint that can take a multiple number motion sensors with optional LUX sensors would be nice.
Just did some searching for that and found one but haven’t looked at details of it, this:
There’s already a blueprint that should cover the original post here, but it’s limited to one motion sensor and just turning light(s) on and off - so if you have any other conditions like LUX, time of day, some variable to leave the light(s) as is (virtual switch or such), dimming up / down instead of on/off etc. it won’t work.
Some other relevant blueprint links if you haven’t seen them: