@shaun_inuk …the problem is not with how you are doing things as that is 100% correct. The problem we are currently seeing is something (we believe) on the SmartThings side. Up until last week it all worked well but then suddenly stopped working!
A few of us have a support ticket in with SmartThings UK support and are awaiting a final response/resolution.
You may wish to follow this other thread :-