Go to your TV's settings menu, usually represented by a gear icon. Locate the Bluetooth menu, which may be accessible ...
I programmed it with ESPHome, and it only took a few hours from start to finish.