We have created a complete HDMI-CEC Gateway solution for Home Assistant that enables you to control your TV and HDMI-connected devices directly from Home Assistant.
What is it?
A cost-effective setup using a SMLIGHT SLWF-08 adapter (~$10-15) that acts as an HDMI-CEC gateway. It captures all CEC signals from your television and other HDMI devices, forwarding them to Home Assistant for full automation and remote control capabilities.
My experience with CEC has been great so far. A use case was turning on the TV to display a live camera feed. Turning on the TV proved to be the most challenging. All the integrations I tried - like Android Remote, ADB Bridge, Wake-on-LAN - were unreliable in this regard (probably due to the TV going into deep sleep mode).
Then I learned about CEC and realized I could use it through my RPi5/Kodi, which I have connected to the TV. It works 100% of the time, every time
Great to hear! Hereβs what our SLWF-08 gateway can do for you:
What We Support
Your Use Case (TV Power-On + Camera Display):
Turn TV on reliably via CEC (100% success rate, even from deep sleep)
Switch HDMI inputs to your camera device
Trigger from Home Assistant automations (motion, doorbell, time-based, etc.)
Full Control:
Volume, mute, navigation, HDMI switching
Playback control (play, pause, stop, forward, rewind)
Numeric keypad
Automation Integration:
React to CEC events (TV on/off, input changes, etc.)
Trigger lights, blinds, or other devices based on TV activity
Example: Your Use Case
script:
camera_on_tv:
sequence:
- service: script.cec_tv_on # Power on TV (CEC β reliable!)
- delay: "00:00:02"
- service: script.cec_hdmi1 # Switch to camera input
automation:
- alias: "Motion β Show Camera on TV"
trigger: binary_sensor.front_door_motion
action: script.camera_on_tv
vs. Your RPi5/Kodi Setup
Feature
Kodi CEC
SLWF-08
Reliable TV power-on
Works without Kodi running
Full HA automation triggers
Limited
Lightweight/low resource
Bottom line: Works as a standalone solution OR complements your existing setup with redundancy.
I am using the device and most things work well. I am struggling with a LG tv. I can get it to work manually to turn on and turn off the TV but when I try to incorporate using my receiver and Apple TV, it turns it on Apple TV turns on and everything seems to work, but when I power it off the TV turns back on after about five seconds. I am sure itβs an issue with the TV possibly but when I go to the Manuel button to turn off the TV on the CEC settings, it turns off immediately and it does not turn on and it is consistent. I have included my YAML code for any feedback.