"Switch Changes Home Phrase" not working

I’m new here. I’m trying to make my outlet so that everytime it turns on, it would execute the “Good Night” routine I have set up and everytime it is off, it would execute my “Good Morning” routine. I also would like to use this with IFTTT so that I can just press a widget and execute it without having to go into the app. But after trying so many times, it would not work. I’ve installed the “Switch Changes Mode” app by the same person and that works flawlessly. So I just don’t get it. I have looked and searched and there was another person with the problem but I’m no developer or someone experienced in coding things, so to me it looked like a foreign language. I did create a virtual switch though so I’m kinda proud of myself…but that was due to detailed instructions lol. Please help.