ok, I believe that’s an old version of an ST Schema sample, I’ll create a report for the documentation so the correct sample link is included there. Thank you for bringing this to our attention
Please, remix the sample included in this post:
The command handler is in the file connector.js and line 26 and you’ll see a similar structure to the one I shared above.
In this case, you’ll have to add handlers for all the capabilities or a condition to know when to use mapSTCommandsToState which I believe can save you some lines of code