Hey everyone, I wanted to share a fun project I recently completed using Home Assistant and Broadlink. It’s all about controlling my TV channels with voice commands!
So, the goal was to say something like, ‘Ok Google, Channel 154,’ and have it switch seamlessly. Here’s how I did it:1. Script Setup: I created individual scripts for each number on my TV remote (0-9). Each script sends a specific Broadlink packet when triggered.2. IFTTT Integration: Using IFTTT, I set up a Google Assistant command that triggers a Python script with the desired channel number.3. Python Script: This script fires an event in Home Assistant, which is then caught by an AppDaemon script. The script presses each digit of the channel number sequentially, just like a human would.It’s been working perfectly, and I’m thrilled with how it turned out!
If anyone has suggestions for improvements or wants to try something similar, feel free to ask. I’d love to hear about your projects too! ![]()