Motion and Smart switch issue

Known Smart Lighting issue, the workaround was to use a community based app. There are several threads discussing this problem. Here is one of them: