Add It
Cool, we can now programmatically control legacy infrared-receiving consumer electronics. It’s time to incorporate that single line of irsend code into the voicewol.py Python script we created and configured in the Voice Wake on LAN project. You can either associate it with the existing WAKE_PC body tag we associated with waking the PC or create a new IFTTT/Pushbullet sequence to control a device separate from the Wake PC event trigger. For example, I created a separate body message called PWR_TV to simulate pressing the power button on my Philips TV. Then I created a new IFTTT applet, following the same steps described in the Voice Wake on LAN project, calling this new applet “Turn on/off TV”, and assigned a new phrase. I couldn’t use ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access