AppleTV state to control SamsungTV

Attempting to work around the lack of HDMI CEC (Samsung AnyConnect+) functionality to switch inputs.

Newbie…but when turning on my AppleTV I’d like to switch my SamsungTV to that input…appreciate the bread crumbs