Can you help me with my big mess

Try this:

I have the HUE motion sensor with no HUE hub, works great, slight delay 5-10 from time to time but it’s pretty solid otherwise.