Best value motion sensor (UK)

Thanks, it’s quite old, doesn’t play well with new app, have to have a play

I use the latest SmartThings ones and they work great, had them for 7 months so far and batteries are all reporting 80%+.

Im just using the Smart Lighting SmartApp - so I dont see the code in the way you have shown it.

I try to use WebCore for everything.
Gives me totaly control and means I haven’t got different logic in different SmartApps meaning when I want to change stuff or debug, I can’t figure out whats controlling it