just go to your routines, tap on the one you want to edit, tap plus sign beside add action, tap smart home, then tap all devices. make your selection
I basically have the same routine you want. when I say goodnight, it will turn off lights, turn off living room tv and turn on bedroom tv