How do you turn a TV on and off using a widget button?

Thanks for the quick response Nachtmahr. I’ll be testing out your methods and watching that tutorial ASAP.
Thanks again for steering me in the right direction.