Code to control harmony via a smartapp?

I used this write up. Working flawless. I renamed the devices in ST so there’s natural language (i.e. The Television for Watch TV so I can say 'Alexa, turn on the Television"). Then I wrote a simple Rule Machine rule to shut off my sonos when The Television switch turns on. Works like a charm and the write up is very well done and easy to follow.