Motion activated lights automation

Please read this from How to help us help you - or How to ask a good question11 Format it properly